Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Compute correctly whether we are on 32bits
[simgrid.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.156 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for simgrid 3.3-cvs.
5 #
6 # Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in
27   *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45   echo "#! /bin/sh" >conf$$.sh
46   echo  "exit 0"   >>conf$$.sh
47   chmod +x conf$$.sh
48   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49     PATH_SEPARATOR=';'
50   else
51     PATH_SEPARATOR=:
52   fi
53   rm -f conf$$.sh
54 fi
55
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58   as_unset=unset
59 else
60   as_unset=false
61 fi
62
63
64 # IFS
65 # We need space, tab and new line, in precisely that order.  Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
70 '
71 IFS=" ""        $as_nl"
72
73 # Find who we are.  Look in the path if we contain no directory separator.
74 case $0 in
75   *[\\/]* ) as_myself=$0 ;;
76   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
78 do
79   IFS=$as_save_IFS
80   test -z "$as_dir" && as_dir=.
81   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
84
85      ;;
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90   as_myself=$0
91 fi
92 if test ! -f "$as_myself"; then
93   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94   { (exit 1); exit 1; }
95 fi
96
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
104
105 # NLS nuisances.
106 for as_var in \
107   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109   LC_TELEPHONE LC_TIME
110 do
111   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112     eval $as_var=C; export $as_var
113   else
114     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115   fi
116 done
117
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120    test "X`expr 00001 : '.*\(...\)'`" = X001; then
121   as_expr=expr
122 else
123   as_expr=false
124 fi
125
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127   as_basename=basename
128 else
129   as_basename=false
130 fi
131
132
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136          X"$0" : 'X\(//\)$' \| \
137          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139     sed '/^.*\/\([^/][^/]*\)\/*$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\/\)$/{
144             s//\1/
145             q
146           }
147           /^X\/\(\/\).*/{
148             s//\1/
149             q
150           }
151           s/.*/./; q'`
152
153 # CDPATH.
154 $as_unset CDPATH
155
156
157 if test "x$CONFIG_SHELL" = x; then
158   if (eval ":") 2>/dev/null; then
159   as_have_required=yes
160 else
161   as_have_required=no
162 fi
163
164   if test $as_have_required = yes &&     (eval ":
165 (as_func_return () {
166   (exit \$1)
167 }
168 as_func_success () {
169   as_func_return 0
170 }
171 as_func_failure () {
172   as_func_return 1
173 }
174 as_func_ret_success () {
175   return 0
176 }
177 as_func_ret_failure () {
178   return 1
179 }
180
181 exitcode=0
182 if as_func_success; then
183   :
184 else
185   exitcode=1
186   echo as_func_success failed.
187 fi
188
189 if as_func_failure; then
190   exitcode=1
191   echo as_func_failure succeeded.
192 fi
193
194 if as_func_ret_success; then
195   :
196 else
197   exitcode=1
198   echo as_func_ret_success failed.
199 fi
200
201 if as_func_ret_failure; then
202   exitcode=1
203   echo as_func_ret_failure succeeded.
204 fi
205
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207   :
208 else
209   exitcode=1
210   echo positional parameters were not saved.
211 fi
212
213 test \$exitcode = 0) || { (exit 1); exit 1; }
214
215 (
216   as_lineno_1=\$LINENO
217   as_lineno_2=\$LINENO
218   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
221   :
222 else
223   as_candidate_shells=
224     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 do
227   IFS=$as_save_IFS
228   test -z "$as_dir" && as_dir=.
229   case $as_dir in
230          /*)
231            for as_base in sh bash ksh sh5; do
232              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233            done;;
234        esac
235 done
236 IFS=$as_save_IFS
237
238
239       for as_shell in $as_candidate_shells $SHELL; do
240          # Try only shells that exist, to save several forks.
241          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242                 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244   emulate sh
245   NULLCMD=:
246   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247   # is contrary to our usage.  Disable this feature.
248   alias -g '${1+"$@"}'='"$@"'
249   setopt NO_GLOB_SUBST
250 else
251   case `(set -o) 2>/dev/null` in
252   *posix*) set -o posix ;;
253 esac
254
255 fi
256
257
258 :
259 _ASEOF
260 }; then
261   CONFIG_SHELL=$as_shell
262                as_have_required=yes
263                if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265   emulate sh
266   NULLCMD=:
267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268   # is contrary to our usage.  Disable this feature.
269   alias -g '${1+"$@"}'='"$@"'
270   setopt NO_GLOB_SUBST
271 else
272   case `(set -o) 2>/dev/null` in
273   *posix*) set -o posix ;;
274 esac
275
276 fi
277
278
279 :
280 (as_func_return () {
281   (exit $1)
282 }
283 as_func_success () {
284   as_func_return 0
285 }
286 as_func_failure () {
287   as_func_return 1
288 }
289 as_func_ret_success () {
290   return 0
291 }
292 as_func_ret_failure () {
293   return 1
294 }
295
296 exitcode=0
297 if as_func_success; then
298   :
299 else
300   exitcode=1
301   echo as_func_success failed.
302 fi
303
304 if as_func_failure; then
305   exitcode=1
306   echo as_func_failure succeeded.
307 fi
308
309 if as_func_ret_success; then
310   :
311 else
312   exitcode=1
313   echo as_func_ret_success failed.
314 fi
315
316 if as_func_ret_failure; then
317   exitcode=1
318   echo as_func_ret_failure succeeded.
319 fi
320
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
322   :
323 else
324   exitcode=1
325   echo positional parameters were not saved.
326 fi
327
328 test $exitcode = 0) || { (exit 1); exit 1; }
329
330 (
331   as_lineno_1=$LINENO
332   as_lineno_2=$LINENO
333   test "x$as_lineno_1" != "x$as_lineno_2" &&
334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336 _ASEOF
337 }; then
338   break
339 fi
340
341 fi
342
343       done
344
345       if test "x$CONFIG_SHELL" != x; then
346   for as_var in BASH_ENV ENV
347         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348         done
349         export CONFIG_SHELL
350         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 fi
352
353
354     if test $as_have_required = no; then
355   echo This script requires a shell more modern than all the
356       echo shells that I found on your system.  Please install a
357       echo modern shell, or manually run the script under such a
358       echo shell if you do have one.
359       { (exit 1); exit 1; }
360 fi
361
362
363 fi
364
365 fi
366
367
368
369 (eval "as_func_return () {
370   (exit \$1)
371 }
372 as_func_success () {
373   as_func_return 0
374 }
375 as_func_failure () {
376   as_func_return 1
377 }
378 as_func_ret_success () {
379   return 0
380 }
381 as_func_ret_failure () {
382   return 1
383 }
384
385 exitcode=0
386 if as_func_success; then
387   :
388 else
389   exitcode=1
390   echo as_func_success failed.
391 fi
392
393 if as_func_failure; then
394   exitcode=1
395   echo as_func_failure succeeded.
396 fi
397
398 if as_func_ret_success; then
399   :
400 else
401   exitcode=1
402   echo as_func_ret_success failed.
403 fi
404
405 if as_func_ret_failure; then
406   exitcode=1
407   echo as_func_ret_failure succeeded.
408 fi
409
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411   :
412 else
413   exitcode=1
414   echo positional parameters were not saved.
415 fi
416
417 test \$exitcode = 0") || {
418   echo No shell found that supports shell functions.
419   echo Please tell autoconf@gnu.org about your system,
420   echo including any error possibly output before this
421   echo message
422 }
423
424
425
426   as_lineno_1=$LINENO
427   as_lineno_2=$LINENO
428   test "x$as_lineno_1" != "x$as_lineno_2" &&
429   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432   # uniformly replaced by the line number.  The first 'sed' inserts a
433   # line-number line after each line using $LINENO; the second 'sed'
434   # does the real work.  The second script uses 'N' to pair each
435   # line-number line with the line containing $LINENO, and appends
436   # trailing '-' during substitution so that $LINENO is not a special
437   # case at line end.
438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439   # scripts with optimization help from Paolo Bonzini.  Blame Lee
440   # E. McMahon (1931-1989) for sed's syntax.  :-)
441   sed -n '
442     p
443     /[$]LINENO/=
444   ' <$as_myself |
445     sed '
446       s/[$]LINENO.*/&-/
447       t lineno
448       b
449       :lineno
450       N
451       :loop
452       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453       t loop
454       s/-\n.*//
455     ' >$as_me.lineno &&
456   chmod +x "$as_me.lineno" ||
457     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458    { (exit 1); exit 1; }; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470   as_dirname=dirname
471 else
472   as_dirname=false
473 fi
474
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478   case `echo 'x\c'` in
479   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480   *)   ECHO_C='\c';;
481   esac;;
482 *)
483   ECHO_N='-n';;
484 esac
485
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
488   as_expr=expr
489 else
490   as_expr=false
491 fi
492
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495   rm -f conf$$.dir/conf$$.file
496 else
497   rm -f conf$$.dir
498   mkdir conf$$.dir
499 fi
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s='ln -s'
503   # ... but there are two gotchas:
504   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506   # In both cases, we have to default to `cp -p'.
507   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508     as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510   as_ln_s=ln
511 else
512   as_ln_s='cp -p'
513 fi
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
516
517 if mkdir -p . 2>/dev/null; then
518   as_mkdir_p=:
519 else
520   test -d ./-p && rmdir ./-p
521   as_mkdir_p=false
522 fi
523
524 if test -x / >/dev/null 2>&1; then
525   as_test_x='test -x'
526 else
527   if ls -dL / >/dev/null 2>&1; then
528     as_ls_L_option=L
529   else
530     as_ls_L_option=
531   fi
532   as_test_x='
533     eval sh -c '\''
534       if test -d "$1"; then
535         test -d "$1/.";
536       else
537         case $1 in
538         -*)set "./$1";;
539         esac;
540         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541         ???[sx]*):;;*)false;;esac;fi
542     '\'' sh
543   '
544 fi
545 as_executable_p=$as_test_x
546
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555
556 # Check that we are running under the correct shell.
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 case X$ECHO in
560 X*--fallback-echo)
561   # Remove one level of quotation (which was required for Make).
562   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563   ;;
564 esac
565
566 echo=${ECHO-echo}
567 if test "X$1" = X--no-reexec; then
568   # Discard the --no-reexec flag, and continue.
569   shift
570 elif test "X$1" = X--fallback-echo; then
571   # Avoid inline document here, it may be left over
572   :
573 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574   # Yippee, $echo works!
575   :
576 else
577   # Restart under the correct shell.
578   exec $SHELL "$0" --no-reexec ${1+"$@"}
579 fi
580
581 if test "X$1" = X--fallback-echo; then
582   # used as fallback echo
583   shift
584   cat <<EOF
585 $*
586 EOF
587   exit 0
588 fi
589
590 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 # if CDPATH is set.
592 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
594 if test -z "$ECHO"; then
595 if test "X${echo_test_string+set}" != Xset; then
596 # find a string as large as possible, as long as the shell can cope with it
597   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600        echo_test_string=`eval $cmd` &&
601        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
602     then
603       break
604     fi
605   done
606 fi
607
608 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610    test "X$echo_testing_string" = "X$echo_test_string"; then
611   :
612 else
613   # The Solaris, AIX, and Digital Unix default echo programs unquote
614   # backslashes.  This makes it impossible to quote backslashes using
615   #   echo "$something" | sed 's/\\/\\\\/g'
616   #
617   # So, first we look for a working echo in the user's PATH.
618
619   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620   for dir in $PATH /usr/ucb; do
621     IFS="$lt_save_ifs"
622     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625        test "X$echo_testing_string" = "X$echo_test_string"; then
626       echo="$dir/echo"
627       break
628     fi
629   done
630   IFS="$lt_save_ifs"
631
632   if test "X$echo" = Xecho; then
633     # We didn't find a better echo, so look for alternatives.
634     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636        test "X$echo_testing_string" = "X$echo_test_string"; then
637       # This shell has a builtin print -r that does the trick.
638       echo='print -r'
639     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640          test "X$CONFIG_SHELL" != X/bin/ksh; then
641       # If we have ksh, try running configure again with it.
642       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643       export ORIGINAL_CONFIG_SHELL
644       CONFIG_SHELL=/bin/ksh
645       export CONFIG_SHELL
646       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647     else
648       # Try using printf.
649       echo='printf %s\n'
650       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652          test "X$echo_testing_string" = "X$echo_test_string"; then
653         # Cool, printf works
654         :
655       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656            test "X$echo_testing_string" = 'X\t' &&
657            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658            test "X$echo_testing_string" = "X$echo_test_string"; then
659         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660         export CONFIG_SHELL
661         SHELL="$CONFIG_SHELL"
662         export SHELL
663         echo="$CONFIG_SHELL $0 --fallback-echo"
664       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665            test "X$echo_testing_string" = 'X\t' &&
666            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667            test "X$echo_testing_string" = "X$echo_test_string"; then
668         echo="$CONFIG_SHELL $0 --fallback-echo"
669       else
670         # maybe with a smaller string...
671         prev=:
672
673         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
675           then
676             break
677           fi
678           prev="$cmd"
679         done
680
681         if test "$prev" != 'sed 50q "$0"'; then
682           echo_test_string=`eval $prev`
683           export echo_test_string
684           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685         else
686           # Oops.  We lost completely, so just stick with echo.
687           echo=echo
688         fi
689       fi
690     fi
691   fi
692 fi
693 fi
694
695 # Copy echo and quote the copy suitably for passing to libtool from
696 # the Makefile, instead of quoting the original, which is used later.
697 ECHO=$echo
698 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
700 fi
701
702
703
704
705 tagnames=${tagnames+${tagnames},}CXX
706
707 tagnames=${tagnames+${tagnames},}F77
708
709 exec 7<&0 </dev/null 6>&1
710
711 # Name of the host.
712 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
713 # so uname gets run too.
714 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
715
716 #
717 # Initializations.
718 #
719 ac_default_prefix=/usr/local
720 ac_clean_files=
721 ac_config_libobj_dir=.
722 LIBOBJS=
723 cross_compiling=no
724 subdirs=
725 MFLAGS=
726 MAKEFLAGS=
727 SHELL=${CONFIG_SHELL-/bin/sh}
728
729 # Identity of this package.
730 PACKAGE_NAME='simgrid'
731 PACKAGE_TARNAME='simgrid'
732 PACKAGE_VERSION='3.3-cvs'
733 PACKAGE_STRING='simgrid 3.3-cvs'
734 PACKAGE_BUGREPORT='simgrid-devel@lists.gforge.inria.fr'
735
736 ac_unique_file="include/gras.h"
737 # Factoring default headers for most tests.
738 ac_includes_default="\
739 #include <stdio.h>
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
742 #endif
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
745 #endif
746 #ifdef STDC_HEADERS
747 # include <stdlib.h>
748 # include <stddef.h>
749 #else
750 # ifdef HAVE_STDLIB_H
751 #  include <stdlib.h>
752 # endif
753 #endif
754 #ifdef HAVE_STRING_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756 #  include <memory.h>
757 # endif
758 # include <string.h>
759 #endif
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
762 #endif
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
765 #endif
766 #ifdef HAVE_STDINT_H
767 # include <stdint.h>
768 #endif
769 #ifdef HAVE_UNISTD_H
770 # include <unistd.h>
771 #endif"
772
773 ac_subst_vars='SHELL
774 PATH_SEPARATOR
775 PACKAGE_NAME
776 PACKAGE_TARNAME
777 PACKAGE_VERSION
778 PACKAGE_STRING
779 PACKAGE_BUGREPORT
780 exec_prefix
781 prefix
782 program_transform_name
783 bindir
784 sbindir
785 libexecdir
786 datarootdir
787 datadir
788 sysconfdir
789 sharedstatedir
790 localstatedir
791 includedir
792 oldincludedir
793 docdir
794 infodir
795 htmldir
796 dvidir
797 pdfdir
798 psdir
799 libdir
800 localedir
801 mandir
802 DEFS
803 ECHO_C
804 ECHO_N
805 ECHO_T
806 LIBS
807 build_alias
808 host_alias
809 target_alias
810 build
811 build_cpu
812 build_vendor
813 build_os
814 host
815 host_cpu
816 host_vendor
817 host_os
818 target
819 target_cpu
820 target_vendor
821 target_os
822 INSTALL_PROGRAM
823 INSTALL_SCRIPT
824 INSTALL_DATA
825 CYGPATH_W
826 PACKAGE
827 VERSION
828 ACLOCAL
829 AUTOCONF
830 AUTOMAKE
831 AUTOHEADER
832 MAKEINFO
833 install_sh
834 STRIP
835 INSTALL_STRIP_PROGRAM
836 mkdir_p
837 AWK
838 SET_MAKE
839 am__leading_dot
840 AMTAR
841 am__tar
842 am__untar
843 CC
844 CFLAGS
845 LDFLAGS
846 CPPFLAGS
847 ac_ct_CC
848 EXEEXT
849 OBJEXT
850 DEPDIR
851 am__include
852 am__quote
853 AMDEP_TRUE
854 AMDEP_FALSE
855 AMDEPBACKSLASH
856 CCDEPMODE
857 am__fastdepCC_TRUE
858 am__fastdepCC_FALSE
859 GREP
860 EGREP
861 LN_S
862 ECHO
863 AR
864 RANLIB
865 DLLTOOL
866 AS
867 OBJDUMP
868 CPP
869 CXX
870 CXXFLAGS
871 ac_ct_CXX
872 CXXDEPMODE
873 am__fastdepCXX_TRUE
874 am__fastdepCXX_FALSE
875 CXXCPP
876 F77
877 FFLAGS
878 ac_ct_F77
879 LIBTOOL
880 LIBOBJS
881 GRAS_ARCH_32_BITS_TRUE
882 GRAS_ARCH_32_BITS_FALSE
883 PTH_STACK_GROWTH
884 pth_skaddr_makecontext
885 pth_sksize_makecontext
886 USE_SIMIX_TRUE
887 USE_SIMIX_FALSE
888 GTNETS_CFLAGS
889 GTNETS_LDFLAGS
890 USE_GTNETS_TRUE
891 USE_GTNETS_FALSE
892 HAVE_SDP_TRUE
893 HAVE_SDP_FALSE
894 SIMGRID_DEP
895 AM_CFLAGS
896 GRAS_DEP
897 GRAMINE_MODE_TRUE
898 GRAMINE_MODE_FALSE
899 MAINTAINER_MODE_TRUE
900 MAINTAINER_MODE_FALSE
901 MAINT
902 LD_DYNAMIC_FLAGS
903 abs_builddir
904 abs_srcdir
905 abs_top_builddir
906 abs_top_srcdir
907 BASH
908 WARNING
909 LEX
910 LEX_OUTPUT_ROOT
911 LEXLIB
912 FLEXML
913 HAVE_FLEXML_TRUE
914 HAVE_FLEXML_FALSE
915 DOXYGEN
916 ADDR2LINE
917 ac_configure_args
918 MD5SUM
919 build_id
920 LTLIBOBJS'
921 ac_subst_files=''
922       ac_precious_vars='build_alias
923 host_alias
924 target_alias
925 CC
926 CFLAGS
927 LDFLAGS
928 LIBS
929 CPPFLAGS
930 CPP
931 CXX
932 CXXFLAGS
933 CCC
934 CXXCPP
935 F77
936 FFLAGS'
937
938
939 # Initialize some variables set by options.
940 ac_init_help=
941 ac_init_version=false
942 # The variables have the same names as the options, with
943 # dashes changed to underlines.
944 cache_file=/dev/null
945 exec_prefix=NONE
946 no_create=
947 no_recursion=
948 prefix=NONE
949 program_prefix=NONE
950 program_suffix=NONE
951 program_transform_name=s,x,x,
952 silent=
953 site=
954 srcdir=
955 verbose=
956 x_includes=NONE
957 x_libraries=NONE
958
959 # Installation directory options.
960 # These are left unexpanded so users can "make install exec_prefix=/foo"
961 # and all the variables that are supposed to be based on exec_prefix
962 # by default will actually change.
963 # Use braces instead of parens because sh, perl, etc. also accept them.
964 # (The list follows the same order as the GNU Coding Standards.)
965 bindir='${exec_prefix}/bin'
966 sbindir='${exec_prefix}/sbin'
967 libexecdir='${exec_prefix}/libexec'
968 datarootdir='${prefix}/share'
969 datadir='${datarootdir}'
970 sysconfdir='${prefix}/etc'
971 sharedstatedir='${prefix}/com'
972 localstatedir='${prefix}/var'
973 includedir='${prefix}/include'
974 oldincludedir='/usr/include'
975 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
976 infodir='${datarootdir}/info'
977 htmldir='${docdir}'
978 dvidir='${docdir}'
979 pdfdir='${docdir}'
980 psdir='${docdir}'
981 libdir='${exec_prefix}/lib'
982 localedir='${datarootdir}/locale'
983 mandir='${datarootdir}/man'
984
985 ac_prev=
986 ac_dashdash=
987 for ac_option
988 do
989   # If the previous option needs an argument, assign it.
990   if test -n "$ac_prev"; then
991     eval $ac_prev=\$ac_option
992     ac_prev=
993     continue
994   fi
995
996   case $ac_option in
997   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998   *)    ac_optarg=yes ;;
999   esac
1000
1001   # Accept the important Cygnus configure options, so we can diagnose typos.
1002
1003   case $ac_dashdash$ac_option in
1004   --)
1005     ac_dashdash=yes ;;
1006
1007   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008     ac_prev=bindir ;;
1009   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010     bindir=$ac_optarg ;;
1011
1012   -build | --build | --buil | --bui | --bu)
1013     ac_prev=build_alias ;;
1014   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015     build_alias=$ac_optarg ;;
1016
1017   -cache-file | --cache-file | --cache-fil | --cache-fi \
1018   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019     ac_prev=cache_file ;;
1020   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022     cache_file=$ac_optarg ;;
1023
1024   --config-cache | -C)
1025     cache_file=config.cache ;;
1026
1027   -datadir | --datadir | --datadi | --datad)
1028     ac_prev=datadir ;;
1029   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030     datadir=$ac_optarg ;;
1031
1032   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033   | --dataroo | --dataro | --datar)
1034     ac_prev=datarootdir ;;
1035   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037     datarootdir=$ac_optarg ;;
1038
1039   -disable-* | --disable-*)
1040     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041     # Reject names that are not valid shell variable names.
1042     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1043       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1044    { (exit 1); exit 1; }; }
1045     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1046     eval enable_$ac_feature=no ;;
1047
1048   -docdir | --docdir | --docdi | --doc | --do)
1049     ac_prev=docdir ;;
1050   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1051     docdir=$ac_optarg ;;
1052
1053   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1054     ac_prev=dvidir ;;
1055   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1056     dvidir=$ac_optarg ;;
1057
1058   -enable-* | --enable-*)
1059     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1060     # Reject names that are not valid shell variable names.
1061     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1062       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1063    { (exit 1); exit 1; }; }
1064     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1065     eval enable_$ac_feature=\$ac_optarg ;;
1066
1067   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1068   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1069   | --exec | --exe | --ex)
1070     ac_prev=exec_prefix ;;
1071   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1072   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1073   | --exec=* | --exe=* | --ex=*)
1074     exec_prefix=$ac_optarg ;;
1075
1076   -gas | --gas | --ga | --g)
1077     # Obsolete; use --with-gas.
1078     with_gas=yes ;;
1079
1080   -help | --help | --hel | --he | -h)
1081     ac_init_help=long ;;
1082   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1083     ac_init_help=recursive ;;
1084   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1085     ac_init_help=short ;;
1086
1087   -host | --host | --hos | --ho)
1088     ac_prev=host_alias ;;
1089   -host=* | --host=* | --hos=* | --ho=*)
1090     host_alias=$ac_optarg ;;
1091
1092   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1093     ac_prev=htmldir ;;
1094   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1095   | --ht=*)
1096     htmldir=$ac_optarg ;;
1097
1098   -includedir | --includedir | --includedi | --included | --include \
1099   | --includ | --inclu | --incl | --inc)
1100     ac_prev=includedir ;;
1101   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1102   | --includ=* | --inclu=* | --incl=* | --inc=*)
1103     includedir=$ac_optarg ;;
1104
1105   -infodir | --infodir | --infodi | --infod | --info | --inf)
1106     ac_prev=infodir ;;
1107   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1108     infodir=$ac_optarg ;;
1109
1110   -libdir | --libdir | --libdi | --libd)
1111     ac_prev=libdir ;;
1112   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1113     libdir=$ac_optarg ;;
1114
1115   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1116   | --libexe | --libex | --libe)
1117     ac_prev=libexecdir ;;
1118   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1119   | --libexe=* | --libex=* | --libe=*)
1120     libexecdir=$ac_optarg ;;
1121
1122   -localedir | --localedir | --localedi | --localed | --locale)
1123     ac_prev=localedir ;;
1124   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1125     localedir=$ac_optarg ;;
1126
1127   -localstatedir | --localstatedir | --localstatedi | --localstated \
1128   | --localstate | --localstat | --localsta | --localst | --locals)
1129     ac_prev=localstatedir ;;
1130   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1131   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1132     localstatedir=$ac_optarg ;;
1133
1134   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1135     ac_prev=mandir ;;
1136   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1137     mandir=$ac_optarg ;;
1138
1139   -nfp | --nfp | --nf)
1140     # Obsolete; use --without-fp.
1141     with_fp=no ;;
1142
1143   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1144   | --no-cr | --no-c | -n)
1145     no_create=yes ;;
1146
1147   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1148   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1149     no_recursion=yes ;;
1150
1151   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1152   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1153   | --oldin | --oldi | --old | --ol | --o)
1154     ac_prev=oldincludedir ;;
1155   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1156   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1157   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1158     oldincludedir=$ac_optarg ;;
1159
1160   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1161     ac_prev=prefix ;;
1162   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1163     prefix=$ac_optarg ;;
1164
1165   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1166   | --program-pre | --program-pr | --program-p)
1167     ac_prev=program_prefix ;;
1168   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1169   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1170     program_prefix=$ac_optarg ;;
1171
1172   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1173   | --program-suf | --program-su | --program-s)
1174     ac_prev=program_suffix ;;
1175   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1176   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1177     program_suffix=$ac_optarg ;;
1178
1179   -program-transform-name | --program-transform-name \
1180   | --program-transform-nam | --program-transform-na \
1181   | --program-transform-n | --program-transform- \
1182   | --program-transform | --program-transfor \
1183   | --program-transfo | --program-transf \
1184   | --program-trans | --program-tran \
1185   | --progr-tra | --program-tr | --program-t)
1186     ac_prev=program_transform_name ;;
1187   -program-transform-name=* | --program-transform-name=* \
1188   | --program-transform-nam=* | --program-transform-na=* \
1189   | --program-transform-n=* | --program-transform-=* \
1190   | --program-transform=* | --program-transfor=* \
1191   | --program-transfo=* | --program-transf=* \
1192   | --program-trans=* | --program-tran=* \
1193   | --progr-tra=* | --program-tr=* | --program-t=*)
1194     program_transform_name=$ac_optarg ;;
1195
1196   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1197     ac_prev=pdfdir ;;
1198   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1199     pdfdir=$ac_optarg ;;
1200
1201   -psdir | --psdir | --psdi | --psd | --ps)
1202     ac_prev=psdir ;;
1203   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1204     psdir=$ac_optarg ;;
1205
1206   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1207   | -silent | --silent | --silen | --sile | --sil)
1208     silent=yes ;;
1209
1210   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1211     ac_prev=sbindir ;;
1212   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1213   | --sbi=* | --sb=*)
1214     sbindir=$ac_optarg ;;
1215
1216   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1217   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1218   | --sharedst | --shareds | --shared | --share | --shar \
1219   | --sha | --sh)
1220     ac_prev=sharedstatedir ;;
1221   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1222   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1223   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1224   | --sha=* | --sh=*)
1225     sharedstatedir=$ac_optarg ;;
1226
1227   -site | --site | --sit)
1228     ac_prev=site ;;
1229   -site=* | --site=* | --sit=*)
1230     site=$ac_optarg ;;
1231
1232   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1233     ac_prev=srcdir ;;
1234   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1235     srcdir=$ac_optarg ;;
1236
1237   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1238   | --syscon | --sysco | --sysc | --sys | --sy)
1239     ac_prev=sysconfdir ;;
1240   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1241   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1242     sysconfdir=$ac_optarg ;;
1243
1244   -target | --target | --targe | --targ | --tar | --ta | --t)
1245     ac_prev=target_alias ;;
1246   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1247     target_alias=$ac_optarg ;;
1248
1249   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1250     verbose=yes ;;
1251
1252   -version | --version | --versio | --versi | --vers | -V)
1253     ac_init_version=: ;;
1254
1255   -with-* | --with-*)
1256     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1257     # Reject names that are not valid shell variable names.
1258     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259       { echo "$as_me: error: invalid package name: $ac_package" >&2
1260    { (exit 1); exit 1; }; }
1261     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1262     eval with_$ac_package=\$ac_optarg ;;
1263
1264   -without-* | --without-*)
1265     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1266     # Reject names that are not valid shell variable names.
1267     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268       { echo "$as_me: error: invalid package name: $ac_package" >&2
1269    { (exit 1); exit 1; }; }
1270     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1271     eval with_$ac_package=no ;;
1272
1273   --x)
1274     # Obsolete; use --with-x.
1275     with_x=yes ;;
1276
1277   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1278   | --x-incl | --x-inc | --x-in | --x-i)
1279     ac_prev=x_includes ;;
1280   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1281   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1282     x_includes=$ac_optarg ;;
1283
1284   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1285   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1286     ac_prev=x_libraries ;;
1287   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1288   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1289     x_libraries=$ac_optarg ;;
1290
1291   -*) { echo "$as_me: error: unrecognized option: $ac_option
1292 Try \`$0 --help' for more information." >&2
1293    { (exit 1); exit 1; }; }
1294     ;;
1295
1296   *=*)
1297     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1298     # Reject names that are not valid shell variable names.
1299     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1300       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1301    { (exit 1); exit 1; }; }
1302     eval $ac_envvar=\$ac_optarg
1303     export $ac_envvar ;;
1304
1305   *)
1306     # FIXME: should be removed in autoconf 3.0.
1307     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1308     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1309       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1310     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1311     ;;
1312
1313   esac
1314 done
1315
1316 if test -n "$ac_prev"; then
1317   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1318   { echo "$as_me: error: missing argument to $ac_option" >&2
1319    { (exit 1); exit 1; }; }
1320 fi
1321
1322 # Be sure to have absolute directory names.
1323 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324                 datadir sysconfdir sharedstatedir localstatedir includedir \
1325                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326                 libdir localedir mandir
1327 do
1328   eval ac_val=\$$ac_var
1329   case $ac_val in
1330     [\\/$]* | ?:[\\/]* )  continue;;
1331     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1332   esac
1333   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1334    { (exit 1); exit 1; }; }
1335 done
1336
1337 # There might be people who depend on the old broken behavior: `$host'
1338 # used to hold the argument of --host etc.
1339 # FIXME: To remove some day.
1340 build=$build_alias
1341 host=$host_alias
1342 target=$target_alias
1343
1344 # FIXME: To remove some day.
1345 if test "x$host_alias" != x; then
1346   if test "x$build_alias" = x; then
1347     cross_compiling=maybe
1348     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1349     If a cross compiler is detected then cross compile mode will be used." >&2
1350   elif test "x$build_alias" != "x$host_alias"; then
1351     cross_compiling=yes
1352   fi
1353 fi
1354
1355 ac_tool_prefix=
1356 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1357
1358 test "$silent" = yes && exec 6>/dev/null
1359
1360
1361 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1362 ac_ls_di=`ls -di .` &&
1363 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1364   { echo "$as_me: error: Working directory cannot be determined" >&2
1365    { (exit 1); exit 1; }; }
1366 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1367   { echo "$as_me: error: pwd does not report name of working directory" >&2
1368    { (exit 1); exit 1; }; }
1369
1370
1371 # Find the source files, if location was not specified.
1372 if test -z "$srcdir"; then
1373   ac_srcdir_defaulted=yes
1374   # Try the directory containing this script, then the parent directory.
1375   ac_confdir=`$as_dirname -- "$0" ||
1376 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1377          X"$0" : 'X\(//\)[^/]' \| \
1378          X"$0" : 'X\(//\)$' \| \
1379          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1380 echo X"$0" |
1381     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1382             s//\1/
1383             q
1384           }
1385           /^X\(\/\/\)[^/].*/{
1386             s//\1/
1387             q
1388           }
1389           /^X\(\/\/\)$/{
1390             s//\1/
1391             q
1392           }
1393           /^X\(\/\).*/{
1394             s//\1/
1395             q
1396           }
1397           s/.*/./; q'`
1398   srcdir=$ac_confdir
1399   if test ! -r "$srcdir/$ac_unique_file"; then
1400     srcdir=..
1401   fi
1402 else
1403   ac_srcdir_defaulted=no
1404 fi
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1407   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1408    { (exit 1); exit 1; }; }
1409 fi
1410 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1411 ac_abs_confdir=`(
1412         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1413    { (exit 1); exit 1; }; }
1414         pwd)`
1415 # When building in place, set srcdir=.
1416 if test "$ac_abs_confdir" = "$ac_pwd"; then
1417   srcdir=.
1418 fi
1419 # Remove unnecessary trailing slashes from srcdir.
1420 # Double slashes in file names in object file debugging info
1421 # mess up M-x gdb in Emacs.
1422 case $srcdir in
1423 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424 esac
1425 for ac_var in $ac_precious_vars; do
1426   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1427   eval ac_env_${ac_var}_value=\$${ac_var}
1428   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1429   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1430 done
1431
1432 #
1433 # Report the --help message.
1434 #
1435 if test "$ac_init_help" = "long"; then
1436   # Omit some internal or obsolete options to make the list less imposing.
1437   # This message is too long to be a string in the A/UX 3.1 sh.
1438   cat <<_ACEOF
1439 \`configure' configures simgrid 3.3-cvs to adapt to many kinds of systems.
1440
1441 Usage: $0 [OPTION]... [VAR=VALUE]...
1442
1443 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1444 VAR=VALUE.  See below for descriptions of some of the useful variables.
1445
1446 Defaults for the options are specified in brackets.
1447
1448 Configuration:
1449   -h, --help              display this help and exit
1450       --help=short        display options specific to this package
1451       --help=recursive    display the short help of all the included packages
1452   -V, --version           display version information and exit
1453   -q, --quiet, --silent   do not print \`checking...' messages
1454       --cache-file=FILE   cache test results in FILE [disabled]
1455   -C, --config-cache      alias for \`--cache-file=config.cache'
1456   -n, --no-create         do not create output files
1457       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1458
1459 Installation directories:
1460   --prefix=PREFIX         install architecture-independent files in PREFIX
1461                           [$ac_default_prefix]
1462   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1463                           [PREFIX]
1464
1465 By default, \`make install' will install all the files in
1466 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1467 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1468 for instance \`--prefix=\$HOME'.
1469
1470 For better control, use the options below.
1471
1472 Fine tuning of the installation directories:
1473   --bindir=DIR           user executables [EPREFIX/bin]
1474   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1475   --libexecdir=DIR       program executables [EPREFIX/libexec]
1476   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1477   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1478   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1479   --libdir=DIR           object code libraries [EPREFIX/lib]
1480   --includedir=DIR       C header files [PREFIX/include]
1481   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1482   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1483   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1484   --infodir=DIR          info documentation [DATAROOTDIR/info]
1485   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1486   --mandir=DIR           man documentation [DATAROOTDIR/man]
1487   --docdir=DIR           documentation root [DATAROOTDIR/doc/simgrid]
1488   --htmldir=DIR          html documentation [DOCDIR]
1489   --dvidir=DIR           dvi documentation [DOCDIR]
1490   --pdfdir=DIR           pdf documentation [DOCDIR]
1491   --psdir=DIR            ps documentation [DOCDIR]
1492 _ACEOF
1493
1494   cat <<\_ACEOF
1495
1496 Program names:
1497   --program-prefix=PREFIX            prepend PREFIX to installed program names
1498   --program-suffix=SUFFIX            append SUFFIX to installed program names
1499   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1500
1501 System types:
1502   --build=BUILD     configure for building on BUILD [guessed]
1503   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1504   --target=TARGET   configure for building compilers for TARGET [HOST]
1505 _ACEOF
1506 fi
1507
1508 if test -n "$ac_init_help"; then
1509   case $ac_init_help in
1510      short | recursive ) echo "Configuration of simgrid 3.3-cvs:";;
1511    esac
1512   cat <<\_ACEOF
1513
1514 Optional Features:
1515   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1516   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1517   --enable-shared[=PKGS]  build shared libraries [default=yes]
1518   --enable-static[=PKGS]  build static libraries [default=yes]
1519   --enable-fast-install[=PKGS]
1520                           optimize for fast installation [default=yes]
1521   --disable-dependency-tracking  speeds up one-time build
1522   --enable-dependency-tracking   do not reject slow dependency extractors
1523   --disable-libtool-lock  avoid locking (might break parallel builds)
1524   --enable-simix          Use the new SimIX module (default=no)
1525   --enable-maintainer-mode  enable make rules and dependencies not useful
1526                           (and sometimes confusing) to the casual installer
1527   --enable-compile-warnings
1528                           use compiler warnings (default=no, unless in
1529                           maintainer mode)
1530   --disable-compile-optimizations
1531                           use compiler optimizations (default=yes, unless if
1532                           CFLAGS is explicitly set)
1533
1534 Optional Packages:
1535   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1536   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1537   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1538   --with-pic              try to use only PIC/non-PIC objects [default=use
1539                           both]
1540   --with-tags[=TAGS]      include additional configurations [automatic]
1541   --with-pthread   Use pthread instead of ucontext.
1542   --with-pthreads   Use pthread instead of ucontext.
1543   --with-context=ucontext/pthread   Use either (System V) swapcontext or pthread [default=auto].
1544   --with-gtnets           Path to GTNetS installation (default to empty, ie
1545                           not using GTNetS)
1546
1547 Some influential environment variables:
1548   CC          C compiler command
1549   CFLAGS      C compiler flags
1550   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1551               nonstandard directory <lib dir>
1552   LIBS        libraries to pass to the linker, e.g. -l<library>
1553   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1554               you have headers in a nonstandard directory <include dir>
1555   CPP         C preprocessor
1556   CXX         C++ compiler command
1557   CXXFLAGS    C++ compiler flags
1558   CXXCPP      C++ preprocessor
1559   F77         Fortran 77 compiler command
1560   FFLAGS      Fortran 77 compiler flags
1561
1562 Use these variables to override the choices made by `configure' or to help
1563 it to find libraries and programs with nonstandard names/locations.
1564
1565 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1566 _ACEOF
1567 ac_status=$?
1568 fi
1569
1570 if test "$ac_init_help" = "recursive"; then
1571   # If there are subdirs, report their specific --help.
1572   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1573     test -d "$ac_dir" || continue
1574     ac_builddir=.
1575
1576 case "$ac_dir" in
1577 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578 *)
1579   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1580   # A ".." for each directory in $ac_dir_suffix.
1581   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1582   case $ac_top_builddir_sub in
1583   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1585   esac ;;
1586 esac
1587 ac_abs_top_builddir=$ac_pwd
1588 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1589 # for backward compatibility:
1590 ac_top_builddir=$ac_top_build_prefix
1591
1592 case $srcdir in
1593   .)  # We are building in place.
1594     ac_srcdir=.
1595     ac_top_srcdir=$ac_top_builddir_sub
1596     ac_abs_top_srcdir=$ac_pwd ;;
1597   [\\/]* | ?:[\\/]* )  # Absolute name.
1598     ac_srcdir=$srcdir$ac_dir_suffix;
1599     ac_top_srcdir=$srcdir
1600     ac_abs_top_srcdir=$srcdir ;;
1601   *) # Relative name.
1602     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1603     ac_top_srcdir=$ac_top_build_prefix$srcdir
1604     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1605 esac
1606 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1607
1608     cd "$ac_dir" || { ac_status=$?; continue; }
1609     # Check for guested configure.
1610     if test -f "$ac_srcdir/configure.gnu"; then
1611       echo &&
1612       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1613     elif test -f "$ac_srcdir/configure"; then
1614       echo &&
1615       $SHELL "$ac_srcdir/configure" --help=recursive
1616     else
1617       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1618     fi || ac_status=$?
1619     cd "$ac_pwd" || { ac_status=$?; break; }
1620   done
1621 fi
1622
1623 test -n "$ac_init_help" && exit $ac_status
1624 if $ac_init_version; then
1625   cat <<\_ACEOF
1626 simgrid configure 3.3-cvs
1627 generated by GNU Autoconf 2.61
1628
1629 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1630 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1631 This configure script is free software; the Free Software Foundation
1632 gives unlimited permission to copy, distribute and modify it.
1633 _ACEOF
1634   exit
1635 fi
1636 cat >config.log <<_ACEOF
1637 This file contains any messages produced by compilers while
1638 running configure, to aid debugging if configure makes a mistake.
1639
1640 It was created by simgrid $as_me 3.3-cvs, which was
1641 generated by GNU Autoconf 2.61.  Invocation command line was
1642
1643   $ $0 $@
1644
1645 _ACEOF
1646 exec 5>>config.log
1647 {
1648 cat <<_ASUNAME
1649 ## --------- ##
1650 ## Platform. ##
1651 ## --------- ##
1652
1653 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1654 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1655 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1656 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1657 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1658
1659 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1660 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1661
1662 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1663 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1664 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1665 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1666 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1667 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1668 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1669
1670 _ASUNAME
1671
1672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673 for as_dir in $PATH
1674 do
1675   IFS=$as_save_IFS
1676   test -z "$as_dir" && as_dir=.
1677   echo "PATH: $as_dir"
1678 done
1679 IFS=$as_save_IFS
1680
1681 } >&5
1682
1683 cat >&5 <<_ACEOF
1684
1685
1686 ## ----------- ##
1687 ## Core tests. ##
1688 ## ----------- ##
1689
1690 _ACEOF
1691
1692
1693 # Keep a trace of the command line.
1694 # Strip out --no-create and --no-recursion so they do not pile up.
1695 # Strip out --silent because we don't want to record it for future runs.
1696 # Also quote any args containing shell meta-characters.
1697 # Make two passes to allow for proper duplicate-argument suppression.
1698 ac_configure_args=
1699 ac_configure_args0=
1700 ac_configure_args1=
1701 ac_must_keep_next=false
1702 for ac_pass in 1 2
1703 do
1704   for ac_arg
1705   do
1706     case $ac_arg in
1707     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1708     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1709     | -silent | --silent | --silen | --sile | --sil)
1710       continue ;;
1711     *\'*)
1712       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1713     esac
1714     case $ac_pass in
1715     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1716     2)
1717       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1718       if test $ac_must_keep_next = true; then
1719         ac_must_keep_next=false # Got value, back to normal.
1720       else
1721         case $ac_arg in
1722           *=* | --config-cache | -C | -disable-* | --disable-* \
1723           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1724           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1725           | -with-* | --with-* | -without-* | --without-* | --x)
1726             case "$ac_configure_args0 " in
1727               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1728             esac
1729             ;;
1730           -* ) ac_must_keep_next=true ;;
1731         esac
1732       fi
1733       ac_configure_args="$ac_configure_args '$ac_arg'"
1734       ;;
1735     esac
1736   done
1737 done
1738 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1739 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1740
1741 # When interrupted or exit'd, cleanup temporary files, and complete
1742 # config.log.  We remove comments because anyway the quotes in there
1743 # would cause problems or look ugly.
1744 # WARNING: Use '\'' to represent an apostrophe within the trap.
1745 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1746 trap 'exit_status=$?
1747   # Save into config.log some information that might help in debugging.
1748   {
1749     echo
1750
1751     cat <<\_ASBOX
1752 ## ---------------- ##
1753 ## Cache variables. ##
1754 ## ---------------- ##
1755 _ASBOX
1756     echo
1757     # The following way of writing the cache mishandles newlines in values,
1758 (
1759   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1760     eval ac_val=\$$ac_var
1761     case $ac_val in #(
1762     *${as_nl}*)
1763       case $ac_var in #(
1764       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1765 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1766       esac
1767       case $ac_var in #(
1768       _ | IFS | as_nl) ;; #(
1769       *) $as_unset $ac_var ;;
1770       esac ;;
1771     esac
1772   done
1773   (set) 2>&1 |
1774     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1775     *${as_nl}ac_space=\ *)
1776       sed -n \
1777         "s/'\''/'\''\\\\'\'''\''/g;
1778           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1779       ;; #(
1780     *)
1781       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1782       ;;
1783     esac |
1784     sort
1785 )
1786     echo
1787
1788     cat <<\_ASBOX
1789 ## ----------------- ##
1790 ## Output variables. ##
1791 ## ----------------- ##
1792 _ASBOX
1793     echo
1794     for ac_var in $ac_subst_vars
1795     do
1796       eval ac_val=\$$ac_var
1797       case $ac_val in
1798       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1799       esac
1800       echo "$ac_var='\''$ac_val'\''"
1801     done | sort
1802     echo
1803
1804     if test -n "$ac_subst_files"; then
1805       cat <<\_ASBOX
1806 ## ------------------- ##
1807 ## File substitutions. ##
1808 ## ------------------- ##
1809 _ASBOX
1810       echo
1811       for ac_var in $ac_subst_files
1812       do
1813         eval ac_val=\$$ac_var
1814         case $ac_val in
1815         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1816         esac
1817         echo "$ac_var='\''$ac_val'\''"
1818       done | sort
1819       echo
1820     fi
1821
1822     if test -s confdefs.h; then
1823       cat <<\_ASBOX
1824 ## ----------- ##
1825 ## confdefs.h. ##
1826 ## ----------- ##
1827 _ASBOX
1828       echo
1829       cat confdefs.h
1830       echo
1831     fi
1832     test "$ac_signal" != 0 &&
1833       echo "$as_me: caught signal $ac_signal"
1834     echo "$as_me: exit $exit_status"
1835   } >&5
1836   rm -f core *.core core.conftest.* &&
1837     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1838     exit $exit_status
1839 ' 0
1840 for ac_signal in 1 2 13 15; do
1841   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1842 done
1843 ac_signal=0
1844
1845 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1846 rm -f -r conftest* confdefs.h
1847
1848 # Predefined preprocessor variables.
1849
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_NAME "$PACKAGE_NAME"
1852 _ACEOF
1853
1854
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1857 _ACEOF
1858
1859
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1862 _ACEOF
1863
1864
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_STRING "$PACKAGE_STRING"
1867 _ACEOF
1868
1869
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1872 _ACEOF
1873
1874
1875 # Let the site file select an alternate cache file if it wants to.
1876 # Prefer explicitly selected file to automatically selected ones.
1877 if test -n "$CONFIG_SITE"; then
1878   set x "$CONFIG_SITE"
1879 elif test "x$prefix" != xNONE; then
1880   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1881 else
1882   set x "$ac_default_prefix/share/config.site" \
1883         "$ac_default_prefix/etc/config.site"
1884 fi
1885 shift
1886 for ac_site_file
1887 do
1888   if test -r "$ac_site_file"; then
1889     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1890 echo "$as_me: loading site script $ac_site_file" >&6;}
1891     sed 's/^/| /' "$ac_site_file" >&5
1892     . "$ac_site_file"
1893   fi
1894 done
1895
1896 if test -r "$cache_file"; then
1897   # Some versions of bash will fail to source /dev/null (special
1898   # files actually), so we avoid doing that.
1899   if test -f "$cache_file"; then
1900     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1901 echo "$as_me: loading cache $cache_file" >&6;}
1902     case $cache_file in
1903       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1904       *)                      . "./$cache_file";;
1905     esac
1906   fi
1907 else
1908   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1909 echo "$as_me: creating cache $cache_file" >&6;}
1910   >$cache_file
1911 fi
1912
1913 # Check that the precious variables saved in the cache have kept the same
1914 # value.
1915 ac_cache_corrupted=false
1916 for ac_var in $ac_precious_vars; do
1917   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1918   eval ac_new_set=\$ac_env_${ac_var}_set
1919   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1920   eval ac_new_val=\$ac_env_${ac_var}_value
1921   case $ac_old_set,$ac_new_set in
1922     set,)
1923       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1924 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1925       ac_cache_corrupted=: ;;
1926     ,set)
1927       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1928 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1929       ac_cache_corrupted=: ;;
1930     ,);;
1931     *)
1932       if test "x$ac_old_val" != "x$ac_new_val"; then
1933         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1934 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1935         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1936 echo "$as_me:   former value:  $ac_old_val" >&2;}
1937         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1938 echo "$as_me:   current value: $ac_new_val" >&2;}
1939         ac_cache_corrupted=:
1940       fi;;
1941   esac
1942   # Pass precious variables to config.status.
1943   if test "$ac_new_set" = set; then
1944     case $ac_new_val in
1945     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1946     *) ac_arg=$ac_var=$ac_new_val ;;
1947     esac
1948     case " $ac_configure_args " in
1949       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1950       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1951     esac
1952   fi
1953 done
1954 if $ac_cache_corrupted; then
1955   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1956 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1957   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1958 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1959    { (exit 1); exit 1; }; }
1960 fi
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986 ac_ext=c
1987 ac_cpp='$CPP $CPPFLAGS'
1988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1991
1992
1993
1994 ac_config_headers="$ac_config_headers src/gras_config.h"
1995
1996 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
1997
1998
1999 ac_aux_dir=
2000 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2001   if test -f "$ac_dir/install-sh"; then
2002     ac_aux_dir=$ac_dir
2003     ac_install_sh="$ac_aux_dir/install-sh -c"
2004     break
2005   elif test -f "$ac_dir/install.sh"; then
2006     ac_aux_dir=$ac_dir
2007     ac_install_sh="$ac_aux_dir/install.sh -c"
2008     break
2009   elif test -f "$ac_dir/shtool"; then
2010     ac_aux_dir=$ac_dir
2011     ac_install_sh="$ac_aux_dir/shtool install -c"
2012     break
2013   fi
2014 done
2015 if test -z "$ac_aux_dir"; then
2016   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2017 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2018    { (exit 1); exit 1; }; }
2019 fi
2020
2021 # These three variables are undocumented and unsupported,
2022 # and are intended to be withdrawn in a future Autoconf release.
2023 # They can cause serious problems if a builder's source tree is in a directory
2024 # whose full name contains unusual characters.
2025 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2026 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2027 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2028
2029
2030 # Make sure we can run config.sub.
2031 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2032   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2033 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2034    { (exit 1); exit 1; }; }
2035
2036 { echo "$as_me:$LINENO: checking build system type" >&5
2037 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2038 if test "${ac_cv_build+set}" = set; then
2039   echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041   ac_build_alias=$build_alias
2042 test "x$ac_build_alias" = x &&
2043   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2044 test "x$ac_build_alias" = x &&
2045   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2046 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2047    { (exit 1); exit 1; }; }
2048 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2049   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2050 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2051    { (exit 1); exit 1; }; }
2052
2053 fi
2054 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2055 echo "${ECHO_T}$ac_cv_build" >&6; }
2056 case $ac_cv_build in
2057 *-*-*) ;;
2058 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2059 echo "$as_me: error: invalid value of canonical build" >&2;}
2060    { (exit 1); exit 1; }; };;
2061 esac
2062 build=$ac_cv_build
2063 ac_save_IFS=$IFS; IFS='-'
2064 set x $ac_cv_build
2065 shift
2066 build_cpu=$1
2067 build_vendor=$2
2068 shift; shift
2069 # Remember, the first character of IFS is used to create $*,
2070 # except with old shells:
2071 build_os=$*
2072 IFS=$ac_save_IFS
2073 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2074
2075
2076 { echo "$as_me:$LINENO: checking host system type" >&5
2077 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2078 if test "${ac_cv_host+set}" = set; then
2079   echo $ECHO_N "(cached) $ECHO_C" >&6
2080 else
2081   if test "x$host_alias" = x; then
2082   ac_cv_host=$ac_cv_build
2083 else
2084   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2085     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2086 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2087    { (exit 1); exit 1; }; }
2088 fi
2089
2090 fi
2091 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2092 echo "${ECHO_T}$ac_cv_host" >&6; }
2093 case $ac_cv_host in
2094 *-*-*) ;;
2095 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2096 echo "$as_me: error: invalid value of canonical host" >&2;}
2097    { (exit 1); exit 1; }; };;
2098 esac
2099 host=$ac_cv_host
2100 ac_save_IFS=$IFS; IFS='-'
2101 set x $ac_cv_host
2102 shift
2103 host_cpu=$1
2104 host_vendor=$2
2105 shift; shift
2106 # Remember, the first character of IFS is used to create $*,
2107 # except with old shells:
2108 host_os=$*
2109 IFS=$ac_save_IFS
2110 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2111
2112
2113 { echo "$as_me:$LINENO: checking target system type" >&5
2114 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2115 if test "${ac_cv_target+set}" = set; then
2116   echo $ECHO_N "(cached) $ECHO_C" >&6
2117 else
2118   if test "x$target_alias" = x; then
2119   ac_cv_target=$ac_cv_host
2120 else
2121   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2122     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2123 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2124    { (exit 1); exit 1; }; }
2125 fi
2126
2127 fi
2128 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2129 echo "${ECHO_T}$ac_cv_target" >&6; }
2130 case $ac_cv_target in
2131 *-*-*) ;;
2132 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2133 echo "$as_me: error: invalid value of canonical target" >&2;}
2134    { (exit 1); exit 1; }; };;
2135 esac
2136 target=$ac_cv_target
2137 ac_save_IFS=$IFS; IFS='-'
2138 set x $ac_cv_target
2139 shift
2140 target_cpu=$1
2141 target_vendor=$2
2142 shift; shift
2143 # Remember, the first character of IFS is used to create $*,
2144 # except with old shells:
2145 target_os=$*
2146 IFS=$ac_save_IFS
2147 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2148
2149
2150 # The aliases save the names the user supplied, while $host etc.
2151 # will get canonicalized.
2152 test -n "$target_alias" &&
2153   test "$program_prefix$program_suffix$program_transform_name" = \
2154     NONENONEs,x,x, &&
2155   program_prefix=${target_alias}-
2156 ac_ext=c
2157 ac_cpp='$CPP $CPPFLAGS'
2158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2161
2162
2163 am__api_version="1.9"
2164 # Find a good install program.  We prefer a C program (faster),
2165 # so one script is as good as another.  But avoid the broken or
2166 # incompatible versions:
2167 # SysV /etc/install, /usr/sbin/install
2168 # SunOS /usr/etc/install
2169 # IRIX /sbin/install
2170 # AIX /bin/install
2171 # AmigaOS /C/install, which installs bootblocks on floppy discs
2172 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2173 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2174 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2175 # OS/2's system install, which has a completely different semantic
2176 # ./install, which can be erroneously created by make from ./install.sh.
2177 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2178 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2179 if test -z "$INSTALL"; then
2180 if test "${ac_cv_path_install+set}" = set; then
2181   echo $ECHO_N "(cached) $ECHO_C" >&6
2182 else
2183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184 for as_dir in $PATH
2185 do
2186   IFS=$as_save_IFS
2187   test -z "$as_dir" && as_dir=.
2188   # Account for people who put trailing slashes in PATH elements.
2189 case $as_dir/ in
2190   ./ | .// | /cC/* | \
2191   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2192   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2193   /usr/ucb/* ) ;;
2194   *)
2195     # OSF1 and SCO ODT 3.0 have their own names for install.
2196     # Don't use installbsd from OSF since it installs stuff as root
2197     # by default.
2198     for ac_prog in ginstall scoinst install; do
2199       for ac_exec_ext in '' $ac_executable_extensions; do
2200         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2201           if test $ac_prog = install &&
2202             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2203             # AIX install.  It has an incompatible calling convention.
2204             :
2205           elif test $ac_prog = install &&
2206             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2207             # program-specific install script used by HP pwplus--don't use.
2208             :
2209           else
2210             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2211             break 3
2212           fi
2213         fi
2214       done
2215     done
2216     ;;
2217 esac
2218 done
2219 IFS=$as_save_IFS
2220
2221
2222 fi
2223   if test "${ac_cv_path_install+set}" = set; then
2224     INSTALL=$ac_cv_path_install
2225   else
2226     # As a last resort, use the slow shell script.  Don't cache a
2227     # value for INSTALL within a source directory, because that will
2228     # break other packages using the cache if that directory is
2229     # removed, or if the value is a relative name.
2230     INSTALL=$ac_install_sh
2231   fi
2232 fi
2233 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2234 echo "${ECHO_T}$INSTALL" >&6; }
2235
2236 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2237 # It thinks the first close brace ends the variable substitution.
2238 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2239
2240 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2241
2242 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2243
2244 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2245 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2246 # Just in case
2247 sleep 1
2248 echo timestamp > conftest.file
2249 # Do `set' in a subshell so we don't clobber the current shell's
2250 # arguments.  Must try -L first in case configure is actually a
2251 # symlink; some systems play weird games with the mod time of symlinks
2252 # (eg FreeBSD returns the mod time of the symlink's containing
2253 # directory).
2254 if (
2255    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2256    if test "$*" = "X"; then
2257       # -L didn't work.
2258       set X `ls -t $srcdir/configure conftest.file`
2259    fi
2260    rm -f conftest.file
2261    if test "$*" != "X $srcdir/configure conftest.file" \
2262       && test "$*" != "X conftest.file $srcdir/configure"; then
2263
2264       # If neither matched, then we have a broken ls.  This can happen
2265       # if, for instance, CONFIG_SHELL is bash and it inherits a
2266       # broken ls alias from the environment.  This has actually
2267       # happened.  Such a system could not be considered "sane".
2268       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2269 alias in your environment" >&5
2270 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2271 alias in your environment" >&2;}
2272    { (exit 1); exit 1; }; }
2273    fi
2274
2275    test "$2" = conftest.file
2276    )
2277 then
2278    # Ok.
2279    :
2280 else
2281    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2282 Check your system clock" >&5
2283 echo "$as_me: error: newly created file is older than distributed files!
2284 Check your system clock" >&2;}
2285    { (exit 1); exit 1; }; }
2286 fi
2287 { echo "$as_me:$LINENO: result: yes" >&5
2288 echo "${ECHO_T}yes" >&6; }
2289 test "$program_prefix" != NONE &&
2290   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2291 # Use a double $ so make ignores it.
2292 test "$program_suffix" != NONE &&
2293   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2294 # Double any \ or $.  echo might interpret backslashes.
2295 # By default was `s,x,x', remove it if useless.
2296 cat <<\_ACEOF >conftest.sed
2297 s/[\\$]/&&/g;s/;s,x,x,$//
2298 _ACEOF
2299 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2300 rm -f conftest.sed
2301
2302 # expand $ac_aux_dir to an absolute path
2303 am_aux_dir=`cd $ac_aux_dir && pwd`
2304
2305 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2306 # Use eval to expand $SHELL
2307 if eval "$MISSING --run true"; then
2308   am_missing_run="$MISSING --run "
2309 else
2310   am_missing_run=
2311   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2312 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2313 fi
2314
2315 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2316   # We used to keeping the `.' as first argument, in order to
2317   # allow $(mkdir_p) to be used without argument.  As in
2318   #   $(mkdir_p) $(somedir)
2319   # where $(somedir) is conditionally defined.  However this is wrong
2320   # for two reasons:
2321   #  1. if the package is installed by a user who cannot write `.'
2322   #     make install will fail,
2323   #  2. the above comment should most certainly read
2324   #     $(mkdir_p) $(DESTDIR)$(somedir)
2325   #     so it does not work when $(somedir) is undefined and
2326   #     $(DESTDIR) is not.
2327   #  To support the latter case, we have to write
2328   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2329   #  so the `.' trick is pointless.
2330   mkdir_p='mkdir -p --'
2331 else
2332   # On NextStep and OpenStep, the `mkdir' command does not
2333   # recognize any option.  It will interpret all options as
2334   # directories to create, and then abort because `.' already
2335   # exists.
2336   for d in ./-p ./--version;
2337   do
2338     test -d $d && rmdir $d
2339   done
2340   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2341   if test -f "$ac_aux_dir/mkinstalldirs"; then
2342     mkdir_p='$(mkinstalldirs)'
2343   else
2344     mkdir_p='$(install_sh) -d'
2345   fi
2346 fi
2347
2348 for ac_prog in gawk mawk nawk awk
2349 do
2350   # Extract the first word of "$ac_prog", so it can be a program name with args.
2351 set dummy $ac_prog; ac_word=$2
2352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2354 if test "${ac_cv_prog_AWK+set}" = set; then
2355   echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357   if test -n "$AWK"; then
2358   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2359 else
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 for as_dir in $PATH
2362 do
2363   IFS=$as_save_IFS
2364   test -z "$as_dir" && as_dir=.
2365   for ac_exec_ext in '' $ac_executable_extensions; do
2366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2367     ac_cv_prog_AWK="$ac_prog"
2368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2369     break 2
2370   fi
2371 done
2372 done
2373 IFS=$as_save_IFS
2374
2375 fi
2376 fi
2377 AWK=$ac_cv_prog_AWK
2378 if test -n "$AWK"; then
2379   { echo "$as_me:$LINENO: result: $AWK" >&5
2380 echo "${ECHO_T}$AWK" >&6; }
2381 else
2382   { echo "$as_me:$LINENO: result: no" >&5
2383 echo "${ECHO_T}no" >&6; }
2384 fi
2385
2386
2387   test -n "$AWK" && break
2388 done
2389
2390 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2391 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2392 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2393 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2394   echo $ECHO_N "(cached) $ECHO_C" >&6
2395 else
2396   cat >conftest.make <<\_ACEOF
2397 SHELL = /bin/sh
2398 all:
2399         @echo '@@@%%%=$(MAKE)=@@@%%%'
2400 _ACEOF
2401 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2402 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2403   *@@@%%%=?*=@@@%%%*)
2404     eval ac_cv_prog_make_${ac_make}_set=yes;;
2405   *)
2406     eval ac_cv_prog_make_${ac_make}_set=no;;
2407 esac
2408 rm -f conftest.make
2409 fi
2410 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2411   { echo "$as_me:$LINENO: result: yes" >&5
2412 echo "${ECHO_T}yes" >&6; }
2413   SET_MAKE=
2414 else
2415   { echo "$as_me:$LINENO: result: no" >&5
2416 echo "${ECHO_T}no" >&6; }
2417   SET_MAKE="MAKE=${MAKE-make}"
2418 fi
2419
2420 rm -rf .tst 2>/dev/null
2421 mkdir .tst 2>/dev/null
2422 if test -d .tst; then
2423   am__leading_dot=.
2424 else
2425   am__leading_dot=_
2426 fi
2427 rmdir .tst 2>/dev/null
2428
2429 # test to see if srcdir already configured
2430 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2431    test -f $srcdir/config.status; then
2432   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2433 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2434    { (exit 1); exit 1; }; }
2435 fi
2436
2437 # test whether we have cygpath
2438 if test -z "$CYGPATH_W"; then
2439   if (cygpath --version) >/dev/null 2>/dev/null; then
2440     CYGPATH_W='cygpath -w'
2441   else
2442     CYGPATH_W=echo
2443   fi
2444 fi
2445
2446
2447 # Define the identity of the package.
2448  PACKAGE='simgrid'
2449  VERSION='3.3-cvs'
2450
2451
2452 cat >>confdefs.h <<_ACEOF
2453 #define PACKAGE "$PACKAGE"
2454 _ACEOF
2455
2456
2457 cat >>confdefs.h <<_ACEOF
2458 #define VERSION "$VERSION"
2459 _ACEOF
2460
2461 # Some tools Automake needs.
2462
2463 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2464
2465
2466 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2467
2468
2469 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2470
2471
2472 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2473
2474
2475 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2476
2477 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2478
2479 # Installed binaries are usually stripped using `strip' when the user
2480 # run `make install-strip'.  However `strip' might not be the right
2481 # tool to use in cross-compilation environments, therefore Automake
2482 # will honor the `STRIP' environment variable to overrule this program.
2483 if test "$cross_compiling" != no; then
2484   if test -n "$ac_tool_prefix"; then
2485   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2486 set dummy ${ac_tool_prefix}strip; ac_word=$2
2487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2489 if test "${ac_cv_prog_STRIP+set}" = set; then
2490   echo $ECHO_N "(cached) $ECHO_C" >&6
2491 else
2492   if test -n "$STRIP"; then
2493   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2494 else
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 for as_dir in $PATH
2497 do
2498   IFS=$as_save_IFS
2499   test -z "$as_dir" && as_dir=.
2500   for ac_exec_ext in '' $ac_executable_extensions; do
2501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2502     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2503     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2504     break 2
2505   fi
2506 done
2507 done
2508 IFS=$as_save_IFS
2509
2510 fi
2511 fi
2512 STRIP=$ac_cv_prog_STRIP
2513 if test -n "$STRIP"; then
2514   { echo "$as_me:$LINENO: result: $STRIP" >&5
2515 echo "${ECHO_T}$STRIP" >&6; }
2516 else
2517   { echo "$as_me:$LINENO: result: no" >&5
2518 echo "${ECHO_T}no" >&6; }
2519 fi
2520
2521
2522 fi
2523 if test -z "$ac_cv_prog_STRIP"; then
2524   ac_ct_STRIP=$STRIP
2525   # Extract the first word of "strip", so it can be a program name with args.
2526 set dummy strip; ac_word=$2
2527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2529 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2530   echo $ECHO_N "(cached) $ECHO_C" >&6
2531 else
2532   if test -n "$ac_ct_STRIP"; then
2533   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2534 else
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH
2537 do
2538   IFS=$as_save_IFS
2539   test -z "$as_dir" && as_dir=.
2540   for ac_exec_ext in '' $ac_executable_extensions; do
2541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2542     ac_cv_prog_ac_ct_STRIP="strip"
2543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544     break 2
2545   fi
2546 done
2547 done
2548 IFS=$as_save_IFS
2549
2550 fi
2551 fi
2552 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2553 if test -n "$ac_ct_STRIP"; then
2554   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2555 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2556 else
2557   { echo "$as_me:$LINENO: result: no" >&5
2558 echo "${ECHO_T}no" >&6; }
2559 fi
2560
2561   if test "x$ac_ct_STRIP" = x; then
2562     STRIP=":"
2563   else
2564     case $cross_compiling:$ac_tool_warned in
2565 yes:)
2566 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2567 whose name does not start with the host triplet.  If you think this
2568 configuration is useful to you, please write to autoconf@gnu.org." >&5
2569 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2570 whose name does not start with the host triplet.  If you think this
2571 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2572 ac_tool_warned=yes ;;
2573 esac
2574     STRIP=$ac_ct_STRIP
2575   fi
2576 else
2577   STRIP="$ac_cv_prog_STRIP"
2578 fi
2579
2580 fi
2581 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2582
2583 # We need awk for the "check" target.  The system "awk" is bad on
2584 # some platforms.
2585 # Always define AMTAR for backward compatibility.
2586
2587 AMTAR=${AMTAR-"${am_missing_run}tar"}
2588
2589 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2590
2591
2592
2593
2594
2595
2596 ACLOCAL="$ACLOCAL -I acmacro"
2597
2598
2599 # Check whether --enable-shared was given.
2600 if test "${enable_shared+set}" = set; then
2601   enableval=$enable_shared; p=${PACKAGE-default}
2602     case $enableval in
2603     yes) enable_shared=yes ;;
2604     no) enable_shared=no ;;
2605     *)
2606       enable_shared=no
2607       # Look at the argument we got.  We use all the common list separators.
2608       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2609       for pkg in $enableval; do
2610         IFS="$lt_save_ifs"
2611         if test "X$pkg" = "X$p"; then
2612           enable_shared=yes
2613         fi
2614       done
2615       IFS="$lt_save_ifs"
2616       ;;
2617     esac
2618 else
2619   enable_shared=yes
2620 fi
2621
2622
2623 # Check whether --enable-static was given.
2624 if test "${enable_static+set}" = set; then
2625   enableval=$enable_static; p=${PACKAGE-default}
2626     case $enableval in
2627     yes) enable_static=yes ;;
2628     no) enable_static=no ;;
2629     *)
2630      enable_static=no
2631       # Look at the argument we got.  We use all the common list separators.
2632       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2633       for pkg in $enableval; do
2634         IFS="$lt_save_ifs"
2635         if test "X$pkg" = "X$p"; then
2636           enable_static=yes
2637         fi
2638       done
2639       IFS="$lt_save_ifs"
2640       ;;
2641     esac
2642 else
2643   enable_static=yes
2644 fi
2645
2646
2647 # Check whether --enable-fast-install was given.
2648 if test "${enable_fast_install+set}" = set; then
2649   enableval=$enable_fast_install; p=${PACKAGE-default}
2650     case $enableval in
2651     yes) enable_fast_install=yes ;;
2652     no) enable_fast_install=no ;;
2653     *)
2654       enable_fast_install=no
2655       # Look at the argument we got.  We use all the common list separators.
2656       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2657       for pkg in $enableval; do
2658         IFS="$lt_save_ifs"
2659         if test "X$pkg" = "X$p"; then
2660           enable_fast_install=yes
2661         fi
2662       done
2663       IFS="$lt_save_ifs"
2664       ;;
2665     esac
2666 else
2667   enable_fast_install=yes
2668 fi
2669
2670
2671 DEPDIR="${am__leading_dot}deps"
2672
2673 ac_config_commands="$ac_config_commands depfiles"
2674
2675
2676 am_make=${MAKE-make}
2677 cat > confinc << 'END'
2678 am__doit:
2679         @echo done
2680 .PHONY: am__doit
2681 END
2682 # If we don't find an include directive, just comment out the code.
2683 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2684 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2685 am__include="#"
2686 am__quote=
2687 _am_result=none
2688 # First try GNU make style include.
2689 echo "include confinc" > confmf
2690 # We grep out `Entering directory' and `Leaving directory'
2691 # messages which can occur if `w' ends up in MAKEFLAGS.
2692 # In particular we don't look at `^make:' because GNU make might
2693 # be invoked under some other name (usually "gmake"), in which
2694 # case it prints its new name instead of `make'.
2695 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2696    am__include=include
2697    am__quote=
2698    _am_result=GNU
2699 fi
2700 # Now try BSD make style include.
2701 if test "$am__include" = "#"; then
2702    echo '.include "confinc"' > confmf
2703    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2704       am__include=.include
2705       am__quote="\""
2706       _am_result=BSD
2707    fi
2708 fi
2709
2710
2711 { echo "$as_me:$LINENO: result: $_am_result" >&5
2712 echo "${ECHO_T}$_am_result" >&6; }
2713 rm -f confinc confmf
2714
2715 # Check whether --enable-dependency-tracking was given.
2716 if test "${enable_dependency_tracking+set}" = set; then
2717   enableval=$enable_dependency_tracking;
2718 fi
2719
2720 if test "x$enable_dependency_tracking" != xno; then
2721   am_depcomp="$ac_aux_dir/depcomp"
2722   AMDEPBACKSLASH='\'
2723 fi
2724
2725
2726 if test "x$enable_dependency_tracking" != xno; then
2727   AMDEP_TRUE=
2728   AMDEP_FALSE='#'
2729 else
2730   AMDEP_TRUE='#'
2731   AMDEP_FALSE=
2732 fi
2733
2734
2735
2736 ac_ext=c
2737 ac_cpp='$CPP $CPPFLAGS'
2738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2741 if test -n "$ac_tool_prefix"; then
2742   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2743 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2746 if test "${ac_cv_prog_CC+set}" = set; then
2747   echo $ECHO_N "(cached) $ECHO_C" >&6
2748 else
2749   if test -n "$CC"; then
2750   ac_cv_prog_CC="$CC" # Let the user override the test.
2751 else
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2754 do
2755   IFS=$as_save_IFS
2756   test -z "$as_dir" && as_dir=.
2757   for ac_exec_ext in '' $ac_executable_extensions; do
2758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2759     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2761     break 2
2762   fi
2763 done
2764 done
2765 IFS=$as_save_IFS
2766
2767 fi
2768 fi
2769 CC=$ac_cv_prog_CC
2770 if test -n "$CC"; then
2771   { echo "$as_me:$LINENO: result: $CC" >&5
2772 echo "${ECHO_T}$CC" >&6; }
2773 else
2774   { echo "$as_me:$LINENO: result: no" >&5
2775 echo "${ECHO_T}no" >&6; }
2776 fi
2777
2778
2779 fi
2780 if test -z "$ac_cv_prog_CC"; then
2781   ac_ct_CC=$CC
2782   # Extract the first word of "gcc", so it can be a program name with args.
2783 set dummy gcc; ac_word=$2
2784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2786 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2787   echo $ECHO_N "(cached) $ECHO_C" >&6
2788 else
2789   if test -n "$ac_ct_CC"; then
2790   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2794 do
2795   IFS=$as_save_IFS
2796   test -z "$as_dir" && as_dir=.
2797   for ac_exec_ext in '' $ac_executable_extensions; do
2798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2799     ac_cv_prog_ac_ct_CC="gcc"
2800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801     break 2
2802   fi
2803 done
2804 done
2805 IFS=$as_save_IFS
2806
2807 fi
2808 fi
2809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2810 if test -n "$ac_ct_CC"; then
2811   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2812 echo "${ECHO_T}$ac_ct_CC" >&6; }
2813 else
2814   { echo "$as_me:$LINENO: result: no" >&5
2815 echo "${ECHO_T}no" >&6; }
2816 fi
2817
2818   if test "x$ac_ct_CC" = x; then
2819     CC=""
2820   else
2821     case $cross_compiling:$ac_tool_warned in
2822 yes:)
2823 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2824 whose name does not start with the host triplet.  If you think this
2825 configuration is useful to you, please write to autoconf@gnu.org." >&5
2826 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2827 whose name does not start with the host triplet.  If you think this
2828 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2829 ac_tool_warned=yes ;;
2830 esac
2831     CC=$ac_ct_CC
2832   fi
2833 else
2834   CC="$ac_cv_prog_CC"
2835 fi
2836
2837 if test -z "$CC"; then
2838           if test -n "$ac_tool_prefix"; then
2839     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2840 set dummy ${ac_tool_prefix}cc; ac_word=$2
2841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2843 if test "${ac_cv_prog_CC+set}" = set; then
2844   echo $ECHO_N "(cached) $ECHO_C" >&6
2845 else
2846   if test -n "$CC"; then
2847   ac_cv_prog_CC="$CC" # Let the user override the test.
2848 else
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 for as_dir in $PATH
2851 do
2852   IFS=$as_save_IFS
2853   test -z "$as_dir" && as_dir=.
2854   for ac_exec_ext in '' $ac_executable_extensions; do
2855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856     ac_cv_prog_CC="${ac_tool_prefix}cc"
2857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2858     break 2
2859   fi
2860 done
2861 done
2862 IFS=$as_save_IFS
2863
2864 fi
2865 fi
2866 CC=$ac_cv_prog_CC
2867 if test -n "$CC"; then
2868   { echo "$as_me:$LINENO: result: $CC" >&5
2869 echo "${ECHO_T}$CC" >&6; }
2870 else
2871   { echo "$as_me:$LINENO: result: no" >&5
2872 echo "${ECHO_T}no" >&6; }
2873 fi
2874
2875
2876   fi
2877 fi
2878 if test -z "$CC"; then
2879   # Extract the first word of "cc", so it can be a program name with args.
2880 set dummy cc; ac_word=$2
2881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2883 if test "${ac_cv_prog_CC+set}" = set; then
2884   echo $ECHO_N "(cached) $ECHO_C" >&6
2885 else
2886   if test -n "$CC"; then
2887   ac_cv_prog_CC="$CC" # Let the user override the test.
2888 else
2889   ac_prog_rejected=no
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893   IFS=$as_save_IFS
2894   test -z "$as_dir" && as_dir=.
2895   for ac_exec_ext in '' $ac_executable_extensions; do
2896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2898        ac_prog_rejected=yes
2899        continue
2900      fi
2901     ac_cv_prog_CC="cc"
2902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903     break 2
2904   fi
2905 done
2906 done
2907 IFS=$as_save_IFS
2908
2909 if test $ac_prog_rejected = yes; then
2910   # We found a bogon in the path, so make sure we never use it.
2911   set dummy $ac_cv_prog_CC
2912   shift
2913   if test $# != 0; then
2914     # We chose a different compiler from the bogus one.
2915     # However, it has the same basename, so the bogon will be chosen
2916     # first if we set CC to just the basename; use the full file name.
2917     shift
2918     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2919   fi
2920 fi
2921 fi
2922 fi
2923 CC=$ac_cv_prog_CC
2924 if test -n "$CC"; then
2925   { echo "$as_me:$LINENO: result: $CC" >&5
2926 echo "${ECHO_T}$CC" >&6; }
2927 else
2928   { echo "$as_me:$LINENO: result: no" >&5
2929 echo "${ECHO_T}no" >&6; }
2930 fi
2931
2932
2933 fi
2934 if test -z "$CC"; then
2935   if test -n "$ac_tool_prefix"; then
2936   for ac_prog in cl.exe
2937   do
2938     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2939 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2942 if test "${ac_cv_prog_CC+set}" = set; then
2943   echo $ECHO_N "(cached) $ECHO_C" >&6
2944 else
2945   if test -n "$CC"; then
2946   ac_cv_prog_CC="$CC" # Let the user override the test.
2947 else
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2950 do
2951   IFS=$as_save_IFS
2952   test -z "$as_dir" && as_dir=.
2953   for ac_exec_ext in '' $ac_executable_extensions; do
2954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957     break 2
2958   fi
2959 done
2960 done
2961 IFS=$as_save_IFS
2962
2963 fi
2964 fi
2965 CC=$ac_cv_prog_CC
2966 if test -n "$CC"; then
2967   { echo "$as_me:$LINENO: result: $CC" >&5
2968 echo "${ECHO_T}$CC" >&6; }
2969 else
2970   { echo "$as_me:$LINENO: result: no" >&5
2971 echo "${ECHO_T}no" >&6; }
2972 fi
2973
2974
2975     test -n "$CC" && break
2976   done
2977 fi
2978 if test -z "$CC"; then
2979   ac_ct_CC=$CC
2980   for ac_prog in cl.exe
2981 do
2982   # Extract the first word of "$ac_prog", so it can be a program name with args.
2983 set dummy $ac_prog; ac_word=$2
2984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2986 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2987   echo $ECHO_N "(cached) $ECHO_C" >&6
2988 else
2989   if test -n "$ac_ct_CC"; then
2990   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2991 else
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2994 do
2995   IFS=$as_save_IFS
2996   test -z "$as_dir" && as_dir=.
2997   for ac_exec_ext in '' $ac_executable_extensions; do
2998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2999     ac_cv_prog_ac_ct_CC="$ac_prog"
3000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3001     break 2
3002   fi
3003 done
3004 done
3005 IFS=$as_save_IFS
3006
3007 fi
3008 fi
3009 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3010 if test -n "$ac_ct_CC"; then
3011   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3012 echo "${ECHO_T}$ac_ct_CC" >&6; }
3013 else
3014   { echo "$as_me:$LINENO: result: no" >&5
3015 echo "${ECHO_T}no" >&6; }
3016 fi
3017
3018
3019   test -n "$ac_ct_CC" && break
3020 done
3021
3022   if test "x$ac_ct_CC" = x; then
3023     CC=""
3024   else
3025     case $cross_compiling:$ac_tool_warned in
3026 yes:)
3027 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3028 whose name does not start with the host triplet.  If you think this
3029 configuration is useful to you, please write to autoconf@gnu.org." >&5
3030 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3031 whose name does not start with the host triplet.  If you think this
3032 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3033 ac_tool_warned=yes ;;
3034 esac
3035     CC=$ac_ct_CC
3036   fi
3037 fi
3038
3039 fi
3040
3041
3042 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3043 See \`config.log' for more details." >&5
3044 echo "$as_me: error: no acceptable C compiler found in \$PATH
3045 See \`config.log' for more details." >&2;}
3046    { (exit 1); exit 1; }; }
3047
3048 # Provide some information about the compiler.
3049 echo "$as_me:$LINENO: checking for C compiler version" >&5
3050 ac_compiler=`set X $ac_compile; echo $2`
3051 { (ac_try="$ac_compiler --version >&5"
3052 case "(($ac_try" in
3053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054   *) ac_try_echo=$ac_try;;
3055 esac
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057   (eval "$ac_compiler --version >&5") 2>&5
3058   ac_status=$?
3059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060   (exit $ac_status); }
3061 { (ac_try="$ac_compiler -v >&5"
3062 case "(($ac_try" in
3063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064   *) ac_try_echo=$ac_try;;
3065 esac
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067   (eval "$ac_compiler -v >&5") 2>&5
3068   ac_status=$?
3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070   (exit $ac_status); }
3071 { (ac_try="$ac_compiler -V >&5"
3072 case "(($ac_try" in
3073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074   *) ac_try_echo=$ac_try;;
3075 esac
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077   (eval "$ac_compiler -V >&5") 2>&5
3078   ac_status=$?
3079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080   (exit $ac_status); }
3081
3082 cat >conftest.$ac_ext <<_ACEOF
3083 /* confdefs.h.  */
3084 _ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h.  */
3088
3089 int
3090 main ()
3091 {
3092
3093   ;
3094   return 0;
3095 }
3096 _ACEOF
3097 ac_clean_files_save=$ac_clean_files
3098 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3099 # Try to create an executable without -o first, disregard a.out.
3100 # It will help us diagnose broken compilers, and finding out an intuition
3101 # of exeext.
3102 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3103 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3104 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3105 #
3106 # List of possible output files, starting from the most likely.
3107 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3108 # only as a last resort.  b.out is created by i960 compilers.
3109 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3110 #
3111 # The IRIX 6 linker writes into existing files which may not be
3112 # executable, retaining their permissions.  Remove them first so a
3113 # subsequent execution test works.
3114 ac_rmfiles=
3115 for ac_file in $ac_files
3116 do
3117   case $ac_file in
3118     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3119     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3120   esac
3121 done
3122 rm -f $ac_rmfiles
3123
3124 if { (ac_try="$ac_link_default"
3125 case "(($ac_try" in
3126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127   *) ac_try_echo=$ac_try;;
3128 esac
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130   (eval "$ac_link_default") 2>&5
3131   ac_status=$?
3132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133   (exit $ac_status); }; then
3134   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3135 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3136 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3137 # so that the user can short-circuit this test for compilers unknown to
3138 # Autoconf.
3139 for ac_file in $ac_files ''
3140 do
3141   test -f "$ac_file" || continue
3142   case $ac_file in
3143     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3144         ;;
3145     [ab].out )
3146         # We found the default executable, but exeext='' is most
3147         # certainly right.
3148         break;;
3149     *.* )
3150         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3151         then :; else
3152            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3153         fi
3154         # We set ac_cv_exeext here because the later test for it is not
3155         # safe: cross compilers may not add the suffix if given an `-o'
3156         # argument, so we may need to know it at that point already.
3157         # Even if this section looks crufty: it has the advantage of
3158         # actually working.
3159         break;;
3160     * )
3161         break;;
3162   esac
3163 done
3164 test "$ac_cv_exeext" = no && ac_cv_exeext=
3165
3166 else
3167   ac_file=''
3168 fi
3169
3170 { echo "$as_me:$LINENO: result: $ac_file" >&5
3171 echo "${ECHO_T}$ac_file" >&6; }
3172 if test -z "$ac_file"; then
3173   echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3175
3176 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3177 See \`config.log' for more details." >&5
3178 echo "$as_me: error: C compiler cannot create executables
3179 See \`config.log' for more details." >&2;}
3180    { (exit 77); exit 77; }; }
3181 fi
3182
3183 ac_exeext=$ac_cv_exeext
3184
3185 # Check that the compiler produces executables we can run.  If not, either
3186 # the compiler is broken, or we cross compile.
3187 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3188 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3189 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3190 # If not cross compiling, check that we can run a simple program.
3191 if test "$cross_compiling" != yes; then
3192   if { ac_try='./$ac_file'
3193   { (case "(($ac_try" in
3194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195   *) ac_try_echo=$ac_try;;
3196 esac
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198   (eval "$ac_try") 2>&5
3199   ac_status=$?
3200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201   (exit $ac_status); }; }; then
3202     cross_compiling=no
3203   else
3204     if test "$cross_compiling" = maybe; then
3205         cross_compiling=yes
3206     else
3207         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3208 If you meant to cross compile, use \`--host'.
3209 See \`config.log' for more details." >&5
3210 echo "$as_me: error: cannot run C compiled programs.
3211 If you meant to cross compile, use \`--host'.
3212 See \`config.log' for more details." >&2;}
3213    { (exit 1); exit 1; }; }
3214     fi
3215   fi
3216 fi
3217 { echo "$as_me:$LINENO: result: yes" >&5
3218 echo "${ECHO_T}yes" >&6; }
3219
3220 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3221 ac_clean_files=$ac_clean_files_save
3222 # Check that the compiler produces executables we can run.  If not, either
3223 # the compiler is broken, or we cross compile.
3224 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3225 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3226 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3227 echo "${ECHO_T}$cross_compiling" >&6; }
3228
3229 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3230 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3231 if { (ac_try="$ac_link"
3232 case "(($ac_try" in
3233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234   *) ac_try_echo=$ac_try;;
3235 esac
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237   (eval "$ac_link") 2>&5
3238   ac_status=$?
3239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240   (exit $ac_status); }; then
3241   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3242 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3243 # work properly (i.e., refer to `conftest.exe'), while it won't with
3244 # `rm'.
3245 for ac_file in conftest.exe conftest conftest.*; do
3246   test -f "$ac_file" || continue
3247   case $ac_file in
3248     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3249     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3250           break;;
3251     * ) break;;
3252   esac
3253 done
3254 else
3255   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3256 See \`config.log' for more details." >&5
3257 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3258 See \`config.log' for more details." >&2;}
3259    { (exit 1); exit 1; }; }
3260 fi
3261
3262 rm -f conftest$ac_cv_exeext
3263 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3264 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3265
3266 rm -f conftest.$ac_ext
3267 EXEEXT=$ac_cv_exeext
3268 ac_exeext=$EXEEXT
3269 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3270 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3271 if test "${ac_cv_objext+set}" = set; then
3272   echo $ECHO_N "(cached) $ECHO_C" >&6
3273 else
3274   cat >conftest.$ac_ext <<_ACEOF
3275 /* confdefs.h.  */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h.  */
3280
3281 int
3282 main ()
3283 {
3284
3285   ;
3286   return 0;
3287 }
3288 _ACEOF
3289 rm -f conftest.o conftest.obj
3290 if { (ac_try="$ac_compile"
3291 case "(($ac_try" in
3292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293   *) ac_try_echo=$ac_try;;
3294 esac
3295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296   (eval "$ac_compile") 2>&5
3297   ac_status=$?
3298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299   (exit $ac_status); }; then
3300   for ac_file in conftest.o conftest.obj conftest.*; do
3301   test -f "$ac_file" || continue;
3302   case $ac_file in
3303     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3304     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3305        break;;
3306   esac
3307 done
3308 else
3309   echo "$as_me: failed program was:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3311
3312 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3313 See \`config.log' for more details." >&5
3314 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3315 See \`config.log' for more details." >&2;}
3316    { (exit 1); exit 1; }; }
3317 fi
3318
3319 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3320 fi
3321 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3322 echo "${ECHO_T}$ac_cv_objext" >&6; }
3323 OBJEXT=$ac_cv_objext
3324 ac_objext=$OBJEXT
3325 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3326 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3327 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3328   echo $ECHO_N "(cached) $ECHO_C" >&6
3329 else
3330   cat >conftest.$ac_ext <<_ACEOF
3331 /* confdefs.h.  */
3332 _ACEOF
3333 cat confdefs.h >>conftest.$ac_ext
3334 cat >>conftest.$ac_ext <<_ACEOF
3335 /* end confdefs.h.  */
3336
3337 int
3338 main ()
3339 {
3340 #ifndef __GNUC__
3341        choke me
3342 #endif
3343
3344   ;
3345   return 0;
3346 }
3347 _ACEOF
3348 rm -f conftest.$ac_objext
3349 if { (ac_try="$ac_compile"
3350 case "(($ac_try" in
3351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352   *) ac_try_echo=$ac_try;;
3353 esac
3354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355   (eval "$ac_compile") 2>conftest.er1
3356   ac_status=$?
3357   grep -v '^ *+' conftest.er1 >conftest.err
3358   rm -f conftest.er1
3359   cat conftest.err >&5
3360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361   (exit $ac_status); } && {
3362          test -z "$ac_c_werror_flag" ||
3363          test ! -s conftest.err
3364        } && test -s conftest.$ac_objext; then
3365   ac_compiler_gnu=yes
3366 else
3367   echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3369
3370         ac_compiler_gnu=no
3371 fi
3372
3373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3374 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3375
3376 fi
3377 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3378 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3379 GCC=`test $ac_compiler_gnu = yes && echo yes`
3380 ac_test_CFLAGS=${CFLAGS+set}
3381 ac_save_CFLAGS=$CFLAGS
3382 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3383 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3384 if test "${ac_cv_prog_cc_g+set}" = set; then
3385   echo $ECHO_N "(cached) $ECHO_C" >&6
3386 else
3387   ac_save_c_werror_flag=$ac_c_werror_flag
3388    ac_c_werror_flag=yes
3389    ac_cv_prog_cc_g=no
3390    CFLAGS="-g"
3391    cat >conftest.$ac_ext <<_ACEOF
3392 /* confdefs.h.  */
3393 _ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h.  */
3397
3398 int
3399 main ()
3400 {
3401
3402   ;
3403   return 0;
3404 }
3405 _ACEOF
3406 rm -f conftest.$ac_objext
3407 if { (ac_try="$ac_compile"
3408 case "(($ac_try" in
3409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410   *) ac_try_echo=$ac_try;;
3411 esac
3412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413   (eval "$ac_compile") 2>conftest.er1
3414   ac_status=$?
3415   grep -v '^ *+' conftest.er1 >conftest.err
3416   rm -f conftest.er1
3417   cat conftest.err >&5
3418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419   (exit $ac_status); } && {
3420          test -z "$ac_c_werror_flag" ||
3421          test ! -s conftest.err
3422        } && test -s conftest.$ac_objext; then
3423   ac_cv_prog_cc_g=yes
3424 else
3425   echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3427
3428         CFLAGS=""
3429       cat >conftest.$ac_ext <<_ACEOF
3430 /* confdefs.h.  */
3431 _ACEOF
3432 cat confdefs.h >>conftest.$ac_ext
3433 cat >>conftest.$ac_ext <<_ACEOF
3434 /* end confdefs.h.  */
3435
3436 int
3437 main ()
3438 {
3439
3440   ;
3441   return 0;
3442 }
3443 _ACEOF
3444 rm -f conftest.$ac_objext
3445 if { (ac_try="$ac_compile"
3446 case "(($ac_try" in
3447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448   *) ac_try_echo=$ac_try;;
3449 esac
3450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451   (eval "$ac_compile") 2>conftest.er1
3452   ac_status=$?
3453   grep -v '^ *+' conftest.er1 >conftest.err
3454   rm -f conftest.er1
3455   cat conftest.err >&5
3456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457   (exit $ac_status); } && {
3458          test -z "$ac_c_werror_flag" ||
3459          test ! -s conftest.err
3460        } && test -s conftest.$ac_objext; then
3461   :
3462 else
3463   echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3465
3466         ac_c_werror_flag=$ac_save_c_werror_flag
3467          CFLAGS="-g"
3468          cat >conftest.$ac_ext <<_ACEOF
3469 /* confdefs.h.  */
3470 _ACEOF
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h.  */
3474
3475 int
3476 main ()
3477 {
3478
3479   ;
3480   return 0;
3481 }
3482 _ACEOF
3483 rm -f conftest.$ac_objext
3484 if { (ac_try="$ac_compile"
3485 case "(($ac_try" in
3486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487   *) ac_try_echo=$ac_try;;
3488 esac
3489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3490   (eval "$ac_compile") 2>conftest.er1
3491   ac_status=$?
3492   grep -v '^ *+' conftest.er1 >conftest.err
3493   rm -f conftest.er1
3494   cat conftest.err >&5
3495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496   (exit $ac_status); } && {
3497          test -z "$ac_c_werror_flag" ||
3498          test ! -s conftest.err
3499        } && test -s conftest.$ac_objext; then
3500   ac_cv_prog_cc_g=yes
3501 else
3502   echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3504
3505
3506 fi
3507
3508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509 fi
3510
3511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512 fi
3513
3514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515    ac_c_werror_flag=$ac_save_c_werror_flag
3516 fi
3517 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3518 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3519 if test "$ac_test_CFLAGS" = set; then
3520   CFLAGS=$ac_save_CFLAGS
3521 elif test $ac_cv_prog_cc_g = yes; then
3522   if test "$GCC" = yes; then
3523     CFLAGS="-g -O2"
3524   else
3525     CFLAGS="-g"
3526   fi
3527 else
3528   if test "$GCC" = yes; then
3529     CFLAGS="-O2"
3530   else
3531     CFLAGS=
3532   fi
3533 fi
3534 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3535 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3536 if test "${ac_cv_prog_cc_c89+set}" = set; then
3537   echo $ECHO_N "(cached) $ECHO_C" >&6
3538 else
3539   ac_cv_prog_cc_c89=no
3540 ac_save_CC=$CC
3541 cat >conftest.$ac_ext <<_ACEOF
3542 /* confdefs.h.  */
3543 _ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h.  */
3547 #include <stdarg.h>
3548 #include <stdio.h>
3549 #include <sys/types.h>
3550 #include <sys/stat.h>
3551 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3552 struct buf { int x; };
3553 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3554 static char *e (p, i)
3555      char **p;
3556      int i;
3557 {
3558   return p[i];
3559 }
3560 static char *f (char * (*g) (char **, int), char **p, ...)
3561 {
3562   char *s;
3563   va_list v;
3564   va_start (v,p);
3565   s = g (p, va_arg (v,int));
3566   va_end (v);
3567   return s;
3568 }
3569
3570 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3571    function prototypes and stuff, but not '\xHH' hex character constants.
3572    These don't provoke an error unfortunately, instead are silently treated
3573    as 'x'.  The following induces an error, until -std is added to get
3574    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3575    array size at least.  It's necessary to write '\x00'==0 to get something
3576    that's true only with -std.  */
3577 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3578
3579 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3580    inside strings and character constants.  */
3581 #define FOO(x) 'x'
3582 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3583
3584 int test (int i, double x);
3585 struct s1 {int (*f) (int a);};
3586 struct s2 {int (*f) (double a);};
3587 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3588 int argc;
3589 char **argv;
3590 int
3591 main ()
3592 {
3593 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3594   ;
3595   return 0;
3596 }
3597 _ACEOF
3598 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3599         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3600 do
3601   CC="$ac_save_CC $ac_arg"
3602   rm -f conftest.$ac_objext
3603 if { (ac_try="$ac_compile"
3604 case "(($ac_try" in
3605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606   *) ac_try_echo=$ac_try;;
3607 esac
3608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3609   (eval "$ac_compile") 2>conftest.er1
3610   ac_status=$?
3611   grep -v '^ *+' conftest.er1 >conftest.err
3612   rm -f conftest.er1
3613   cat conftest.err >&5
3614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615   (exit $ac_status); } && {
3616          test -z "$ac_c_werror_flag" ||
3617          test ! -s conftest.err
3618        } && test -s conftest.$ac_objext; then
3619   ac_cv_prog_cc_c89=$ac_arg
3620 else
3621   echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3623
3624
3625 fi
3626
3627 rm -f core conftest.err conftest.$ac_objext
3628   test "x$ac_cv_prog_cc_c89" != "xno" && break
3629 done
3630 rm -f conftest.$ac_ext
3631 CC=$ac_save_CC
3632
3633 fi
3634 # AC_CACHE_VAL
3635 case "x$ac_cv_prog_cc_c89" in
3636   x)
3637     { echo "$as_me:$LINENO: result: none needed" >&5
3638 echo "${ECHO_T}none needed" >&6; } ;;
3639   xno)
3640     { echo "$as_me:$LINENO: result: unsupported" >&5
3641 echo "${ECHO_T}unsupported" >&6; } ;;
3642   *)
3643     CC="$CC $ac_cv_prog_cc_c89"
3644     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3645 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3646 esac
3647
3648
3649 ac_ext=c
3650 ac_cpp='$CPP $CPPFLAGS'
3651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3654
3655 depcc="$CC"   am_compiler_list=
3656
3657 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3658 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3659 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3660   echo $ECHO_N "(cached) $ECHO_C" >&6
3661 else
3662   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3663   # We make a subdir and do the tests there.  Otherwise we can end up
3664   # making bogus files that we don't know about and never remove.  For
3665   # instance it was reported that on HP-UX the gcc test will end up
3666   # making a dummy file named `D' -- because `-MD' means `put the output
3667   # in D'.
3668   mkdir conftest.dir
3669   # Copy depcomp to subdir because otherwise we won't find it if we're
3670   # using a relative directory.
3671   cp "$am_depcomp" conftest.dir
3672   cd conftest.dir
3673   # We will build objects and dependencies in a subdirectory because
3674   # it helps to detect inapplicable dependency modes.  For instance
3675   # both Tru64's cc and ICC support -MD to output dependencies as a
3676   # side effect of compilation, but ICC will put the dependencies in
3677   # the current directory while Tru64 will put them in the object
3678   # directory.
3679   mkdir sub
3680
3681   am_cv_CC_dependencies_compiler_type=none
3682   if test "$am_compiler_list" = ""; then
3683      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3684   fi
3685   for depmode in $am_compiler_list; do
3686     # Setup a source with many dependencies, because some compilers
3687     # like to wrap large dependency lists on column 80 (with \), and
3688     # we should not choose a depcomp mode which is confused by this.
3689     #
3690     # We need to recreate these files for each test, as the compiler may
3691     # overwrite some of them when testing with obscure command lines.
3692     # This happens at least with the AIX C compiler.
3693     : > sub/conftest.c
3694     for i in 1 2 3 4 5 6; do
3695       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3696       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3697       # Solaris 8's {/usr,}/bin/sh.
3698       touch sub/conftst$i.h
3699     done
3700     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3701
3702     case $depmode in
3703     nosideeffect)
3704       # after this tag, mechanisms are not by side-effect, so they'll
3705       # only be used when explicitly requested
3706       if test "x$enable_dependency_tracking" = xyes; then
3707         continue
3708       else
3709         break
3710       fi
3711       ;;
3712     none) break ;;
3713     esac
3714     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3715     # mode.  It turns out that the SunPro C++ compiler does not properly
3716     # handle `-M -o', and we need to detect this.
3717     if depmode=$depmode \
3718        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3719        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3720        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3721          >/dev/null 2>conftest.err &&
3722        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3723        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3724        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3725       # icc doesn't choke on unknown options, it will just issue warnings
3726       # or remarks (even with -Werror).  So we grep stderr for any message
3727       # that says an option was ignored or not supported.
3728       # When given -MP, icc 7.0 and 7.1 complain thusly:
3729       #   icc: Command line warning: ignoring option '-M'; no argument required
3730       # The diagnosis changed in icc 8.0:
3731       #   icc: Command line remark: option '-MP' not supported
3732       if (grep 'ignoring option' conftest.err ||
3733           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3734         am_cv_CC_dependencies_compiler_type=$depmode
3735         break
3736       fi
3737     fi
3738   done
3739
3740   cd ..
3741   rm -rf conftest.dir
3742 else
3743   am_cv_CC_dependencies_compiler_type=none
3744 fi
3745
3746 fi
3747 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3748 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3749 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3750
3751
3752
3753 if
3754   test "x$enable_dependency_tracking" != xno \
3755   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3756   am__fastdepCC_TRUE=
3757   am__fastdepCC_FALSE='#'
3758 else
3759   am__fastdepCC_TRUE='#'
3760   am__fastdepCC_FALSE=
3761 fi
3762
3763
3764 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3765 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3766 if test "${lt_cv_path_SED+set}" = set; then
3767   echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769   # Loop through the user's path and test for sed and gsed.
3770 # Then use that list of sed's as ones to test for truncation.
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH
3773 do
3774   IFS=$as_save_IFS
3775   test -z "$as_dir" && as_dir=.
3776   for lt_ac_prog in sed gsed; do
3777     for ac_exec_ext in '' $ac_executable_extensions; do
3778       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3779         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3780       fi
3781     done
3782   done
3783 done
3784 lt_ac_max=0
3785 lt_ac_count=0
3786 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3787 # along with /bin/sed that truncates output.
3788 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3789   test ! -f $lt_ac_sed && continue
3790   cat /dev/null > conftest.in
3791   lt_ac_count=0
3792   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3793   # Check for GNU sed and select it if it is found.
3794   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3795     lt_cv_path_SED=$lt_ac_sed
3796     break
3797   fi
3798   while true; do
3799     cat conftest.in conftest.in >conftest.tmp
3800     mv conftest.tmp conftest.in
3801     cp conftest.in conftest.nl
3802     echo >>conftest.nl
3803     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3804     cmp -s conftest.out conftest.nl || break
3805     # 10000 chars as input seems more than enough
3806     test $lt_ac_count -gt 10 && break
3807     lt_ac_count=`expr $lt_ac_count + 1`
3808     if test $lt_ac_count -gt $lt_ac_max; then
3809       lt_ac_max=$lt_ac_count
3810       lt_cv_path_SED=$lt_ac_sed
3811     fi
3812   done
3813 done
3814
3815 fi
3816
3817 SED=$lt_cv_path_SED
3818 { echo "$as_me:$LINENO: result: $SED" >&5
3819 echo "${ECHO_T}$SED" >&6; }
3820
3821 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3822 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3823 if test "${ac_cv_path_GREP+set}" = set; then
3824   echo $ECHO_N "(cached) $ECHO_C" >&6
3825 else
3826   # Extract the first word of "grep ggrep" to use in msg output
3827 if test -z "$GREP"; then
3828 set dummy grep ggrep; ac_prog_name=$2
3829 if test "${ac_cv_path_GREP+set}" = set; then
3830   echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832   ac_path_GREP_found=false
3833 # Loop through the user's path and test for each of PROGNAME-LIST
3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3836 do
3837   IFS=$as_save_IFS
3838   test -z "$as_dir" && as_dir=.
3839   for ac_prog in grep ggrep; do
3840   for ac_exec_ext in '' $ac_executable_extensions; do
3841     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3842     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3843     # Check for GNU ac_path_GREP and select it if it is found.
3844   # Check for GNU $ac_path_GREP
3845 case `"$ac_path_GREP" --version 2>&1` in
3846 *GNU*)
3847   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3848 *)
3849   ac_count=0
3850   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3851   while :
3852   do
3853     cat "conftest.in" "conftest.in" >"conftest.tmp"
3854     mv "conftest.tmp" "conftest.in"
3855     cp "conftest.in" "conftest.nl"
3856     echo 'GREP' >> "conftest.nl"
3857     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3858     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3859     ac_count=`expr $ac_count + 1`
3860     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3861       # Best one so far, save it but keep looking for a better one
3862       ac_cv_path_GREP="$ac_path_GREP"
3863       ac_path_GREP_max=$ac_count
3864     fi
3865     # 10*(2^10) chars as input seems more than enough
3866     test $ac_count -gt 10 && break
3867   done
3868   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3869 esac
3870
3871
3872     $ac_path_GREP_found && break 3
3873   done
3874 done
3875
3876 done
3877 IFS=$as_save_IFS
3878
3879
3880 fi
3881
3882 GREP="$ac_cv_path_GREP"
3883 if test -z "$GREP"; then
3884   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3885 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3886    { (exit 1); exit 1; }; }
3887 fi
3888
3889 else
3890   ac_cv_path_GREP=$GREP
3891 fi
3892
3893
3894 fi
3895 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3896 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3897  GREP="$ac_cv_path_GREP"
3898
3899
3900 { echo "$as_me:$LINENO: checking for egrep" >&5
3901 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3902 if test "${ac_cv_path_EGREP+set}" = set; then
3903   echo $ECHO_N "(cached) $ECHO_C" >&6
3904 else
3905   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3906    then ac_cv_path_EGREP="$GREP -E"
3907    else
3908      # Extract the first word of "egrep" to use in msg output
3909 if test -z "$EGREP"; then
3910 set dummy egrep; ac_prog_name=$2
3911 if test "${ac_cv_path_EGREP+set}" = set; then
3912   echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914   ac_path_EGREP_found=false
3915 # Loop through the user's path and test for each of PROGNAME-LIST
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3918 do
3919   IFS=$as_save_IFS
3920   test -z "$as_dir" && as_dir=.
3921   for ac_prog in egrep; do
3922   for ac_exec_ext in '' $ac_executable_extensions; do
3923     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3924     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3925     # Check for GNU ac_path_EGREP and select it if it is found.
3926   # Check for GNU $ac_path_EGREP
3927 case `"$ac_path_EGREP" --version 2>&1` in
3928 *GNU*)
3929   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3930 *)
3931   ac_count=0
3932   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3933   while :
3934   do
3935     cat "conftest.in" "conftest.in" >"conftest.tmp"
3936     mv "conftest.tmp" "conftest.in"
3937     cp "conftest.in" "conftest.nl"
3938     echo 'EGREP' >> "conftest.nl"
3939     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3940     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3941     ac_count=`expr $ac_count + 1`
3942     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3943       # Best one so far, save it but keep looking for a better one
3944       ac_cv_path_EGREP="$ac_path_EGREP"
3945       ac_path_EGREP_max=$ac_count
3946     fi
3947     # 10*(2^10) chars as input seems more than enough
3948     test $ac_count -gt 10 && break
3949   done
3950   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3951 esac
3952
3953
3954     $ac_path_EGREP_found && break 3
3955   done
3956 done
3957
3958 done
3959 IFS=$as_save_IFS
3960
3961
3962 fi
3963
3964 EGREP="$ac_cv_path_EGREP"
3965 if test -z "$EGREP"; then
3966   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3967 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3968    { (exit 1); exit 1; }; }
3969 fi
3970
3971 else
3972   ac_cv_path_EGREP=$EGREP
3973 fi
3974
3975
3976    fi
3977 fi
3978 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3979 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3980  EGREP="$ac_cv_path_EGREP"
3981
3982
3983
3984 # Check whether --with-gnu-ld was given.
3985 if test "${with_gnu_ld+set}" = set; then
3986   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3987 else
3988   with_gnu_ld=no
3989 fi
3990
3991 ac_prog=ld
3992 if test "$GCC" = yes; then
3993   # Check if gcc -print-prog-name=ld gives a path.
3994   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3995 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3996   case $host in
3997   *-*-mingw*)
3998     # gcc leaves a trailing carriage return which upsets mingw
3999     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4000   *)
4001     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4002   esac
4003   case $ac_prog in
4004     # Accept absolute paths.
4005     [\\/]* | ?:[\\/]*)
4006       re_direlt='/[^/][^/]*/\.\./'
4007       # Canonicalize the pathname of ld
4008       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4009       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4010         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4011       done
4012       test -z "$LD" && LD="$ac_prog"
4013       ;;
4014   "")
4015     # If it fails, then pretend we aren't using GCC.
4016     ac_prog=ld
4017     ;;
4018   *)
4019     # If it is relative, then search for the first ld in PATH.
4020     with_gnu_ld=unknown
4021     ;;
4022   esac
4023 elif test "$with_gnu_ld" = yes; then
4024   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4025 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4026 else
4027   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4028 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4029 fi
4030 if test "${lt_cv_path_LD+set}" = set; then
4031   echo $ECHO_N "(cached) $ECHO_C" >&6
4032 else
4033   if test -z "$LD"; then
4034   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4035   for ac_dir in $PATH; do
4036     IFS="$lt_save_ifs"
4037     test -z "$ac_dir" && ac_dir=.
4038     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4039       lt_cv_path_LD="$ac_dir/$ac_prog"
4040       # Check to see if the program is GNU ld.  I'd rather use --version,
4041       # but apparently some variants of GNU ld only accept -v.
4042       # Break only if it was the GNU/non-GNU ld that we prefer.
4043       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4044       *GNU* | *'with BFD'*)
4045         test "$with_gnu_ld" != no && break
4046         ;;
4047       *)
4048         test "$with_gnu_ld" != yes && break
4049         ;;
4050       esac
4051     fi
4052   done
4053   IFS="$lt_save_ifs"
4054 else
4055   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4056 fi
4057 fi
4058
4059 LD="$lt_cv_path_LD"
4060 if test -n "$LD"; then
4061   { echo "$as_me:$LINENO: result: $LD" >&5
4062 echo "${ECHO_T}$LD" >&6; }
4063 else
4064   { echo "$as_me:$LINENO: result: no" >&5
4065 echo "${ECHO_T}no" >&6; }
4066 fi
4067 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4068 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4069    { (exit 1); exit 1; }; }
4070 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4071 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4072 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4073   echo $ECHO_N "(cached) $ECHO_C" >&6
4074 else
4075   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4076 case `$LD -v 2>&1 </dev/null` in
4077 *GNU* | *'with BFD'*)
4078   lt_cv_prog_gnu_ld=yes
4079   ;;
4080 *)
4081   lt_cv_prog_gnu_ld=no
4082   ;;
4083 esac
4084 fi
4085 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4086 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4087 with_gnu_ld=$lt_cv_prog_gnu_ld
4088
4089
4090 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4091 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4092 if test "${lt_cv_ld_reload_flag+set}" = set; then
4093   echo $ECHO_N "(cached) $ECHO_C" >&6
4094 else
4095   lt_cv_ld_reload_flag='-r'
4096 fi
4097 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4098 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4099 reload_flag=$lt_cv_ld_reload_flag
4100 case $reload_flag in
4101 "" | " "*) ;;
4102 *) reload_flag=" $reload_flag" ;;
4103 esac
4104 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4105 case $host_os in
4106   darwin*)
4107     if test "$GCC" = yes; then
4108       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4109     else
4110       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4111     fi
4112     ;;
4113 esac
4114
4115 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4116 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4117 if test "${lt_cv_path_NM+set}" = set; then
4118   echo $ECHO_N "(cached) $ECHO_C" >&6
4119 else
4120   if test -n "$NM"; then
4121   # Let the user override the test.
4122   lt_cv_path_NM="$NM"
4123 else
4124   lt_nm_to_check="${ac_tool_prefix}nm"
4125   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4126     lt_nm_to_check="$lt_nm_to_check nm"
4127   fi
4128   for lt_tmp_nm in $lt_nm_to_check; do
4129     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4130     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4131       IFS="$lt_save_ifs"
4132       test -z "$ac_dir" && ac_dir=.
4133       tmp_nm="$ac_dir/$lt_tmp_nm"
4134       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4135         # Check to see if the nm accepts a BSD-compat flag.
4136         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4137         #   nm: unknown option "B" ignored
4138         # Tru64's nm complains that /dev/null is an invalid object file
4139         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4140         */dev/null* | *'Invalid file or object type'*)
4141           lt_cv_path_NM="$tmp_nm -B"
4142           break
4143           ;;
4144         *)
4145           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4146           */dev/null*)
4147             lt_cv_path_NM="$tmp_nm -p"
4148             break
4149             ;;
4150           *)
4151             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4152             continue # so that we can try to find one that supports BSD flags
4153             ;;
4154           esac
4155           ;;
4156         esac
4157       fi
4158     done
4159     IFS="$lt_save_ifs"
4160   done
4161   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4162 fi
4163 fi
4164 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4165 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4166 NM="$lt_cv_path_NM"
4167
4168 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4169 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4170 LN_S=$as_ln_s
4171 if test "$LN_S" = "ln -s"; then
4172   { echo "$as_me:$LINENO: result: yes" >&5
4173 echo "${ECHO_T}yes" >&6; }
4174 else
4175   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4176 echo "${ECHO_T}no, using $LN_S" >&6; }
4177 fi
4178
4179 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4180 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4181 if test "${lt_cv_deplibs_check_method+set}" = set; then
4182   echo $ECHO_N "(cached) $ECHO_C" >&6
4183 else
4184   lt_cv_file_magic_cmd='$MAGIC_CMD'
4185 lt_cv_file_magic_test_file=
4186 lt_cv_deplibs_check_method='unknown'
4187 # Need to set the preceding variable on all platforms that support
4188 # interlibrary dependencies.
4189 # 'none' -- dependencies not supported.
4190 # `unknown' -- same as none, but documents that we really don't know.
4191 # 'pass_all' -- all dependencies passed with no checks.
4192 # 'test_compile' -- check by making test program.
4193 # 'file_magic [[regex]]' -- check by looking for files in library path
4194 # which responds to the $file_magic_cmd with a given extended regex.
4195 # If you have `file' or equivalent on your system and you're not sure
4196 # whether `pass_all' will *always* work, you probably want this one.
4197
4198 case $host_os in
4199 aix4* | aix5*)
4200   lt_cv_deplibs_check_method=pass_all
4201   ;;
4202
4203 beos*)
4204   lt_cv_deplibs_check_method=pass_all
4205   ;;
4206
4207 bsdi[45]*)
4208   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4209   lt_cv_file_magic_cmd='/usr/bin/file -L'
4210   lt_cv_file_magic_test_file=/shlib/libc.so
4211   ;;
4212
4213 cygwin*)
4214   # func_win32_libid is a shell function defined in ltmain.sh
4215   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4216   lt_cv_file_magic_cmd='func_win32_libid'
4217   ;;
4218
4219 mingw* | pw32*)
4220   # Base MSYS/MinGW do not provide the 'file' command needed by
4221   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4222   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4223   lt_cv_file_magic_cmd='$OBJDUMP -f'
4224   ;;
4225
4226 darwin* | rhapsody*)
4227   lt_cv_deplibs_check_method=pass_all
4228   ;;
4229
4230 freebsd* | dragonfly*)
4231   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4232     case $host_cpu in
4233     i*86 )
4234       # Not sure whether the presence of OpenBSD here was a mistake.
4235       # Let's accept both of them until this is cleared up.
4236       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4237       lt_cv_file_magic_cmd=/usr/bin/file
4238       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4239       ;;
4240     esac
4241   else
4242     lt_cv_deplibs_check_method=pass_all
4243   fi
4244   ;;
4245
4246 gnu*)
4247   lt_cv_deplibs_check_method=pass_all
4248   ;;
4249
4250 hpux10.20* | hpux11*)
4251   lt_cv_file_magic_cmd=/usr/bin/file
4252   case $host_cpu in
4253   ia64*)
4254     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4255     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4256     ;;
4257   hppa*64*)
4258     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]'
4259     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4260     ;;
4261   *)
4262     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4263     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4264     ;;
4265   esac
4266   ;;
4267
4268 interix3*)
4269   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4270   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4271   ;;
4272
4273 irix5* | irix6* | nonstopux*)
4274   case $LD in
4275   *-32|*"-32 ") libmagic=32-bit;;
4276   *-n32|*"-n32 ") libmagic=N32;;
4277   *-64|*"-64 ") libmagic=64-bit;;
4278   *) libmagic=never-match;;
4279   esac
4280   lt_cv_deplibs_check_method=pass_all
4281   ;;
4282
4283 # This must be Linux ELF.
4284 linux* | k*bsd*-gnu)
4285   lt_cv_deplibs_check_method=pass_all
4286   ;;
4287
4288 netbsd* | netbsdelf*-gnu)
4289   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4290     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4291   else
4292     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4293   fi
4294   ;;
4295
4296 newos6*)
4297   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4298   lt_cv_file_magic_cmd=/usr/bin/file
4299   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4300   ;;
4301
4302 nto-qnx*)
4303   lt_cv_deplibs_check_method=unknown
4304   ;;
4305
4306 openbsd*)
4307   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4308     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4309   else
4310     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4311   fi
4312   ;;
4313
4314 osf3* | osf4* | osf5*)
4315   lt_cv_deplibs_check_method=pass_all
4316   ;;
4317
4318 solaris*)
4319   lt_cv_deplibs_check_method=pass_all
4320   ;;
4321
4322 sysv4 | sysv4.3*)
4323   case $host_vendor in
4324   motorola)
4325     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]'
4326     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4327     ;;
4328   ncr)
4329     lt_cv_deplibs_check_method=pass_all
4330     ;;
4331   sequent)
4332     lt_cv_file_magic_cmd='/bin/file'
4333     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4334     ;;
4335   sni)
4336     lt_cv_file_magic_cmd='/bin/file'
4337     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4338     lt_cv_file_magic_test_file=/lib/libc.so
4339     ;;
4340   siemens)
4341     lt_cv_deplibs_check_method=pass_all
4342     ;;
4343   pc)
4344     lt_cv_deplibs_check_method=pass_all
4345     ;;
4346   esac
4347   ;;
4348
4349 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4350   lt_cv_deplibs_check_method=pass_all
4351   ;;
4352 esac
4353
4354 fi
4355 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4356 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4357 file_magic_cmd=$lt_cv_file_magic_cmd
4358 deplibs_check_method=$lt_cv_deplibs_check_method
4359 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4360
4361
4362
4363
4364 # If no C compiler was specified, use CC.
4365 LTCC=${LTCC-"$CC"}
4366
4367 # If no C compiler flags were specified, use CFLAGS.
4368 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4369
4370 # Allow CC to be a program name with arguments.
4371 compiler=$CC
4372
4373
4374 # Check whether --enable-libtool-lock was given.
4375 if test "${enable_libtool_lock+set}" = set; then
4376   enableval=$enable_libtool_lock;
4377 fi
4378
4379 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4380
4381 # Some flags need to be propagated to the compiler or linker for good
4382 # libtool support.
4383 case $host in
4384 ia64-*-hpux*)
4385   # Find out which ABI we are using.
4386   echo 'int i;' > conftest.$ac_ext
4387   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388   (eval $ac_compile) 2>&5
4389   ac_status=$?
4390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391   (exit $ac_status); }; then
4392     case `/usr/bin/file conftest.$ac_objext` in
4393     *ELF-32*)
4394       HPUX_IA64_MODE="32"
4395       ;;
4396     *ELF-64*)
4397       HPUX_IA64_MODE="64"
4398       ;;
4399     esac
4400   fi
4401   rm -rf conftest*
4402   ;;
4403 *-*-irix6*)
4404   # Find out which ABI we are using.
4405   echo '#line 4405 "configure"' > conftest.$ac_ext
4406   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4407   (eval $ac_compile) 2>&5
4408   ac_status=$?
4409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410   (exit $ac_status); }; then
4411    if test "$lt_cv_prog_gnu_ld" = yes; then
4412     case `/usr/bin/file conftest.$ac_objext` in
4413     *32-bit*)
4414       LD="${LD-ld} -melf32bsmip"
4415       ;;
4416     *N32*)
4417       LD="${LD-ld} -melf32bmipn32"
4418       ;;
4419     *64-bit*)
4420       LD="${LD-ld} -melf64bmip"
4421       ;;
4422     esac
4423    else
4424     case `/usr/bin/file conftest.$ac_objext` in
4425     *32-bit*)
4426       LD="${LD-ld} -32"
4427       ;;
4428     *N32*)
4429       LD="${LD-ld} -n32"
4430       ;;
4431     *64-bit*)
4432       LD="${LD-ld} -64"
4433       ;;
4434     esac
4435    fi
4436   fi
4437   rm -rf conftest*
4438   ;;
4439
4440 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4441   # Find out which ABI we are using.
4442   echo 'int i;' > conftest.$ac_ext
4443   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444   (eval $ac_compile) 2>&5
4445   ac_status=$?
4446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447   (exit $ac_status); }; then
4448     case `/usr/bin/file conftest.o` in
4449     *32-bit*)
4450       case $host in
4451         x86_64-*linux*)
4452           LD="${LD-ld} -m elf_i386"
4453           ;;
4454         ppc64-*linux*|powerpc64-*linux*)
4455           LD="${LD-ld} -m elf32ppclinux"
4456           ;;
4457         s390x-*linux*)
4458           LD="${LD-ld} -m elf_s390"
4459           ;;
4460         sparc64-*linux*)
4461           LD="${LD-ld} -m elf32_sparc"
4462           ;;
4463       esac
4464       ;;
4465     *64-bit*)
4466       case $host in
4467         x86_64-*linux*)
4468           LD="${LD-ld} -m elf_x86_64"
4469           ;;
4470         ppc*-*linux*|powerpc*-*linux*)
4471           LD="${LD-ld} -m elf64ppc"
4472           ;;
4473         s390*-*linux*)
4474           LD="${LD-ld} -m elf64_s390"
4475           ;;
4476         sparc*-*linux*)
4477           LD="${LD-ld} -m elf64_sparc"
4478           ;;
4479       esac
4480       ;;
4481     esac
4482   fi
4483   rm -rf conftest*
4484   ;;
4485
4486 *-*-sco3.2v5*)
4487   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4488   SAVE_CFLAGS="$CFLAGS"
4489   CFLAGS="$CFLAGS -belf"
4490   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4491 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4492 if test "${lt_cv_cc_needs_belf+set}" = set; then
4493   echo $ECHO_N "(cached) $ECHO_C" >&6
4494 else
4495   ac_ext=c
4496 ac_cpp='$CPP $CPPFLAGS'
4497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4500
4501      cat >conftest.$ac_ext <<_ACEOF
4502 /* confdefs.h.  */
4503 _ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h.  */
4507
4508 int
4509 main ()
4510 {
4511
4512   ;
4513   return 0;
4514 }
4515 _ACEOF
4516 rm -f conftest.$ac_objext conftest$ac_exeext
4517 if { (ac_try="$ac_link"
4518 case "(($ac_try" in
4519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4520   *) ac_try_echo=$ac_try;;
4521 esac
4522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4523   (eval "$ac_link") 2>conftest.er1
4524   ac_status=$?
4525   grep -v '^ *+' conftest.er1 >conftest.err
4526   rm -f conftest.er1
4527   cat conftest.err >&5
4528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529   (exit $ac_status); } && {
4530          test -z "$ac_c_werror_flag" ||
4531          test ! -s conftest.err
4532        } && test -s conftest$ac_exeext &&
4533        $as_test_x conftest$ac_exeext; then
4534   lt_cv_cc_needs_belf=yes
4535 else
4536   echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4538
4539         lt_cv_cc_needs_belf=no
4540 fi
4541
4542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4543       conftest$ac_exeext conftest.$ac_ext
4544      ac_ext=c
4545 ac_cpp='$CPP $CPPFLAGS'
4546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4549
4550 fi
4551 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4552 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4553   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4554     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4555     CFLAGS="$SAVE_CFLAGS"
4556   fi
4557   ;;
4558 sparc*-*solaris*)
4559   # Find out which ABI we are using.
4560   echo 'int i;' > conftest.$ac_ext
4561   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4562   (eval $ac_compile) 2>&5
4563   ac_status=$?
4564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565   (exit $ac_status); }; then
4566     case `/usr/bin/file conftest.o` in
4567     *64-bit*)
4568       case $lt_cv_prog_gnu_ld in
4569       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4570       *)    LD="${LD-ld} -64" ;;
4571       esac
4572       ;;
4573     esac
4574   fi
4575   rm -rf conftest*
4576   ;;
4577
4578 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4579   if test -n "$ac_tool_prefix"; then
4580   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4581 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4584 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4585   echo $ECHO_N "(cached) $ECHO_C" >&6
4586 else
4587   if test -n "$DLLTOOL"; then
4588   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4589 else
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4592 do
4593   IFS=$as_save_IFS
4594   test -z "$as_dir" && as_dir=.
4595   for ac_exec_ext in '' $ac_executable_extensions; do
4596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4597     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4599     break 2
4600   fi
4601 done
4602 done
4603 IFS=$as_save_IFS
4604
4605 fi
4606 fi
4607 DLLTOOL=$ac_cv_prog_DLLTOOL
4608 if test -n "$DLLTOOL"; then
4609   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4610 echo "${ECHO_T}$DLLTOOL" >&6; }
4611 else
4612   { echo "$as_me:$LINENO: result: no" >&5
4613 echo "${ECHO_T}no" >&6; }
4614 fi
4615
4616
4617 fi
4618 if test -z "$ac_cv_prog_DLLTOOL"; then
4619   ac_ct_DLLTOOL=$DLLTOOL
4620   # Extract the first word of "dlltool", so it can be a program name with args.
4621 set dummy dlltool; ac_word=$2
4622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4624 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4625   echo $ECHO_N "(cached) $ECHO_C" >&6
4626 else
4627   if test -n "$ac_ct_DLLTOOL"; then
4628   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4629 else
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH
4632 do
4633   IFS=$as_save_IFS
4634   test -z "$as_dir" && as_dir=.
4635   for ac_exec_ext in '' $ac_executable_extensions; do
4636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4639     break 2
4640   fi
4641 done
4642 done
4643 IFS=$as_save_IFS
4644
4645 fi
4646 fi
4647 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4648 if test -n "$ac_ct_DLLTOOL"; then
4649   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4650 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4651 else
4652   { echo "$as_me:$LINENO: result: no" >&5
4653 echo "${ECHO_T}no" >&6; }
4654 fi
4655
4656   if test "x$ac_ct_DLLTOOL" = x; then
4657     DLLTOOL="false"
4658   else
4659     case $cross_compiling:$ac_tool_warned in
4660 yes:)
4661 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4662 whose name does not start with the host triplet.  If you think this
4663 configuration is useful to you, please write to autoconf@gnu.org." >&5
4664 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4665 whose name does not start with the host triplet.  If you think this
4666 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4667 ac_tool_warned=yes ;;
4668 esac
4669     DLLTOOL=$ac_ct_DLLTOOL
4670   fi
4671 else
4672   DLLTOOL="$ac_cv_prog_DLLTOOL"
4673 fi
4674
4675   if test -n "$ac_tool_prefix"; then
4676   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4677 set dummy ${ac_tool_prefix}as; ac_word=$2
4678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4680 if test "${ac_cv_prog_AS+set}" = set; then
4681   echo $ECHO_N "(cached) $ECHO_C" >&6
4682 else
4683   if test -n "$AS"; then
4684   ac_cv_prog_AS="$AS" # Let the user override the test.
4685 else
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4688 do
4689   IFS=$as_save_IFS
4690   test -z "$as_dir" && as_dir=.
4691   for ac_exec_ext in '' $ac_executable_extensions; do
4692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693     ac_cv_prog_AS="${ac_tool_prefix}as"
4694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695     break 2
4696   fi
4697 done
4698 done
4699 IFS=$as_save_IFS
4700
4701 fi
4702 fi
4703 AS=$ac_cv_prog_AS
4704 if test -n "$AS"; then
4705   { echo "$as_me:$LINENO: result: $AS" >&5
4706 echo "${ECHO_T}$AS" >&6; }
4707 else
4708   { echo "$as_me:$LINENO: result: no" >&5
4709 echo "${ECHO_T}no" >&6; }
4710 fi
4711
4712
4713 fi
4714 if test -z "$ac_cv_prog_AS"; then
4715   ac_ct_AS=$AS
4716   # Extract the first word of "as", so it can be a program name with args.
4717 set dummy as; ac_word=$2
4718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4720 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4721   echo $ECHO_N "(cached) $ECHO_C" >&6
4722 else
4723   if test -n "$ac_ct_AS"; then
4724   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4728 do
4729   IFS=$as_save_IFS
4730   test -z "$as_dir" && as_dir=.
4731   for ac_exec_ext in '' $ac_executable_extensions; do
4732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4733     ac_cv_prog_ac_ct_AS="as"
4734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735     break 2
4736   fi
4737 done
4738 done
4739 IFS=$as_save_IFS
4740
4741 fi
4742 fi
4743 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4744 if test -n "$ac_ct_AS"; then
4745   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4746 echo "${ECHO_T}$ac_ct_AS" >&6; }
4747 else
4748   { echo "$as_me:$LINENO: result: no" >&5
4749 echo "${ECHO_T}no" >&6; }
4750 fi
4751
4752   if test "x$ac_ct_AS" = x; then
4753     AS="false"
4754   else
4755     case $cross_compiling:$ac_tool_warned in
4756 yes:)
4757 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4758 whose name does not start with the host triplet.  If you think this
4759 configuration is useful to you, please write to autoconf@gnu.org." >&5
4760 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4761 whose name does not start with the host triplet.  If you think this
4762 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4763 ac_tool_warned=yes ;;
4764 esac
4765     AS=$ac_ct_AS
4766   fi
4767 else
4768   AS="$ac_cv_prog_AS"
4769 fi
4770
4771   if test -n "$ac_tool_prefix"; then
4772   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4773 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4776 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4777   echo $ECHO_N "(cached) $ECHO_C" >&6
4778 else
4779   if test -n "$OBJDUMP"; then
4780   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4781 else
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH
4784 do
4785   IFS=$as_save_IFS
4786   test -z "$as_dir" && as_dir=.
4787   for ac_exec_ext in '' $ac_executable_extensions; do
4788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4789     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4790     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4791     break 2
4792   fi
4793 done
4794 done
4795 IFS=$as_save_IFS
4796
4797 fi
4798 fi
4799 OBJDUMP=$ac_cv_prog_OBJDUMP
4800 if test -n "$OBJDUMP"; then
4801   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4802 echo "${ECHO_T}$OBJDUMP" >&6; }
4803 else
4804   { echo "$as_me:$LINENO: result: no" >&5
4805 echo "${ECHO_T}no" >&6; }
4806 fi
4807
4808
4809 fi
4810 if test -z "$ac_cv_prog_OBJDUMP"; then
4811   ac_ct_OBJDUMP=$OBJDUMP
4812   # Extract the first word of "objdump", so it can be a program name with args.
4813 set dummy objdump; ac_word=$2
4814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4816 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4817   echo $ECHO_N "(cached) $ECHO_C" >&6
4818 else
4819   if test -n "$ac_ct_OBJDUMP"; then
4820   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4821 else
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 for as_dir in $PATH
4824 do
4825   IFS=$as_save_IFS
4826   test -z "$as_dir" && as_dir=.
4827   for ac_exec_ext in '' $ac_executable_extensions; do
4828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4829     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4831     break 2
4832   fi
4833 done
4834 done
4835 IFS=$as_save_IFS
4836
4837 fi
4838 fi
4839 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4840 if test -n "$ac_ct_OBJDUMP"; then
4841   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4842 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4843 else
4844   { echo "$as_me:$LINENO: result: no" >&5
4845 echo "${ECHO_T}no" >&6; }
4846 fi
4847
4848   if test "x$ac_ct_OBJDUMP" = x; then
4849     OBJDUMP="false"
4850   else
4851     case $cross_compiling:$ac_tool_warned in
4852 yes:)
4853 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4854 whose name does not start with the host triplet.  If you think this
4855 configuration is useful to you, please write to autoconf@gnu.org." >&5
4856 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4857 whose name does not start with the host triplet.  If you think this
4858 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4859 ac_tool_warned=yes ;;
4860 esac
4861     OBJDUMP=$ac_ct_OBJDUMP
4862   fi
4863 else
4864   OBJDUMP="$ac_cv_prog_OBJDUMP"
4865 fi
4866
4867   ;;
4868
4869 esac
4870
4871 need_locks="$enable_libtool_lock"
4872
4873
4874 ac_ext=c
4875 ac_cpp='$CPP $CPPFLAGS'
4876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4879 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4880 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4881 # On Suns, sometimes $CPP names a directory.
4882 if test -n "$CPP" && test -d "$CPP"; then
4883   CPP=
4884 fi
4885 if test -z "$CPP"; then
4886   if test "${ac_cv_prog_CPP+set}" = set; then
4887   echo $ECHO_N "(cached) $ECHO_C" >&6
4888 else
4889       # Double quotes because CPP needs to be expanded
4890     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4891     do
4892       ac_preproc_ok=false
4893 for ac_c_preproc_warn_flag in '' yes
4894 do
4895   # Use a header file that comes with gcc, so configuring glibc
4896   # with a fresh cross-compiler works.
4897   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4898   # <limits.h> exists even on freestanding compilers.
4899   # On the NeXT, cc -E runs the code through the compiler's parser,
4900   # not just through cpp. "Syntax error" is here to catch this case.
4901   cat >conftest.$ac_ext <<_ACEOF
4902 /* confdefs.h.  */
4903 _ACEOF
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h.  */
4907 #ifdef __STDC__
4908 # include <limits.h>
4909 #else
4910 # include <assert.h>
4911 #endif
4912                      Syntax error
4913 _ACEOF
4914 if { (ac_try="$ac_cpp conftest.$ac_ext"
4915 case "(($ac_try" in
4916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917   *) ac_try_echo=$ac_try;;
4918 esac
4919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4920   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4921   ac_status=$?
4922   grep -v '^ *+' conftest.er1 >conftest.err
4923   rm -f conftest.er1
4924   cat conftest.err >&5
4925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926   (exit $ac_status); } >/dev/null && {
4927          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4928          test ! -s conftest.err
4929        }; then
4930   :
4931 else
4932   echo "$as_me: failed program was:" >&5
4933 sed 's/^/| /' conftest.$ac_ext >&5
4934
4935   # Broken: fails on valid input.
4936 continue
4937 fi
4938
4939 rm -f conftest.err conftest.$ac_ext
4940
4941   # OK, works on sane cases.  Now check whether nonexistent headers
4942   # can be detected and how.
4943   cat >conftest.$ac_ext <<_ACEOF
4944 /* confdefs.h.  */
4945 _ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h.  */
4949 #include <ac_nonexistent.h>
4950 _ACEOF
4951 if { (ac_try="$ac_cpp conftest.$ac_ext"
4952 case "(($ac_try" in
4953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4954   *) ac_try_echo=$ac_try;;
4955 esac
4956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4957   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4958   ac_status=$?
4959   grep -v '^ *+' conftest.er1 >conftest.err
4960   rm -f conftest.er1
4961   cat conftest.err >&5
4962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963   (exit $ac_status); } >/dev/null && {
4964          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4965          test ! -s conftest.err
4966        }; then
4967   # Broken: success on invalid input.
4968 continue
4969 else
4970   echo "$as_me: failed program was:" >&5
4971 sed 's/^/| /' conftest.$ac_ext >&5
4972
4973   # Passes both tests.
4974 ac_preproc_ok=:
4975 break
4976 fi
4977
4978 rm -f conftest.err conftest.$ac_ext
4979
4980 done
4981 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4982 rm -f conftest.err conftest.$ac_ext
4983 if $ac_preproc_ok; then
4984   break
4985 fi
4986
4987     done
4988     ac_cv_prog_CPP=$CPP
4989
4990 fi
4991   CPP=$ac_cv_prog_CPP
4992 else
4993   ac_cv_prog_CPP=$CPP
4994 fi
4995 { echo "$as_me:$LINENO: result: $CPP" >&5
4996 echo "${ECHO_T}$CPP" >&6; }
4997 ac_preproc_ok=false
4998 for ac_c_preproc_warn_flag in '' yes
4999 do
5000   # Use a header file that comes with gcc, so configuring glibc
5001   # with a fresh cross-compiler works.
5002   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5003   # <limits.h> exists even on freestanding compilers.
5004   # On the NeXT, cc -E runs the code through the compiler's parser,
5005   # not just through cpp. "Syntax error" is here to catch this case.
5006   cat >conftest.$ac_ext <<_ACEOF
5007 /* confdefs.h.  */
5008 _ACEOF
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h.  */
5012 #ifdef __STDC__
5013 # include <limits.h>
5014 #else
5015 # include <assert.h>
5016 #endif
5017                      Syntax error
5018 _ACEOF
5019 if { (ac_try="$ac_cpp conftest.$ac_ext"
5020 case "(($ac_try" in
5021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5022   *) ac_try_echo=$ac_try;;
5023 esac
5024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5025   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5026   ac_status=$?
5027   grep -v '^ *+' conftest.er1 >conftest.err
5028   rm -f conftest.er1
5029   cat conftest.err >&5
5030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031   (exit $ac_status); } >/dev/null && {
5032          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5033          test ! -s conftest.err
5034        }; then
5035   :
5036 else
5037   echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5039
5040   # Broken: fails on valid input.
5041 continue
5042 fi
5043
5044 rm -f conftest.err conftest.$ac_ext
5045
5046   # OK, works on sane cases.  Now check whether nonexistent headers
5047   # can be detected and how.
5048   cat >conftest.$ac_ext <<_ACEOF
5049 /* confdefs.h.  */
5050 _ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h.  */
5054 #include <ac_nonexistent.h>
5055 _ACEOF
5056 if { (ac_try="$ac_cpp conftest.$ac_ext"
5057 case "(($ac_try" in
5058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5059   *) ac_try_echo=$ac_try;;
5060 esac
5061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5062   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5063   ac_status=$?
5064   grep -v '^ *+' conftest.er1 >conftest.err
5065   rm -f conftest.er1
5066   cat conftest.err >&5
5067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068   (exit $ac_status); } >/dev/null && {
5069          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5070          test ! -s conftest.err
5071        }; then
5072   # Broken: success on invalid input.
5073 continue
5074 else
5075   echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5077
5078   # Passes both tests.
5079 ac_preproc_ok=:
5080 break
5081 fi
5082
5083 rm -f conftest.err conftest.$ac_ext
5084
5085 done
5086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5087 rm -f conftest.err conftest.$ac_ext
5088 if $ac_preproc_ok; then
5089   :
5090 else
5091   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5092 See \`config.log' for more details." >&5
5093 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5094 See \`config.log' for more details." >&2;}
5095    { (exit 1); exit 1; }; }
5096 fi
5097
5098 ac_ext=c
5099 ac_cpp='$CPP $CPPFLAGS'
5100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5103
5104
5105 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5106 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5107 if test "${ac_cv_header_stdc+set}" = set; then
5108   echo $ECHO_N "(cached) $ECHO_C" >&6
5109 else
5110   cat >conftest.$ac_ext <<_ACEOF
5111 /* confdefs.h.  */
5112 _ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h.  */
5116 #include <stdlib.h>
5117 #include <stdarg.h>
5118 #include <string.h>
5119 #include <float.h>
5120
5121 int
5122 main ()
5123 {
5124
5125   ;
5126   return 0;
5127 }
5128 _ACEOF
5129 rm -f conftest.$ac_objext
5130 if { (ac_try="$ac_compile"
5131 case "(($ac_try" in
5132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5133   *) ac_try_echo=$ac_try;;
5134 esac
5135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5136   (eval "$ac_compile") 2>conftest.er1
5137   ac_status=$?
5138   grep -v '^ *+' conftest.er1 >conftest.err
5139   rm -f conftest.er1
5140   cat conftest.err >&5
5141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142   (exit $ac_status); } && {
5143          test -z "$ac_c_werror_flag" ||
5144          test ! -s conftest.err
5145        } && test -s conftest.$ac_objext; then
5146   ac_cv_header_stdc=yes
5147 else
5148   echo "$as_me: failed program was:" >&5
5149 sed 's/^/| /' conftest.$ac_ext >&5
5150
5151         ac_cv_header_stdc=no
5152 fi
5153
5154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5155
5156 if test $ac_cv_header_stdc = yes; then
5157   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5158   cat >conftest.$ac_ext <<_ACEOF
5159 /* confdefs.h.  */
5160 _ACEOF
5161 cat confdefs.h >>conftest.$ac_ext
5162 cat >>conftest.$ac_ext <<_ACEOF
5163 /* end confdefs.h.  */
5164 #include <string.h>
5165
5166 _ACEOF
5167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5168   $EGREP "memchr" >/dev/null 2>&1; then
5169   :
5170 else
5171   ac_cv_header_stdc=no
5172 fi
5173 rm -f conftest*
5174
5175 fi
5176
5177 if test $ac_cv_header_stdc = yes; then
5178   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5179   cat >conftest.$ac_ext <<_ACEOF
5180 /* confdefs.h.  */
5181 _ACEOF
5182 cat confdefs.h >>conftest.$ac_ext
5183 cat >>conftest.$ac_ext <<_ACEOF
5184 /* end confdefs.h.  */
5185 #include <stdlib.h>
5186
5187 _ACEOF
5188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5189   $EGREP "free" >/dev/null 2>&1; then
5190   :
5191 else
5192   ac_cv_header_stdc=no
5193 fi
5194 rm -f conftest*
5195
5196 fi
5197
5198 if test $ac_cv_header_stdc = yes; then
5199   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5200   if test "$cross_compiling" = yes; then
5201   :
5202 else
5203   cat >conftest.$ac_ext <<_ACEOF
5204 /* confdefs.h.  */
5205 _ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h.  */
5209 #include <ctype.h>
5210 #include <stdlib.h>
5211 #if ((' ' & 0x0FF) == 0x020)
5212 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5213 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5214 #else
5215 # define ISLOWER(c) \
5216                    (('a' <= (c) && (c) <= 'i') \
5217                      || ('j' <= (c) && (c) <= 'r') \
5218                      || ('s' <= (c) && (c) <= 'z'))
5219 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5220 #endif
5221
5222 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5223 int
5224 main ()
5225 {
5226   int i;
5227   for (i = 0; i < 256; i++)
5228     if (XOR (islower (i), ISLOWER (i))
5229         || toupper (i) != TOUPPER (i))
5230       return 2;
5231   return 0;
5232 }
5233 _ACEOF
5234 rm -f conftest$ac_exeext
5235 if { (ac_try="$ac_link"
5236 case "(($ac_try" in
5237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5238   *) ac_try_echo=$ac_try;;
5239 esac
5240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5241   (eval "$ac_link") 2>&5
5242   ac_status=$?
5243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5245   { (case "(($ac_try" in
5246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247   *) ac_try_echo=$ac_try;;
5248 esac
5249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5250   (eval "$ac_try") 2>&5
5251   ac_status=$?
5252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253   (exit $ac_status); }; }; then
5254   :
5255 else
5256   echo "$as_me: program exited with status $ac_status" >&5
5257 echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.$ac_ext >&5
5259
5260 ( exit $ac_status )
5261 ac_cv_header_stdc=no
5262 fi
5263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5264 fi
5265
5266
5267 fi
5268 fi
5269 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5270 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5271 if test $ac_cv_header_stdc = yes; then
5272
5273 cat >>confdefs.h <<\_ACEOF
5274 #define STDC_HEADERS 1
5275 _ACEOF
5276
5277 fi
5278
5279 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5290                   inttypes.h stdint.h unistd.h
5291 do
5292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5296   echo $ECHO_N "(cached) $ECHO_C" >&6
5297 else
5298   cat >conftest.$ac_ext <<_ACEOF
5299 /* confdefs.h.  */
5300 _ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h.  */
5304 $ac_includes_default
5305
5306 #include <$ac_header>
5307 _ACEOF
5308 rm -f conftest.$ac_objext
5309 if { (ac_try="$ac_compile"
5310 case "(($ac_try" in
5311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312   *) ac_try_echo=$ac_try;;
5313 esac
5314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5315   (eval "$ac_compile") 2>conftest.er1
5316   ac_status=$?
5317   grep -v '^ *+' conftest.er1 >conftest.err
5318   rm -f conftest.er1
5319   cat conftest.err >&5
5320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321   (exit $ac_status); } && {
5322          test -z "$ac_c_werror_flag" ||
5323          test ! -s conftest.err
5324        } && test -s conftest.$ac_objext; then
5325   eval "$as_ac_Header=yes"
5326 else
5327   echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5329
5330         eval "$as_ac_Header=no"
5331 fi
5332
5333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5334 fi
5335 ac_res=`eval echo '${'$as_ac_Header'}'`
5336                { echo "$as_me:$LINENO: result: $ac_res" >&5
5337 echo "${ECHO_T}$ac_res" >&6; }
5338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5339   cat >>confdefs.h <<_ACEOF
5340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5341 _ACEOF
5342
5343 fi
5344
5345 done
5346
5347
5348
5349 for ac_header in dlfcn.h
5350 do
5351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5353   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5356   echo $ECHO_N "(cached) $ECHO_C" >&6
5357 fi
5358 ac_res=`eval echo '${'$as_ac_Header'}'`
5359                { echo "$as_me:$LINENO: result: $ac_res" >&5
5360 echo "${ECHO_T}$ac_res" >&6; }
5361 else
5362   # Is the header compilable?
5363 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5365 cat >conftest.$ac_ext <<_ACEOF
5366 /* confdefs.h.  */
5367 _ACEOF
5368 cat confdefs.h >>conftest.$ac_ext
5369 cat >>conftest.$ac_ext <<_ACEOF
5370 /* end confdefs.h.  */
5371 $ac_includes_default
5372 #include <$ac_header>
5373 _ACEOF
5374 rm -f conftest.$ac_objext
5375 if { (ac_try="$ac_compile"
5376 case "(($ac_try" in
5377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5378   *) ac_try_echo=$ac_try;;
5379 esac
5380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5381   (eval "$ac_compile") 2>conftest.er1
5382   ac_status=$?
5383   grep -v '^ *+' conftest.er1 >conftest.err
5384   rm -f conftest.er1
5385   cat conftest.err >&5
5386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387   (exit $ac_status); } && {
5388          test -z "$ac_c_werror_flag" ||
5389          test ! -s conftest.err
5390        } && test -s conftest.$ac_objext; then
5391   ac_header_compiler=yes
5392 else
5393   echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.$ac_ext >&5
5395
5396         ac_header_compiler=no
5397 fi
5398
5399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5401 echo "${ECHO_T}$ac_header_compiler" >&6; }
5402
5403 # Is the header present?
5404 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5406 cat >conftest.$ac_ext <<_ACEOF
5407 /* confdefs.h.  */
5408 _ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h.  */
5412 #include <$ac_header>
5413 _ACEOF
5414 if { (ac_try="$ac_cpp conftest.$ac_ext"
5415 case "(($ac_try" in
5416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5417   *) ac_try_echo=$ac_try;;
5418 esac
5419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5420   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5421   ac_status=$?
5422   grep -v '^ *+' conftest.er1 >conftest.err
5423   rm -f conftest.er1
5424   cat conftest.err >&5
5425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426   (exit $ac_status); } >/dev/null && {
5427          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5428          test ! -s conftest.err
5429        }; then
5430   ac_header_preproc=yes
5431 else
5432   echo "$as_me: failed program was:" >&5
5433 sed 's/^/| /' conftest.$ac_ext >&5
5434
5435   ac_header_preproc=no
5436 fi
5437
5438 rm -f conftest.err conftest.$ac_ext
5439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5440 echo "${ECHO_T}$ac_header_preproc" >&6; }
5441
5442 # So?  What about this header?
5443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5444   yes:no: )
5445     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5447     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5449     ac_header_preproc=yes
5450     ;;
5451   no:yes:* )
5452     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5454     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5455 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5456     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5458     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5459 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5460     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5462     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5464     ( cat <<\_ASBOX
5465 ## -------------------------------------------------- ##
5466 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
5467 ## -------------------------------------------------- ##
5468 _ASBOX
5469      ) | sed "s/^/$as_me: WARNING:     /" >&2
5470     ;;
5471 esac
5472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5475   echo $ECHO_N "(cached) $ECHO_C" >&6
5476 else
5477   eval "$as_ac_Header=\$ac_header_preproc"
5478 fi
5479 ac_res=`eval echo '${'$as_ac_Header'}'`
5480                { echo "$as_me:$LINENO: result: $ac_res" >&5
5481 echo "${ECHO_T}$ac_res" >&6; }
5482
5483 fi
5484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5485   cat >>confdefs.h <<_ACEOF
5486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5487 _ACEOF
5488
5489 fi
5490
5491 done
5492
5493 ac_ext=cpp
5494 ac_cpp='$CXXCPP $CPPFLAGS'
5495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5498 if test -z "$CXX"; then
5499   if test -n "$CCC"; then
5500     CXX=$CCC
5501   else
5502     if test -n "$ac_tool_prefix"; then
5503   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5504   do
5505     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5506 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5509 if test "${ac_cv_prog_CXX+set}" = set; then
5510   echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512   if test -n "$CXX"; then
5513   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5514 else
5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 for as_dir in $PATH
5517 do
5518   IFS=$as_save_IFS
5519   test -z "$as_dir" && as_dir=.
5520   for ac_exec_ext in '' $ac_executable_extensions; do
5521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5522     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5524     break 2
5525   fi
5526 done
5527 done
5528 IFS=$as_save_IFS
5529
5530 fi
5531 fi
5532 CXX=$ac_cv_prog_CXX
5533 if test -n "$CXX"; then
5534   { echo "$as_me:$LINENO: result: $CXX" >&5
5535 echo "${ECHO_T}$CXX" >&6; }
5536 else
5537   { echo "$as_me:$LINENO: result: no" >&5
5538 echo "${ECHO_T}no" >&6; }
5539 fi
5540
5541
5542     test -n "$CXX" && break
5543   done
5544 fi
5545 if test -z "$CXX"; then
5546   ac_ct_CXX=$CXX
5547   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5548 do
5549   # Extract the first word of "$ac_prog", so it can be a program name with args.
5550 set dummy $ac_prog; ac_word=$2
5551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5553 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5554   echo $ECHO_N "(cached) $ECHO_C" >&6
5555 else
5556   if test -n "$ac_ct_CXX"; then
5557   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5558 else
5559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 for as_dir in $PATH
5561 do
5562   IFS=$as_save_IFS
5563   test -z "$as_dir" && as_dir=.
5564   for ac_exec_ext in '' $ac_executable_extensions; do
5565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5566     ac_cv_prog_ac_ct_CXX="$ac_prog"
5567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5568     break 2
5569   fi
5570 done
5571 done
5572 IFS=$as_save_IFS
5573
5574 fi
5575 fi
5576 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5577 if test -n "$ac_ct_CXX"; then
5578   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5579 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5580 else
5581   { echo "$as_me:$LINENO: result: no" >&5
5582 echo "${ECHO_T}no" >&6; }
5583 fi
5584
5585
5586   test -n "$ac_ct_CXX" && break
5587 done
5588
5589   if test "x$ac_ct_CXX" = x; then
5590     CXX="g++"
5591   else
5592     case $cross_compiling:$ac_tool_warned in
5593 yes:)
5594 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5595 whose name does not start with the host triplet.  If you think this
5596 configuration is useful to you, please write to autoconf@gnu.org." >&5
5597 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5598 whose name does not start with the host triplet.  If you think this
5599 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5600 ac_tool_warned=yes ;;
5601 esac
5602     CXX=$ac_ct_CXX
5603   fi
5604 fi
5605
5606   fi
5607 fi
5608 # Provide some information about the compiler.
5609 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5610 ac_compiler=`set X $ac_compile; echo $2`
5611 { (ac_try="$ac_compiler --version >&5"
5612 case "(($ac_try" in
5613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614   *) ac_try_echo=$ac_try;;
5615 esac
5616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5617   (eval "$ac_compiler --version >&5") 2>&5
5618   ac_status=$?
5619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620   (exit $ac_status); }
5621 { (ac_try="$ac_compiler -v >&5"
5622 case "(($ac_try" in
5623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624   *) ac_try_echo=$ac_try;;
5625 esac
5626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627   (eval "$ac_compiler -v >&5") 2>&5
5628   ac_status=$?
5629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630   (exit $ac_status); }
5631 { (ac_try="$ac_compiler -V >&5"
5632 case "(($ac_try" in
5633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634   *) ac_try_echo=$ac_try;;
5635 esac
5636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5637   (eval "$ac_compiler -V >&5") 2>&5
5638   ac_status=$?
5639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640   (exit $ac_status); }
5641
5642 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5643 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5644 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5645   echo $ECHO_N "(cached) $ECHO_C" >&6
5646 else
5647   cat >conftest.$ac_ext <<_ACEOF
5648 /* confdefs.h.  */
5649 _ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h.  */
5653
5654 int
5655 main ()
5656 {
5657 #ifndef __GNUC__
5658        choke me
5659 #endif
5660
5661   ;
5662   return 0;
5663 }
5664 _ACEOF
5665 rm -f conftest.$ac_objext
5666 if { (ac_try="$ac_compile"
5667 case "(($ac_try" in
5668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669   *) ac_try_echo=$ac_try;;
5670 esac
5671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672   (eval "$ac_compile") 2>conftest.er1
5673   ac_status=$?
5674   grep -v '^ *+' conftest.er1 >conftest.err
5675   rm -f conftest.er1
5676   cat conftest.err >&5
5677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678   (exit $ac_status); } && {
5679          test -z "$ac_cxx_werror_flag" ||
5680          test ! -s conftest.err
5681        } && test -s conftest.$ac_objext; then
5682   ac_compiler_gnu=yes
5683 else
5684   echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5686
5687         ac_compiler_gnu=no
5688 fi
5689
5690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5692
5693 fi
5694 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5695 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5696 GXX=`test $ac_compiler_gnu = yes && echo yes`
5697 ac_test_CXXFLAGS=${CXXFLAGS+set}
5698 ac_save_CXXFLAGS=$CXXFLAGS
5699 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5700 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5701 if test "${ac_cv_prog_cxx_g+set}" = set; then
5702   echo $ECHO_N "(cached) $ECHO_C" >&6
5703 else
5704   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5705    ac_cxx_werror_flag=yes
5706    ac_cv_prog_cxx_g=no
5707    CXXFLAGS="-g"
5708    cat >conftest.$ac_ext <<_ACEOF
5709 /* confdefs.h.  */
5710 _ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h.  */
5714
5715 int
5716 main ()
5717 {
5718
5719   ;
5720   return 0;
5721 }
5722 _ACEOF
5723 rm -f conftest.$ac_objext
5724 if { (ac_try="$ac_compile"
5725 case "(($ac_try" in
5726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727   *) ac_try_echo=$ac_try;;
5728 esac
5729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730   (eval "$ac_compile") 2>conftest.er1
5731   ac_status=$?
5732   grep -v '^ *+' conftest.er1 >conftest.err
5733   rm -f conftest.er1
5734   cat conftest.err >&5
5735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736   (exit $ac_status); } && {
5737          test -z "$ac_cxx_werror_flag" ||
5738          test ! -s conftest.err
5739        } && test -s conftest.$ac_objext; then
5740   ac_cv_prog_cxx_g=yes
5741 else
5742   echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5744
5745         CXXFLAGS=""
5746       cat >conftest.$ac_ext <<_ACEOF
5747 /* confdefs.h.  */
5748 _ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h.  */
5752
5753 int
5754 main ()
5755 {
5756
5757   ;
5758   return 0;
5759 }
5760 _ACEOF
5761 rm -f conftest.$ac_objext
5762 if { (ac_try="$ac_compile"
5763 case "(($ac_try" in
5764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765   *) ac_try_echo=$ac_try;;
5766 esac
5767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768   (eval "$ac_compile") 2>conftest.er1
5769   ac_status=$?
5770   grep -v '^ *+' conftest.er1 >conftest.err
5771   rm -f conftest.er1
5772   cat conftest.err >&5
5773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774   (exit $ac_status); } && {
5775          test -z "$ac_cxx_werror_flag" ||
5776          test ! -s conftest.err
5777        } && test -s conftest.$ac_objext; then
5778   :
5779 else
5780   echo "$as_me: failed program was:" >&5
5781 sed 's/^/| /' conftest.$ac_ext >&5
5782
5783         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5784          CXXFLAGS="-g"
5785          cat >conftest.$ac_ext <<_ACEOF
5786 /* confdefs.h.  */
5787 _ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h.  */
5791
5792 int
5793 main ()
5794 {
5795
5796   ;
5797   return 0;
5798 }
5799 _ACEOF
5800 rm -f conftest.$ac_objext
5801 if { (ac_try="$ac_compile"
5802 case "(($ac_try" in
5803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804   *) ac_try_echo=$ac_try;;
5805 esac
5806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5807   (eval "$ac_compile") 2>conftest.er1
5808   ac_status=$?
5809   grep -v '^ *+' conftest.er1 >conftest.err
5810   rm -f conftest.er1
5811   cat conftest.err >&5
5812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813   (exit $ac_status); } && {
5814          test -z "$ac_cxx_werror_flag" ||
5815          test ! -s conftest.err
5816        } && test -s conftest.$ac_objext; then
5817   ac_cv_prog_cxx_g=yes
5818 else
5819   echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.$ac_ext >&5
5821
5822
5823 fi
5824
5825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5826 fi
5827
5828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5829 fi
5830
5831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5833 fi
5834 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5835 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5836 if test "$ac_test_CXXFLAGS" = set; then
5837   CXXFLAGS=$ac_save_CXXFLAGS
5838 elif test $ac_cv_prog_cxx_g = yes; then
5839   if test "$GXX" = yes; then
5840     CXXFLAGS="-g -O2"
5841   else
5842     CXXFLAGS="-g"
5843   fi
5844 else
5845   if test "$GXX" = yes; then
5846     CXXFLAGS="-O2"
5847   else
5848     CXXFLAGS=
5849   fi
5850 fi
5851 ac_ext=cpp
5852 ac_cpp='$CXXCPP $CPPFLAGS'
5853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5856
5857 depcc="$CXX"  am_compiler_list=
5858
5859 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5860 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5861 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5862   echo $ECHO_N "(cached) $ECHO_C" >&6
5863 else
5864   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5865   # We make a subdir and do the tests there.  Otherwise we can end up
5866   # making bogus files that we don't know about and never remove.  For
5867   # instance it was reported that on HP-UX the gcc test will end up
5868   # making a dummy file named `D' -- because `-MD' means `put the output
5869   # in D'.
5870   mkdir conftest.dir
5871   # Copy depcomp to subdir because otherwise we won't find it if we're
5872   # using a relative directory.
5873   cp "$am_depcomp" conftest.dir
5874   cd conftest.dir
5875   # We will build objects and dependencies in a subdirectory because
5876   # it helps to detect inapplicable dependency modes.  For instance
5877   # both Tru64's cc and ICC support -MD to output dependencies as a
5878   # side effect of compilation, but ICC will put the dependencies in
5879   # the current directory while Tru64 will put them in the object
5880   # directory.
5881   mkdir sub
5882
5883   am_cv_CXX_dependencies_compiler_type=none
5884   if test "$am_compiler_list" = ""; then
5885      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5886   fi
5887   for depmode in $am_compiler_list; do
5888     # Setup a source with many dependencies, because some compilers
5889     # like to wrap large dependency lists on column 80 (with \), and
5890     # we should not choose a depcomp mode which is confused by this.
5891     #
5892     # We need to recreate these files for each test, as the compiler may
5893     # overwrite some of them when testing with obscure command lines.
5894     # This happens at least with the AIX C compiler.
5895     : > sub/conftest.c
5896     for i in 1 2 3 4 5 6; do
5897       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5898       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5899       # Solaris 8's {/usr,}/bin/sh.
5900       touch sub/conftst$i.h
5901     done
5902     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5903
5904     case $depmode in
5905     nosideeffect)
5906       # after this tag, mechanisms are not by side-effect, so they'll
5907       # only be used when explicitly requested
5908       if test "x$enable_dependency_tracking" = xyes; then
5909         continue
5910       else
5911         break
5912       fi
5913       ;;
5914     none) break ;;
5915     esac
5916     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5917     # mode.  It turns out that the SunPro C++ compiler does not properly
5918     # handle `-M -o', and we need to detect this.
5919     if depmode=$depmode \
5920        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5921        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5922        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5923          >/dev/null 2>conftest.err &&
5924        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5925        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5926        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5927       # icc doesn't choke on unknown options, it will just issue warnings
5928       # or remarks (even with -Werror).  So we grep stderr for any message
5929       # that says an option was ignored or not supported.
5930       # When given -MP, icc 7.0 and 7.1 complain thusly:
5931       #   icc: Command line warning: ignoring option '-M'; no argument required
5932       # The diagnosis changed in icc 8.0:
5933       #   icc: Command line remark: option '-MP' not supported
5934       if (grep 'ignoring option' conftest.err ||
5935           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5936         am_cv_CXX_dependencies_compiler_type=$depmode
5937         break
5938       fi
5939     fi
5940   done
5941
5942   cd ..
5943   rm -rf conftest.dir
5944 else
5945   am_cv_CXX_dependencies_compiler_type=none
5946 fi
5947
5948 fi
5949 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5950 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5951 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5952
5953
5954
5955 if
5956   test "x$enable_dependency_tracking" != xno \
5957   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5958   am__fastdepCXX_TRUE=
5959   am__fastdepCXX_FALSE='#'
5960 else
5961   am__fastdepCXX_TRUE='#'
5962   am__fastdepCXX_FALSE=
5963 fi
5964
5965
5966
5967
5968 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5969     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5970     (test "X$CXX" != "Xg++"))) ; then
5971   ac_ext=cpp
5972 ac_cpp='$CXXCPP $CPPFLAGS'
5973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5976 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5977 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5978 if test -z "$CXXCPP"; then
5979   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5980   echo $ECHO_N "(cached) $ECHO_C" >&6
5981 else
5982       # Double quotes because CXXCPP needs to be expanded
5983     for CXXCPP in "$CXX -E" "/lib/cpp"
5984     do
5985       ac_preproc_ok=false
5986 for ac_cxx_preproc_warn_flag in '' yes
5987 do
5988   # Use a header file that comes with gcc, so configuring glibc
5989   # with a fresh cross-compiler works.
5990   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5991   # <limits.h> exists even on freestanding compilers.
5992   # On the NeXT, cc -E runs the code through the compiler's parser,
5993   # not just through cpp. "Syntax error" is here to catch this case.
5994   cat >conftest.$ac_ext <<_ACEOF
5995 /* confdefs.h.  */
5996 _ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h.  */
6000 #ifdef __STDC__
6001 # include <limits.h>
6002 #else
6003 # include <assert.h>
6004 #endif
6005                      Syntax error
6006 _ACEOF
6007 if { (ac_try="$ac_cpp conftest.$ac_ext"
6008 case "(($ac_try" in
6009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010   *) ac_try_echo=$ac_try;;
6011 esac
6012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6014   ac_status=$?
6015   grep -v '^ *+' conftest.er1 >conftest.err
6016   rm -f conftest.er1
6017   cat conftest.err >&5
6018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019   (exit $ac_status); } >/dev/null && {
6020          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6021          test ! -s conftest.err
6022        }; then
6023   :
6024 else
6025   echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6027
6028   # Broken: fails on valid input.
6029 continue
6030 fi
6031
6032 rm -f conftest.err conftest.$ac_ext
6033
6034   # OK, works on sane cases.  Now check whether nonexistent headers
6035   # can be detected and how.
6036   cat >conftest.$ac_ext <<_ACEOF
6037 /* confdefs.h.  */
6038 _ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h.  */
6042 #include <ac_nonexistent.h>
6043 _ACEOF
6044 if { (ac_try="$ac_cpp conftest.$ac_ext"
6045 case "(($ac_try" in
6046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047   *) ac_try_echo=$ac_try;;
6048 esac
6049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6051   ac_status=$?
6052   grep -v '^ *+' conftest.er1 >conftest.err
6053   rm -f conftest.er1
6054   cat conftest.err >&5
6055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056   (exit $ac_status); } >/dev/null && {
6057          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6058          test ! -s conftest.err
6059        }; then
6060   # Broken: success on invalid input.
6061 continue
6062 else
6063   echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6065
6066   # Passes both tests.
6067 ac_preproc_ok=:
6068 break
6069 fi
6070
6071 rm -f conftest.err conftest.$ac_ext
6072
6073 done
6074 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6075 rm -f conftest.err conftest.$ac_ext
6076 if $ac_preproc_ok; then
6077   break
6078 fi
6079
6080     done
6081     ac_cv_prog_CXXCPP=$CXXCPP
6082
6083 fi
6084   CXXCPP=$ac_cv_prog_CXXCPP
6085 else
6086   ac_cv_prog_CXXCPP=$CXXCPP
6087 fi
6088 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6089 echo "${ECHO_T}$CXXCPP" >&6; }
6090 ac_preproc_ok=false
6091 for ac_cxx_preproc_warn_flag in '' yes
6092 do
6093   # Use a header file that comes with gcc, so configuring glibc
6094   # with a fresh cross-compiler works.
6095   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6096   # <limits.h> exists even on freestanding compilers.
6097   # On the NeXT, cc -E runs the code through the compiler's parser,
6098   # not just through cpp. "Syntax error" is here to catch this case.
6099   cat >conftest.$ac_ext <<_ACEOF
6100 /* confdefs.h.  */
6101 _ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h.  */
6105 #ifdef __STDC__
6106 # include <limits.h>
6107 #else
6108 # include <assert.h>
6109 #endif
6110                      Syntax error
6111 _ACEOF
6112 if { (ac_try="$ac_cpp conftest.$ac_ext"
6113 case "(($ac_try" in
6114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6115   *) ac_try_echo=$ac_try;;
6116 esac
6117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6118   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6119   ac_status=$?
6120   grep -v '^ *+' conftest.er1 >conftest.err
6121   rm -f conftest.er1
6122   cat conftest.err >&5
6123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124   (exit $ac_status); } >/dev/null && {
6125          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6126          test ! -s conftest.err
6127        }; then
6128   :
6129 else
6130   echo "$as_me: failed program was:" >&5
6131 sed 's/^/| /' conftest.$ac_ext >&5
6132
6133   # Broken: fails on valid input.
6134 continue
6135 fi
6136
6137 rm -f conftest.err conftest.$ac_ext
6138
6139   # OK, works on sane cases.  Now check whether nonexistent headers
6140   # can be detected and how.
6141   cat >conftest.$ac_ext <<_ACEOF
6142 /* confdefs.h.  */
6143 _ACEOF
6144 cat confdefs.h >>conftest.$ac_ext
6145 cat >>conftest.$ac_ext <<_ACEOF
6146 /* end confdefs.h.  */
6147 #include <ac_nonexistent.h>
6148 _ACEOF
6149 if { (ac_try="$ac_cpp conftest.$ac_ext"
6150 case "(($ac_try" in
6151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6152   *) ac_try_echo=$ac_try;;
6153 esac
6154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6155   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6156   ac_status=$?
6157   grep -v '^ *+' conftest.er1 >conftest.err
6158   rm -f conftest.er1
6159   cat conftest.err >&5
6160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161   (exit $ac_status); } >/dev/null && {
6162          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6163          test ! -s conftest.err
6164        }; then
6165   # Broken: success on invalid input.
6166 continue
6167 else
6168   echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6170
6171   # Passes both tests.
6172 ac_preproc_ok=:
6173 break
6174 fi
6175
6176 rm -f conftest.err conftest.$ac_ext
6177
6178 done
6179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6180 rm -f conftest.err conftest.$ac_ext
6181 if $ac_preproc_ok; then
6182   :
6183 else
6184   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6185 See \`config.log' for more details." >&5
6186 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6187 See \`config.log' for more details." >&2;}
6188    { (exit 1); exit 1; }; }
6189 fi
6190
6191 ac_ext=cpp
6192 ac_cpp='$CXXCPP $CPPFLAGS'
6193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6196
6197 fi
6198
6199
6200 ac_ext=f
6201 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6202 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6203 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6204 if test -n "$ac_tool_prefix"; then
6205   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6206   do
6207     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6211 if test "${ac_cv_prog_F77+set}" = set; then
6212   echo $ECHO_N "(cached) $ECHO_C" >&6
6213 else
6214   if test -n "$F77"; then
6215   ac_cv_prog_F77="$F77" # Let the user override the test.
6216 else
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 for as_dir in $PATH
6219 do
6220   IFS=$as_save_IFS
6221   test -z "$as_dir" && as_dir=.
6222   for ac_exec_ext in '' $ac_executable_extensions; do
6223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6224     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6226     break 2
6227   fi
6228 done
6229 done
6230 IFS=$as_save_IFS
6231
6232 fi
6233 fi
6234 F77=$ac_cv_prog_F77
6235 if test -n "$F77"; then
6236   { echo "$as_me:$LINENO: result: $F77" >&5
6237 echo "${ECHO_T}$F77" >&6; }
6238 else
6239   { echo "$as_me:$LINENO: result: no" >&5
6240 echo "${ECHO_T}no" >&6; }
6241 fi
6242
6243
6244     test -n "$F77" && break
6245   done
6246 fi
6247 if test -z "$F77"; then
6248   ac_ct_F77=$F77
6249   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6250 do
6251   # Extract the first word of "$ac_prog", so it can be a program name with args.
6252 set dummy $ac_prog; ac_word=$2
6253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6255 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6256   echo $ECHO_N "(cached) $ECHO_C" >&6
6257 else
6258   if test -n "$ac_ct_F77"; then
6259   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6260 else
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 for as_dir in $PATH
6263 do
6264   IFS=$as_save_IFS
6265   test -z "$as_dir" && as_dir=.
6266   for ac_exec_ext in '' $ac_executable_extensions; do
6267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6268     ac_cv_prog_ac_ct_F77="$ac_prog"
6269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6270     break 2
6271   fi
6272 done
6273 done
6274 IFS=$as_save_IFS
6275
6276 fi
6277 fi
6278 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6279 if test -n "$ac_ct_F77"; then
6280   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6281 echo "${ECHO_T}$ac_ct_F77" >&6; }
6282 else
6283   { echo "$as_me:$LINENO: result: no" >&5
6284 echo "${ECHO_T}no" >&6; }
6285 fi
6286
6287
6288   test -n "$ac_ct_F77" && break
6289 done
6290
6291   if test "x$ac_ct_F77" = x; then
6292     F77=""
6293   else
6294     case $cross_compiling:$ac_tool_warned in
6295 yes:)
6296 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6297 whose name does not start with the host triplet.  If you think this
6298 configuration is useful to you, please write to autoconf@gnu.org." >&5
6299 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6300 whose name does not start with the host triplet.  If you think this
6301 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6302 ac_tool_warned=yes ;;
6303 esac
6304     F77=$ac_ct_F77
6305   fi
6306 fi
6307
6308
6309 # Provide some information about the compiler.
6310 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6311 ac_compiler=`set X $ac_compile; echo $2`
6312 { (ac_try="$ac_compiler --version >&5"
6313 case "(($ac_try" in
6314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315   *) ac_try_echo=$ac_try;;
6316 esac
6317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318   (eval "$ac_compiler --version >&5") 2>&5
6319   ac_status=$?
6320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321   (exit $ac_status); }
6322 { (ac_try="$ac_compiler -v >&5"
6323 case "(($ac_try" in
6324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325   *) ac_try_echo=$ac_try;;
6326 esac
6327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6328   (eval "$ac_compiler -v >&5") 2>&5
6329   ac_status=$?
6330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331   (exit $ac_status); }
6332 { (ac_try="$ac_compiler -V >&5"
6333 case "(($ac_try" in
6334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6335   *) ac_try_echo=$ac_try;;
6336 esac
6337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6338   (eval "$ac_compiler -V >&5") 2>&5
6339   ac_status=$?
6340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341   (exit $ac_status); }
6342 rm -f a.out
6343
6344 # If we don't use `.F' as extension, the preprocessor is not run on the
6345 # input file.  (Note that this only needs to work for GNU compilers.)
6346 ac_save_ext=$ac_ext
6347 ac_ext=F
6348 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6349 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6350 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6351   echo $ECHO_N "(cached) $ECHO_C" >&6
6352 else
6353   cat >conftest.$ac_ext <<_ACEOF
6354       program main
6355 #ifndef __GNUC__
6356        choke me
6357 #endif
6358
6359       end
6360 _ACEOF
6361 rm -f conftest.$ac_objext
6362 if { (ac_try="$ac_compile"
6363 case "(($ac_try" in
6364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6365   *) ac_try_echo=$ac_try;;
6366 esac
6367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6368   (eval "$ac_compile") 2>conftest.er1
6369   ac_status=$?
6370   grep -v '^ *+' conftest.er1 >conftest.err
6371   rm -f conftest.er1
6372   cat conftest.err >&5
6373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374   (exit $ac_status); } && {
6375          test -z "$ac_f77_werror_flag" ||
6376          test ! -s conftest.err
6377        } && test -s conftest.$ac_objext; then
6378   ac_compiler_gnu=yes
6379 else
6380   echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.$ac_ext >&5
6382
6383         ac_compiler_gnu=no
6384 fi
6385
6386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6387 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6388
6389 fi
6390 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6391 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6392 ac_ext=$ac_save_ext
6393 ac_test_FFLAGS=${FFLAGS+set}
6394 ac_save_FFLAGS=$FFLAGS
6395 FFLAGS=
6396 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6397 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6398 if test "${ac_cv_prog_f77_g+set}" = set; then
6399   echo $ECHO_N "(cached) $ECHO_C" >&6
6400 else
6401   FFLAGS=-g
6402 cat >conftest.$ac_ext <<_ACEOF
6403       program main
6404
6405       end
6406 _ACEOF
6407 rm -f conftest.$ac_objext
6408 if { (ac_try="$ac_compile"
6409 case "(($ac_try" in
6410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6411   *) ac_try_echo=$ac_try;;
6412 esac
6413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6414   (eval "$ac_compile") 2>conftest.er1
6415   ac_status=$?
6416   grep -v '^ *+' conftest.er1 >conftest.err
6417   rm -f conftest.er1
6418   cat conftest.err >&5
6419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420   (exit $ac_status); } && {
6421          test -z "$ac_f77_werror_flag" ||
6422          test ! -s conftest.err
6423        } && test -s conftest.$ac_objext; then
6424   ac_cv_prog_f77_g=yes
6425 else
6426   echo "$as_me: failed program was:" >&5
6427 sed 's/^/| /' conftest.$ac_ext >&5
6428
6429         ac_cv_prog_f77_g=no
6430 fi
6431
6432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6433
6434 fi
6435 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6436 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6437 if test "$ac_test_FFLAGS" = set; then
6438   FFLAGS=$ac_save_FFLAGS
6439 elif test $ac_cv_prog_f77_g = yes; then
6440   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6441     FFLAGS="-g -O2"
6442   else
6443     FFLAGS="-g"
6444   fi
6445 else
6446   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6447     FFLAGS="-O2"
6448   else
6449     FFLAGS=
6450   fi
6451 fi
6452
6453 G77=`test $ac_compiler_gnu = yes && echo yes`
6454 ac_ext=c
6455 ac_cpp='$CPP $CPPFLAGS'
6456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6459
6460
6461
6462 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6463
6464 # find the maximum length of command line arguments
6465 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6466 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6467 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6468   echo $ECHO_N "(cached) $ECHO_C" >&6
6469 else
6470     i=0
6471   teststring="ABCD"
6472
6473   case $build_os in
6474   msdosdjgpp*)
6475     # On DJGPP, this test can blow up pretty badly due to problems in libc
6476     # (any single argument exceeding 2000 bytes causes a buffer overrun
6477     # during glob expansion).  Even if it were fixed, the result of this
6478     # check would be larger than it should be.
6479     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6480     ;;
6481
6482   gnu*)
6483     # Under GNU Hurd, this test is not required because there is
6484     # no limit to the length of command line arguments.
6485     # Libtool will interpret -1 as no limit whatsoever
6486     lt_cv_sys_max_cmd_len=-1;
6487     ;;
6488
6489   cygwin* | mingw*)
6490     # On Win9x/ME, this test blows up -- it succeeds, but takes
6491     # about 5 minutes as the teststring grows exponentially.
6492     # Worse, since 9x/ME are not pre-emptively multitasking,
6493     # you end up with a "frozen" computer, even though with patience
6494     # the test eventually succeeds (with a max line length of 256k).
6495     # Instead, let's just punt: use the minimum linelength reported by
6496     # all of the supported platforms: 8192 (on NT/2K/XP).
6497     lt_cv_sys_max_cmd_len=8192;
6498     ;;
6499
6500   amigaos*)
6501     # On AmigaOS with pdksh, this test takes hours, literally.
6502     # So we just punt and use a minimum line length of 8192.
6503     lt_cv_sys_max_cmd_len=8192;
6504     ;;
6505
6506   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6507     # This has been around since 386BSD, at least.  Likely further.
6508     if test -x /sbin/sysctl; then
6509       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6510     elif test -x /usr/sbin/sysctl; then
6511       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6512     else
6513       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6514     fi
6515     # And add a safety zone
6516     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6517     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6518     ;;
6519
6520   interix*)
6521     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6522     lt_cv_sys_max_cmd_len=196608
6523     ;;
6524
6525   osf*)
6526     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6527     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6528     # nice to cause kernel panics so lets avoid the loop below.
6529     # First set a reasonable default.
6530     lt_cv_sys_max_cmd_len=16384
6531     #
6532     if test -x /sbin/sysconfig; then
6533       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6534         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6535       esac
6536     fi
6537     ;;
6538   sco3.2v5*)
6539     lt_cv_sys_max_cmd_len=102400
6540     ;;
6541   sysv5* | sco5v6* | sysv4.2uw2*)
6542     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6543     if test -n "$kargmax"; then
6544       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6545     else
6546       lt_cv_sys_max_cmd_len=32768
6547     fi
6548     ;;
6549   *)
6550     # If test is not a shell built-in, we'll probably end up computing a
6551     # maximum length that is only half of the actual maximum length, but
6552     # we can't tell.
6553     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6554     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6555                = "XX$teststring") >/dev/null 2>&1 &&
6556             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6557             lt_cv_sys_max_cmd_len=$new_result &&
6558             test $i != 17 # 1/2 MB should be enough
6559     do
6560       i=`expr $i + 1`
6561       teststring=$teststring$teststring
6562     done
6563     teststring=
6564     # Add a significant safety factor because C++ compilers can tack on massive
6565     # amounts of additional arguments before passing them to the linker.
6566     # It appears as though 1/2 is a usable value.
6567     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6568     ;;
6569   esac
6570
6571 fi
6572
6573 if test -n $lt_cv_sys_max_cmd_len ; then
6574   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6575 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6576 else
6577   { echo "$as_me:$LINENO: result: none" >&5
6578 echo "${ECHO_T}none" >&6; }
6579 fi
6580
6581
6582
6583
6584 # Check for command to grab the raw symbol name followed by C symbol from nm.
6585 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6586 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6587 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6588   echo $ECHO_N "(cached) $ECHO_C" >&6
6589 else
6590
6591 # These are sane defaults that work on at least a few old systems.
6592 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6593
6594 # Character class describing NM global symbol codes.
6595 symcode='[BCDEGRST]'
6596
6597 # Regexp to match symbols that can be accessed directly from C.
6598 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6599
6600 # Transform an extracted symbol line into a proper C declaration
6601 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6602
6603 # Transform an extracted symbol line into symbol name and symbol address
6604 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'"
6605
6606 # Define system-specific variables.
6607 case $host_os in
6608 aix*)
6609   symcode='[BCDT]'
6610   ;;
6611 cygwin* | mingw* | pw32*)
6612   symcode='[ABCDGISTW]'
6613   ;;
6614 hpux*) # Its linker distinguishes data from code symbols
6615   if test "$host_cpu" = ia64; then
6616     symcode='[ABCDEGRST]'
6617   fi
6618   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6619   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'"
6620   ;;
6621 linux* | k*bsd*-gnu)
6622   if test "$host_cpu" = ia64; then
6623     symcode='[ABCDGIRSTW]'
6624     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6625     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'"
6626   fi
6627   ;;
6628 irix* | nonstopux*)
6629   symcode='[BCDEGRST]'
6630   ;;
6631 osf*)
6632   symcode='[BCDEGQRST]'
6633   ;;
6634 solaris*)
6635   symcode='[BDRT]'
6636   ;;
6637 sco3.2v5*)
6638   symcode='[DT]'
6639   ;;
6640 sysv4.2uw2*)
6641   symcode='[DT]'
6642   ;;
6643 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6644   symcode='[ABDT]'
6645   ;;
6646 sysv4)
6647   symcode='[DFNSTU]'
6648   ;;
6649 esac
6650
6651 # Handle CRLF in mingw tool chain
6652 opt_cr=
6653 case $build_os in
6654 mingw*)
6655   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6656   ;;
6657 esac
6658
6659 # If we're using GNU nm, then use its standard symbol codes.
6660 case `$NM -V 2>&1` in
6661 *GNU* | *'with BFD'*)
6662   symcode='[ABCDGIRSTW]' ;;
6663 esac
6664
6665 # Try without a prefix undercore, then with it.
6666 for ac_symprfx in "" "_"; do
6667
6668   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6669   symxfrm="\\1 $ac_symprfx\\2 \\2"
6670
6671   # Write the raw and C identifiers.
6672   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6673
6674   # Check to see that the pipe works correctly.
6675   pipe_works=no
6676
6677   rm -f conftest*
6678   cat > conftest.$ac_ext <<EOF
6679 #ifdef __cplusplus
6680 extern "C" {
6681 #endif
6682 char nm_test_var;
6683 void nm_test_func(){}
6684 #ifdef __cplusplus
6685 }
6686 #endif
6687 int main(){nm_test_var='a';nm_test_func();return(0);}
6688 EOF
6689
6690   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6691   (eval $ac_compile) 2>&5
6692   ac_status=$?
6693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694   (exit $ac_status); }; then
6695     # Now try to grab the symbols.
6696     nlist=conftest.nm
6697     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6698   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6699   ac_status=$?
6700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701   (exit $ac_status); } && test -s "$nlist"; then
6702       # Try sorting and uniquifying the output.
6703       if sort "$nlist" | uniq > "$nlist"T; then
6704         mv -f "$nlist"T "$nlist"
6705       else
6706         rm -f "$nlist"T
6707       fi
6708
6709       # Make sure that we snagged all the symbols we need.
6710       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6711         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6712           cat <<EOF > conftest.$ac_ext
6713 #ifdef __cplusplus
6714 extern "C" {
6715 #endif
6716
6717 EOF
6718           # Now generate the symbol file.
6719           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6720
6721           cat <<EOF >> conftest.$ac_ext
6722 #if defined (__STDC__) && __STDC__
6723 # define lt_ptr_t void *
6724 #else
6725 # define lt_ptr_t char *
6726 # define const
6727 #endif
6728
6729 /* The mapping between symbol names and symbols. */
6730 const struct {
6731   const char *name;
6732   lt_ptr_t address;
6733 }
6734 lt_preloaded_symbols[] =
6735 {
6736 EOF
6737           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6738           cat <<\EOF >> conftest.$ac_ext
6739   {0, (lt_ptr_t) 0}
6740 };
6741
6742 #ifdef __cplusplus
6743 }
6744 #endif
6745 EOF
6746           # Now try linking the two files.
6747           mv conftest.$ac_objext conftstm.$ac_objext
6748           lt_save_LIBS="$LIBS"
6749           lt_save_CFLAGS="$CFLAGS"
6750           LIBS="conftstm.$ac_objext"
6751           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6752           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6753   (eval $ac_link) 2>&5
6754   ac_status=$?
6755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6757             pipe_works=yes
6758           fi
6759           LIBS="$lt_save_LIBS"
6760           CFLAGS="$lt_save_CFLAGS"
6761         else
6762           echo "cannot find nm_test_func in $nlist" >&5
6763         fi
6764       else
6765         echo "cannot find nm_test_var in $nlist" >&5
6766       fi
6767     else
6768       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6769     fi
6770   else
6771     echo "$progname: failed program was:" >&5
6772     cat conftest.$ac_ext >&5
6773   fi
6774   rm -f conftest* conftst*
6775
6776   # Do not use the global_symbol_pipe unless it works.
6777   if test "$pipe_works" = yes; then
6778     break
6779   else
6780     lt_cv_sys_global_symbol_pipe=
6781   fi
6782 done
6783
6784 fi
6785
6786 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6787   lt_cv_sys_global_symbol_to_cdecl=
6788 fi
6789 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6790   { echo "$as_me:$LINENO: result: failed" >&5
6791 echo "${ECHO_T}failed" >&6; }
6792 else
6793   { echo "$as_me:$LINENO: result: ok" >&5
6794 echo "${ECHO_T}ok" >&6; }
6795 fi
6796
6797 { echo "$as_me:$LINENO: checking for objdir" >&5
6798 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6799 if test "${lt_cv_objdir+set}" = set; then
6800   echo $ECHO_N "(cached) $ECHO_C" >&6
6801 else
6802   rm -f .libs 2>/dev/null
6803 mkdir .libs 2>/dev/null
6804 if test -d .libs; then
6805   lt_cv_objdir=.libs
6806 else
6807   # MS-DOS does not allow filenames that begin with a dot.
6808   lt_cv_objdir=_libs
6809 fi
6810 rmdir .libs 2>/dev/null
6811 fi
6812 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6813 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6814 objdir=$lt_cv_objdir
6815
6816
6817
6818
6819
6820 case $host_os in
6821 aix3*)
6822   # AIX sometimes has problems with the GCC collect2 program.  For some
6823   # reason, if we set the COLLECT_NAMES environment variable, the problems
6824   # vanish in a puff of smoke.
6825   if test "X${COLLECT_NAMES+set}" != Xset; then
6826     COLLECT_NAMES=
6827     export COLLECT_NAMES
6828   fi
6829   ;;
6830 esac
6831
6832 # Sed substitution that helps us do robust quoting.  It backslashifies
6833 # metacharacters that are still active within double-quoted strings.
6834 Xsed='sed -e 1s/^X//'
6835 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6836
6837 # Same as above, but do not quote variable references.
6838 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6839
6840 # Sed substitution to delay expansion of an escaped shell variable in a
6841 # double_quote_subst'ed string.
6842 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6843
6844 # Sed substitution to avoid accidental globbing in evaled expressions
6845 no_glob_subst='s/\*/\\\*/g'
6846
6847 # Constants:
6848 rm="rm -f"
6849
6850 # Global variables:
6851 default_ofile=libtool
6852 can_build_shared=yes
6853
6854 # All known linkers require a `.a' archive for static linking (except MSVC,
6855 # which needs '.lib').
6856 libext=a
6857 ltmain="$ac_aux_dir/ltmain.sh"
6858 ofile="$default_ofile"
6859 with_gnu_ld="$lt_cv_prog_gnu_ld"
6860
6861 if test -n "$ac_tool_prefix"; then
6862   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6863 set dummy ${ac_tool_prefix}ar; ac_word=$2
6864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6866 if test "${ac_cv_prog_AR+set}" = set; then
6867   echo $ECHO_N "(cached) $ECHO_C" >&6
6868 else
6869   if test -n "$AR"; then
6870   ac_cv_prog_AR="$AR" # Let the user override the test.
6871 else
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 for as_dir in $PATH
6874 do
6875   IFS=$as_save_IFS
6876   test -z "$as_dir" && as_dir=.
6877   for ac_exec_ext in '' $ac_executable_extensions; do
6878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6879     ac_cv_prog_AR="${ac_tool_prefix}ar"
6880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881     break 2
6882   fi
6883 done
6884 done
6885 IFS=$as_save_IFS
6886
6887 fi
6888 fi
6889 AR=$ac_cv_prog_AR
6890 if test -n "$AR"; then
6891   { echo "$as_me:$LINENO: result: $AR" >&5
6892 echo "${ECHO_T}$AR" >&6; }
6893 else
6894   { echo "$as_me:$LINENO: result: no" >&5
6895 echo "${ECHO_T}no" >&6; }
6896 fi
6897
6898
6899 fi
6900 if test -z "$ac_cv_prog_AR"; then
6901   ac_ct_AR=$AR
6902   # Extract the first word of "ar", so it can be a program name with args.
6903 set dummy ar; ac_word=$2
6904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6906 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6907   echo $ECHO_N "(cached) $ECHO_C" >&6
6908 else
6909   if test -n "$ac_ct_AR"; then
6910   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6911 else
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6914 do
6915   IFS=$as_save_IFS
6916   test -z "$as_dir" && as_dir=.
6917   for ac_exec_ext in '' $ac_executable_extensions; do
6918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6919     ac_cv_prog_ac_ct_AR="ar"
6920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921     break 2
6922   fi
6923 done
6924 done
6925 IFS=$as_save_IFS
6926
6927 fi
6928 fi
6929 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6930 if test -n "$ac_ct_AR"; then
6931   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6932 echo "${ECHO_T}$ac_ct_AR" >&6; }
6933 else
6934   { echo "$as_me:$LINENO: result: no" >&5
6935 echo "${ECHO_T}no" >&6; }
6936 fi
6937
6938   if test "x$ac_ct_AR" = x; then
6939     AR="false"
6940   else
6941     case $cross_compiling:$ac_tool_warned in
6942 yes:)
6943 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6944 whose name does not start with the host triplet.  If you think this
6945 configuration is useful to you, please write to autoconf@gnu.org." >&5
6946 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6947 whose name does not start with the host triplet.  If you think this
6948 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6949 ac_tool_warned=yes ;;
6950 esac
6951     AR=$ac_ct_AR
6952   fi
6953 else
6954   AR="$ac_cv_prog_AR"
6955 fi
6956
6957 if test -n "$ac_tool_prefix"; then
6958   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6959 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6962 if test "${ac_cv_prog_RANLIB+set}" = set; then
6963   echo $ECHO_N "(cached) $ECHO_C" >&6
6964 else
6965   if test -n "$RANLIB"; then
6966   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6967 else
6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969 for as_dir in $PATH
6970 do
6971   IFS=$as_save_IFS
6972   test -z "$as_dir" && as_dir=.
6973   for ac_exec_ext in '' $ac_executable_extensions; do
6974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6975     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6977     break 2
6978   fi
6979 done
6980 done
6981 IFS=$as_save_IFS
6982
6983 fi
6984 fi
6985 RANLIB=$ac_cv_prog_RANLIB
6986 if test -n "$RANLIB"; then
6987   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6988 echo "${ECHO_T}$RANLIB" >&6; }
6989 else
6990   { echo "$as_me:$LINENO: result: no" >&5
6991 echo "${ECHO_T}no" >&6; }
6992 fi
6993
6994
6995 fi
6996 if test -z "$ac_cv_prog_RANLIB"; then
6997   ac_ct_RANLIB=$RANLIB
6998   # Extract the first word of "ranlib", so it can be a program name with args.
6999 set dummy ranlib; ac_word=$2
7000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7002 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7003   echo $ECHO_N "(cached) $ECHO_C" >&6
7004 else
7005   if test -n "$ac_ct_RANLIB"; then
7006   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7007 else
7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 for as_dir in $PATH
7010 do
7011   IFS=$as_save_IFS
7012   test -z "$as_dir" && as_dir=.
7013   for ac_exec_ext in '' $ac_executable_extensions; do
7014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7015     ac_cv_prog_ac_ct_RANLIB="ranlib"
7016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7017     break 2
7018   fi
7019 done
7020 done
7021 IFS=$as_save_IFS
7022
7023 fi
7024 fi
7025 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7026 if test -n "$ac_ct_RANLIB"; then
7027   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7028 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7029 else
7030   { echo "$as_me:$LINENO: result: no" >&5
7031 echo "${ECHO_T}no" >&6; }
7032 fi
7033
7034   if test "x$ac_ct_RANLIB" = x; then
7035     RANLIB=":"
7036   else
7037     case $cross_compiling:$ac_tool_warned in
7038 yes:)
7039 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7040 whose name does not start with the host triplet.  If you think this
7041 configuration is useful to you, please write to autoconf@gnu.org." >&5
7042 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7043 whose name does not start with the host triplet.  If you think this
7044 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7045 ac_tool_warned=yes ;;
7046 esac
7047     RANLIB=$ac_ct_RANLIB
7048   fi
7049 else
7050   RANLIB="$ac_cv_prog_RANLIB"
7051 fi
7052
7053 if test -n "$ac_tool_prefix"; then
7054   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7055 set dummy ${ac_tool_prefix}strip; ac_word=$2
7056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7058 if test "${ac_cv_prog_STRIP+set}" = set; then
7059   echo $ECHO_N "(cached) $ECHO_C" >&6
7060 else
7061   if test -n "$STRIP"; then
7062   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7063 else
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 for as_dir in $PATH
7066 do
7067   IFS=$as_save_IFS
7068   test -z "$as_dir" && as_dir=.
7069   for ac_exec_ext in '' $ac_executable_extensions; do
7070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7071     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7073     break 2
7074   fi
7075 done
7076 done
7077 IFS=$as_save_IFS
7078
7079 fi
7080 fi
7081 STRIP=$ac_cv_prog_STRIP
7082 if test -n "$STRIP"; then
7083   { echo "$as_me:$LINENO: result: $STRIP" >&5
7084 echo "${ECHO_T}$STRIP" >&6; }
7085 else
7086   { echo "$as_me:$LINENO: result: no" >&5
7087 echo "${ECHO_T}no" >&6; }
7088 fi
7089
7090
7091 fi
7092 if test -z "$ac_cv_prog_STRIP"; then
7093   ac_ct_STRIP=$STRIP
7094   # Extract the first word of "strip", so it can be a program name with args.
7095 set dummy strip; ac_word=$2
7096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7098 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7099   echo $ECHO_N "(cached) $ECHO_C" >&6
7100 else
7101   if test -n "$ac_ct_STRIP"; then
7102   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7103 else
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7106 do
7107   IFS=$as_save_IFS
7108   test -z "$as_dir" && as_dir=.
7109   for ac_exec_ext in '' $ac_executable_extensions; do
7110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7111     ac_cv_prog_ac_ct_STRIP="strip"
7112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7113     break 2
7114   fi
7115 done
7116 done
7117 IFS=$as_save_IFS
7118
7119 fi
7120 fi
7121 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7122 if test -n "$ac_ct_STRIP"; then
7123   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7124 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7125 else
7126   { echo "$as_me:$LINENO: result: no" >&5
7127 echo "${ECHO_T}no" >&6; }
7128 fi
7129
7130   if test "x$ac_ct_STRIP" = x; then
7131     STRIP=":"
7132   else
7133     case $cross_compiling:$ac_tool_warned in
7134 yes:)
7135 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7136 whose name does not start with the host triplet.  If you think this
7137 configuration is useful to you, please write to autoconf@gnu.org." >&5
7138 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7139 whose name does not start with the host triplet.  If you think this
7140 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7141 ac_tool_warned=yes ;;
7142 esac
7143     STRIP=$ac_ct_STRIP
7144   fi
7145 else
7146   STRIP="$ac_cv_prog_STRIP"
7147 fi
7148
7149
7150 old_CC="$CC"
7151 old_CFLAGS="$CFLAGS"
7152
7153 # Set sane defaults for various variables
7154 test -z "$AR" && AR=ar
7155 test -z "$AR_FLAGS" && AR_FLAGS=cru
7156 test -z "$AS" && AS=as
7157 test -z "$CC" && CC=cc
7158 test -z "$LTCC" && LTCC=$CC
7159 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7160 test -z "$DLLTOOL" && DLLTOOL=dlltool
7161 test -z "$LD" && LD=ld
7162 test -z "$LN_S" && LN_S="ln -s"
7163 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7164 test -z "$NM" && NM=nm
7165 test -z "$SED" && SED=sed
7166 test -z "$OBJDUMP" && OBJDUMP=objdump
7167 test -z "$RANLIB" && RANLIB=:
7168 test -z "$STRIP" && STRIP=:
7169 test -z "$ac_objext" && ac_objext=o
7170
7171 # Determine commands to create old-style static archives.
7172 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7173 old_postinstall_cmds='chmod 644 $oldlib'
7174 old_postuninstall_cmds=
7175
7176 if test -n "$RANLIB"; then
7177   case $host_os in
7178   openbsd*)
7179     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7180     ;;
7181   *)
7182     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7183     ;;
7184   esac
7185   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7186 fi
7187
7188 for cc_temp in $compiler""; do
7189   case $cc_temp in
7190     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7191     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7192     \-*) ;;
7193     *) break;;
7194   esac
7195 done
7196 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7197
7198
7199 # Only perform the check for file, if the check method requires it
7200 case $deplibs_check_method in
7201 file_magic*)
7202   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7203     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7204 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7205 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7206   echo $ECHO_N "(cached) $ECHO_C" >&6
7207 else
7208   case $MAGIC_CMD in
7209 [\\/*] |  ?:[\\/]*)
7210   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7211   ;;
7212 *)
7213   lt_save_MAGIC_CMD="$MAGIC_CMD"
7214   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7215   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7216   for ac_dir in $ac_dummy; do
7217     IFS="$lt_save_ifs"
7218     test -z "$ac_dir" && ac_dir=.
7219     if test -f $ac_dir/${ac_tool_prefix}file; then
7220       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7221       if test -n "$file_magic_test_file"; then
7222         case $deplibs_check_method in
7223         "file_magic "*)
7224           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7225           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7226           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7227             $EGREP "$file_magic_regex" > /dev/null; then
7228             :
7229           else
7230             cat <<EOF 1>&2
7231
7232 *** Warning: the command libtool uses to detect shared libraries,
7233 *** $file_magic_cmd, produces output that libtool cannot recognize.
7234 *** The result is that libtool may fail to recognize shared libraries
7235 *** as such.  This will affect the creation of libtool libraries that
7236 *** depend on shared libraries, but programs linked with such libtool
7237 *** libraries will work regardless of this problem.  Nevertheless, you
7238 *** may want to report the problem to your system manager and/or to
7239 *** bug-libtool@gnu.org
7240
7241 EOF
7242           fi ;;
7243         esac
7244       fi
7245       break
7246     fi
7247   done
7248   IFS="$lt_save_ifs"
7249   MAGIC_CMD="$lt_save_MAGIC_CMD"
7250   ;;
7251 esac
7252 fi
7253
7254 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7255 if test -n "$MAGIC_CMD"; then
7256   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7257 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7258 else
7259   { echo "$as_me:$LINENO: result: no" >&5
7260 echo "${ECHO_T}no" >&6; }
7261 fi
7262
7263 if test -z "$lt_cv_path_MAGIC_CMD"; then
7264   if test -n "$ac_tool_prefix"; then
7265     { echo "$as_me:$LINENO: checking for file" >&5
7266 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7267 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7268   echo $ECHO_N "(cached) $ECHO_C" >&6
7269 else
7270   case $MAGIC_CMD in
7271 [\\/*] |  ?:[\\/]*)
7272   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7273   ;;
7274 *)
7275   lt_save_MAGIC_CMD="$MAGIC_CMD"
7276   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7277   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7278   for ac_dir in $ac_dummy; do
7279     IFS="$lt_save_ifs"
7280     test -z "$ac_dir" && ac_dir=.
7281     if test -f $ac_dir/file; then
7282       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7283       if test -n "$file_magic_test_file"; then
7284         case $deplibs_check_method in
7285         "file_magic "*)
7286           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7287           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7288           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7289             $EGREP "$file_magic_regex" > /dev/null; then
7290             :
7291           else
7292             cat <<EOF 1>&2
7293
7294 *** Warning: the command libtool uses to detect shared libraries,
7295 *** $file_magic_cmd, produces output that libtool cannot recognize.
7296 *** The result is that libtool may fail to recognize shared libraries
7297 *** as such.  This will affect the creation of libtool libraries that
7298 *** depend on shared libraries, but programs linked with such libtool
7299 *** libraries will work regardless of this problem.  Nevertheless, you
7300 *** may want to report the problem to your system manager and/or to
7301 *** bug-libtool@gnu.org
7302
7303 EOF
7304           fi ;;
7305         esac
7306       fi
7307       break
7308     fi
7309   done
7310   IFS="$lt_save_ifs"
7311   MAGIC_CMD="$lt_save_MAGIC_CMD"
7312   ;;
7313 esac
7314 fi
7315
7316 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7317 if test -n "$MAGIC_CMD"; then
7318   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7319 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7320 else
7321   { echo "$as_me:$LINENO: result: no" >&5
7322 echo "${ECHO_T}no" >&6; }
7323 fi
7324
7325   else
7326     MAGIC_CMD=:
7327   fi
7328 fi
7329
7330   fi
7331   ;;
7332 esac
7333
7334 enable_dlopen=no
7335 enable_win32_dll=yes
7336
7337 # Check whether --enable-libtool-lock was given.
7338 if test "${enable_libtool_lock+set}" = set; then
7339   enableval=$enable_libtool_lock;
7340 fi
7341
7342 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7343
7344
7345 # Check whether --with-pic was given.
7346 if test "${with_pic+set}" = set; then
7347   withval=$with_pic; pic_mode="$withval"
7348 else
7349   pic_mode=default
7350 fi
7351
7352 test -z "$pic_mode" && pic_mode=default
7353
7354 # Use C for the default configuration in the libtool script
7355 tagname=
7356 lt_save_CC="$CC"
7357 ac_ext=c
7358 ac_cpp='$CPP $CPPFLAGS'
7359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7362
7363
7364 # Source file extension for C test sources.
7365 ac_ext=c
7366
7367 # Object file extension for compiled C test sources.
7368 objext=o
7369 objext=$objext
7370
7371 # Code to be used in simple compile tests
7372 lt_simple_compile_test_code="int some_variable = 0;\n"
7373
7374 # Code to be used in simple link tests
7375 lt_simple_link_test_code='int main(){return(0);}\n'
7376
7377
7378 # If no C compiler was specified, use CC.
7379 LTCC=${LTCC-"$CC"}
7380
7381 # If no C compiler flags were specified, use CFLAGS.
7382 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7383
7384 # Allow CC to be a program name with arguments.
7385 compiler=$CC
7386
7387
7388 # save warnings/boilerplate of simple test code
7389 ac_outfile=conftest.$ac_objext
7390 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7391 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7392 _lt_compiler_boilerplate=`cat conftest.err`
7393 $rm conftest*
7394
7395 ac_outfile=conftest.$ac_objext
7396 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7397 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7398 _lt_linker_boilerplate=`cat conftest.err`
7399 $rm conftest*
7400
7401
7402
7403 lt_prog_compiler_no_builtin_flag=
7404
7405 if test "$GCC" = yes; then
7406   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7407
7408
7409 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7410 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7411 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7412   echo $ECHO_N "(cached) $ECHO_C" >&6
7413 else
7414   lt_cv_prog_compiler_rtti_exceptions=no
7415   ac_outfile=conftest.$ac_objext
7416    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7417    lt_compiler_flag="-fno-rtti -fno-exceptions"
7418    # Insert the option either (1) after the last *FLAGS variable, or
7419    # (2) before a word containing "conftest.", or (3) at the end.
7420    # Note that $ac_compile itself does not contain backslashes and begins
7421    # with a dollar sign (not a hyphen), so the echo should work correctly.
7422    # The option is referenced via a variable to avoid confusing sed.
7423    lt_compile=`echo "$ac_compile" | $SED \
7424    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7425    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7426    -e 's:$: $lt_compiler_flag:'`
7427    (eval echo "\"\$as_me:7427: $lt_compile\"" >&5)
7428    (eval "$lt_compile" 2>conftest.err)
7429    ac_status=$?
7430    cat conftest.err >&5
7431    echo "$as_me:7431: \$? = $ac_status" >&5
7432    if (exit $ac_status) && test -s "$ac_outfile"; then
7433      # The compiler can only warn and ignore the option if not recognized
7434      # So say no if there are warnings other than the usual output.
7435      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7436      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7437      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7438        lt_cv_prog_compiler_rtti_exceptions=yes
7439      fi
7440    fi
7441    $rm conftest*
7442
7443 fi
7444 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7445 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7446
7447 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7448     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7449 else
7450     :
7451 fi
7452
7453 fi
7454
7455 lt_prog_compiler_wl=
7456 lt_prog_compiler_pic=
7457 lt_prog_compiler_static=
7458
7459 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7460 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7461
7462   if test "$GCC" = yes; then
7463     lt_prog_compiler_wl='-Wl,'
7464     lt_prog_compiler_static='-static'
7465
7466     case $host_os in
7467       aix*)
7468       # All AIX code is PIC.
7469       if test "$host_cpu" = ia64; then
7470         # AIX 5 now supports IA64 processor
7471         lt_prog_compiler_static='-Bstatic'
7472       fi
7473       ;;
7474
7475     amigaos*)
7476       # FIXME: we need at least 68020 code to build shared libraries, but
7477       # adding the `-m68020' flag to GCC prevents building anything better,
7478       # like `-m68040'.
7479       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7480       ;;
7481
7482     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7483       # PIC is the default for these OSes.
7484       ;;
7485
7486     mingw* | pw32* | os2*)
7487       # This hack is so that the source file can tell whether it is being
7488       # built for inclusion in a dll (and should export symbols for example).
7489       lt_prog_compiler_pic='-DDLL_EXPORT'
7490       ;;
7491
7492     darwin* | rhapsody*)
7493       # PIC is the default on this platform
7494       # Common symbols not allowed in MH_DYLIB files
7495       lt_prog_compiler_pic='-fno-common'
7496       ;;
7497
7498     interix3*)
7499       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7500       # Instead, we relocate shared libraries at runtime.
7501       ;;
7502
7503     msdosdjgpp*)
7504       # Just because we use GCC doesn't mean we suddenly get shared libraries
7505       # on systems that don't support them.
7506       lt_prog_compiler_can_build_shared=no
7507       enable_shared=no
7508       ;;
7509
7510     sysv4*MP*)
7511       if test -d /usr/nec; then
7512         lt_prog_compiler_pic=-Kconform_pic
7513       fi
7514       ;;
7515
7516     hpux*)
7517       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7518       # not for PA HP-UX.
7519       case $host_cpu in
7520       hppa*64*|ia64*)
7521         # +Z the default
7522         ;;
7523       *)
7524         lt_prog_compiler_pic='-fPIC'
7525         ;;
7526       esac
7527       ;;
7528
7529     *)
7530       lt_prog_compiler_pic='-fPIC'
7531       ;;
7532     esac
7533   else
7534     # PORTME Check for flag to pass linker flags through the system compiler.
7535     case $host_os in
7536     aix*)
7537       lt_prog_compiler_wl='-Wl,'
7538       if test "$host_cpu" = ia64; then
7539         # AIX 5 now supports IA64 processor
7540         lt_prog_compiler_static='-Bstatic'
7541       else
7542         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7543       fi
7544       ;;
7545       darwin*)
7546         # PIC is the default on this platform
7547         # Common symbols not allowed in MH_DYLIB files
7548        case $cc_basename in
7549          xlc*)
7550          lt_prog_compiler_pic='-qnocommon'
7551          lt_prog_compiler_wl='-Wl,'
7552          ;;
7553        esac
7554        ;;
7555
7556     mingw* | pw32* | os2*)
7557       # This hack is so that the source file can tell whether it is being
7558       # built for inclusion in a dll (and should export symbols for example).
7559       lt_prog_compiler_pic='-DDLL_EXPORT'
7560       ;;
7561
7562     hpux9* | hpux10* | hpux11*)
7563       lt_prog_compiler_wl='-Wl,'
7564       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7565       # not for PA HP-UX.
7566       case $host_cpu in
7567       hppa*64*|ia64*)
7568         # +Z the default
7569         ;;
7570       *)
7571         lt_prog_compiler_pic='+Z'
7572         ;;
7573       esac
7574       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7575       lt_prog_compiler_static='${wl}-a ${wl}archive'
7576       ;;
7577
7578     irix5* | irix6* | nonstopux*)
7579       lt_prog_compiler_wl='-Wl,'
7580       # PIC (with -KPIC) is the default.
7581       lt_prog_compiler_static='-non_shared'
7582       ;;
7583
7584     newsos6)
7585       lt_prog_compiler_pic='-KPIC'
7586       lt_prog_compiler_static='-Bstatic'
7587       ;;
7588
7589     linux* | k*bsd*-gnu)
7590       case $cc_basename in
7591       icc* | ecc*)
7592         lt_prog_compiler_wl='-Wl,'
7593         lt_prog_compiler_pic='-KPIC'
7594         lt_prog_compiler_static='-static'
7595         ;;
7596       pgcc* | pgf77* | pgf90* | pgf95*)
7597         # Portland Group compilers (*not* the Pentium gcc compiler,
7598         # which looks to be a dead project)
7599         lt_prog_compiler_wl='-Wl,'
7600         lt_prog_compiler_pic='-fpic'
7601         lt_prog_compiler_static='-Bstatic'
7602         ;;
7603       ccc*)
7604         lt_prog_compiler_wl='-Wl,'
7605         # All Alpha code is PIC.
7606         lt_prog_compiler_static='-non_shared'
7607         ;;
7608       esac
7609       ;;
7610
7611     osf3* | osf4* | osf5*)
7612       lt_prog_compiler_wl='-Wl,'
7613       # All OSF/1 code is PIC.
7614       lt_prog_compiler_static='-non_shared'
7615       ;;
7616
7617     solaris*)
7618       lt_prog_compiler_pic='-KPIC'
7619       lt_prog_compiler_static='-Bstatic'
7620       case $cc_basename in
7621       f77* | f90* | f95*)
7622         lt_prog_compiler_wl='-Qoption ld ';;
7623       *)
7624         lt_prog_compiler_wl='-Wl,';;
7625       esac
7626       ;;
7627
7628     sunos4*)
7629       lt_prog_compiler_wl='-Qoption ld '
7630       lt_prog_compiler_pic='-PIC'
7631       lt_prog_compiler_static='-Bstatic'
7632       ;;
7633
7634     sysv4 | sysv4.2uw2* | sysv4.3*)
7635       lt_prog_compiler_wl='-Wl,'
7636       lt_prog_compiler_pic='-KPIC'
7637       lt_prog_compiler_static='-Bstatic'
7638       ;;
7639
7640     sysv4*MP*)
7641       if test -d /usr/nec ;then
7642         lt_prog_compiler_pic='-Kconform_pic'
7643         lt_prog_compiler_static='-Bstatic'
7644       fi
7645       ;;
7646
7647     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7648       lt_prog_compiler_wl='-Wl,'
7649       lt_prog_compiler_pic='-KPIC'
7650       lt_prog_compiler_static='-Bstatic'
7651       ;;
7652
7653     unicos*)
7654       lt_prog_compiler_wl='-Wl,'
7655       lt_prog_compiler_can_build_shared=no
7656       ;;
7657
7658     uts4*)
7659       lt_prog_compiler_pic='-pic'
7660       lt_prog_compiler_static='-Bstatic'
7661       ;;
7662
7663     *)
7664       lt_prog_compiler_can_build_shared=no
7665       ;;
7666     esac
7667   fi
7668
7669 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7670 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7671
7672 #
7673 # Check to make sure the PIC flag actually works.
7674 #
7675 if test -n "$lt_prog_compiler_pic"; then
7676
7677 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7678 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7679 if test "${lt_prog_compiler_pic_works+set}" = set; then
7680   echo $ECHO_N "(cached) $ECHO_C" >&6
7681 else
7682   lt_prog_compiler_pic_works=no
7683   ac_outfile=conftest.$ac_objext
7684    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7685    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7686    # Insert the option either (1) after the last *FLAGS variable, or
7687    # (2) before a word containing "conftest.", or (3) at the end.
7688    # Note that $ac_compile itself does not contain backslashes and begins
7689    # with a dollar sign (not a hyphen), so the echo should work correctly.
7690    # The option is referenced via a variable to avoid confusing sed.
7691    lt_compile=`echo "$ac_compile" | $SED \
7692    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7693    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7694    -e 's:$: $lt_compiler_flag:'`
7695    (eval echo "\"\$as_me:7695: $lt_compile\"" >&5)
7696    (eval "$lt_compile" 2>conftest.err)
7697    ac_status=$?
7698    cat conftest.err >&5
7699    echo "$as_me:7699: \$? = $ac_status" >&5
7700    if (exit $ac_status) && test -s "$ac_outfile"; then
7701      # The compiler can only warn and ignore the option if not recognized
7702      # So say no if there are warnings other than the usual output.
7703      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7704      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7705      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7706        lt_prog_compiler_pic_works=yes
7707      fi
7708    fi
7709    $rm conftest*
7710
7711 fi
7712 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7713 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7714
7715 if test x"$lt_prog_compiler_pic_works" = xyes; then
7716     case $lt_prog_compiler_pic in
7717      "" | " "*) ;;
7718      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7719      esac
7720 else
7721     lt_prog_compiler_pic=
7722      lt_prog_compiler_can_build_shared=no
7723 fi
7724
7725 fi
7726 case $host_os in
7727   # For platforms which do not support PIC, -DPIC is meaningless:
7728   *djgpp*)
7729     lt_prog_compiler_pic=
7730     ;;
7731   *)
7732     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7733     ;;
7734 esac
7735
7736 #
7737 # Check to make sure the static flag actually works.
7738 #
7739 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7740 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7741 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7742 if test "${lt_prog_compiler_static_works+set}" = set; then
7743   echo $ECHO_N "(cached) $ECHO_C" >&6
7744 else
7745   lt_prog_compiler_static_works=no
7746    save_LDFLAGS="$LDFLAGS"
7747    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7748    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7749    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7750      # The linker can only warn and ignore the option if not recognized
7751      # So say no if there are warnings
7752      if test -s conftest.err; then
7753        # Append any errors to the config.log.
7754        cat conftest.err 1>&5
7755        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7756        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7757        if diff conftest.exp conftest.er2 >/dev/null; then
7758          lt_prog_compiler_static_works=yes
7759        fi
7760      else
7761        lt_prog_compiler_static_works=yes
7762      fi
7763    fi
7764    $rm conftest*
7765    LDFLAGS="$save_LDFLAGS"
7766
7767 fi
7768 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7769 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7770
7771 if test x"$lt_prog_compiler_static_works" = xyes; then
7772     :
7773 else
7774     lt_prog_compiler_static=
7775 fi
7776
7777
7778 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7779 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7780 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7781   echo $ECHO_N "(cached) $ECHO_C" >&6
7782 else
7783   lt_cv_prog_compiler_c_o=no
7784    $rm -r conftest 2>/dev/null
7785    mkdir conftest
7786    cd conftest
7787    mkdir out
7788    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7789
7790    lt_compiler_flag="-o out/conftest2.$ac_objext"
7791    # Insert the option either (1) after the last *FLAGS variable, or
7792    # (2) before a word containing "conftest.", or (3) at the end.
7793    # Note that $ac_compile itself does not contain backslashes and begins
7794    # with a dollar sign (not a hyphen), so the echo should work correctly.
7795    lt_compile=`echo "$ac_compile" | $SED \
7796    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7797    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7798    -e 's:$: $lt_compiler_flag:'`
7799    (eval echo "\"\$as_me:7799: $lt_compile\"" >&5)
7800    (eval "$lt_compile" 2>out/conftest.err)
7801    ac_status=$?
7802    cat out/conftest.err >&5
7803    echo "$as_me:7803: \$? = $ac_status" >&5
7804    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7805    then
7806      # The compiler can only warn and ignore the option if not recognized
7807      # So say no if there are warnings
7808      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7809      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7810      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7811        lt_cv_prog_compiler_c_o=yes
7812      fi
7813    fi
7814    chmod u+w . 2>&5
7815    $rm conftest*
7816    # SGI C++ compiler will create directory out/ii_files/ for
7817    # template instantiation
7818    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7819    $rm out/* && rmdir out
7820    cd ..
7821    rmdir conftest
7822    $rm conftest*
7823
7824 fi
7825 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7826 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7827
7828
7829 hard_links="nottested"
7830 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7831   # do not overwrite the value of need_locks provided by the user
7832   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7833 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7834   hard_links=yes
7835   $rm conftest*
7836   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7837   touch conftest.a
7838   ln conftest.a conftest.b 2>&5 || hard_links=no
7839   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7840   { echo "$as_me:$LINENO: result: $hard_links" >&5
7841 echo "${ECHO_T}$hard_links" >&6; }
7842   if test "$hard_links" = no; then
7843     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7844 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7845     need_locks=warn
7846   fi
7847 else
7848   need_locks=no
7849 fi
7850
7851 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7852 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7853
7854   runpath_var=
7855   allow_undefined_flag=
7856   enable_shared_with_static_runtimes=no
7857   archive_cmds=
7858   archive_expsym_cmds=
7859   old_archive_From_new_cmds=
7860   old_archive_from_expsyms_cmds=
7861   export_dynamic_flag_spec=
7862   whole_archive_flag_spec=
7863   thread_safe_flag_spec=
7864   hardcode_libdir_flag_spec=
7865   hardcode_libdir_flag_spec_ld=
7866   hardcode_libdir_separator=
7867   hardcode_direct=no
7868   hardcode_minus_L=no
7869   hardcode_shlibpath_var=unsupported
7870   link_all_deplibs=unknown
7871   hardcode_automatic=no
7872   module_cmds=
7873   module_expsym_cmds=
7874   always_export_symbols=no
7875   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7876   # include_expsyms should be a list of space-separated symbols to be *always*
7877   # included in the symbol list
7878   include_expsyms=
7879   # exclude_expsyms can be an extended regexp of symbols to exclude
7880   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7881   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7882   # as well as any symbol that contains `d'.
7883   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7884   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7885   # platforms (ab)use it in PIC code, but their linkers get confused if
7886   # the symbol is explicitly referenced.  Since portable code cannot
7887   # rely on this symbol name, it's probably fine to never include it in
7888   # preloaded symbol tables.
7889   extract_expsyms_cmds=
7890   # Just being paranoid about ensuring that cc_basename is set.
7891   for cc_temp in $compiler""; do
7892   case $cc_temp in
7893     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7894     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7895     \-*) ;;
7896     *) break;;
7897   esac
7898 done
7899 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7900
7901   case $host_os in
7902   cygwin* | mingw* | pw32*)
7903     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7904     # When not using gcc, we currently assume that we are using
7905     # Microsoft Visual C++.
7906     if test "$GCC" != yes; then
7907       with_gnu_ld=no
7908     fi
7909     ;;
7910   interix*)
7911     # we just hope/assume this is gcc and not c89 (= MSVC++)
7912     with_gnu_ld=yes
7913     ;;
7914   openbsd*)
7915     with_gnu_ld=no
7916     ;;
7917   esac
7918
7919   ld_shlibs=yes
7920   if test "$with_gnu_ld" = yes; then
7921     # If archive_cmds runs LD, not CC, wlarc should be empty
7922     wlarc='${wl}'
7923
7924     # Set some defaults for GNU ld with shared library support. These
7925     # are reset later if shared libraries are not supported. Putting them
7926     # here allows them to be overridden if necessary.
7927     runpath_var=LD_RUN_PATH
7928     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7929     export_dynamic_flag_spec='${wl}--export-dynamic'
7930     # ancient GNU ld didn't support --whole-archive et. al.
7931     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7932         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7933       else
7934         whole_archive_flag_spec=
7935     fi
7936     supports_anon_versioning=no
7937     case `$LD -v 2>/dev/null` in
7938       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7939       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7940       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7941       *\ 2.11.*) ;; # other 2.11 versions
7942       *) supports_anon_versioning=yes ;;
7943     esac
7944
7945     # See if GNU ld supports shared libraries.
7946     case $host_os in
7947     aix3* | aix4* | aix5*)
7948       # On AIX/PPC, the GNU linker is very broken
7949       if test "$host_cpu" != ia64; then
7950         ld_shlibs=no
7951         cat <<EOF 1>&2
7952
7953 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7954 *** to be unable to reliably create shared libraries on AIX.
7955 *** Therefore, libtool is disabling shared libraries support.  If you
7956 *** really care for shared libraries, you may want to modify your PATH
7957 *** so that a non-GNU linker is found, and then restart.
7958
7959 EOF
7960       fi
7961       ;;
7962
7963     amigaos*)
7964       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)'
7965       hardcode_libdir_flag_spec='-L$libdir'
7966       hardcode_minus_L=yes
7967
7968       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7969       # that the semantics of dynamic libraries on AmigaOS, at least up
7970       # to version 4, is to share data among multiple programs linked
7971       # with the same dynamic library.  Since this doesn't match the
7972       # behavior of shared libraries on other platforms, we can't use
7973       # them.
7974       ld_shlibs=no
7975       ;;
7976
7977     beos*)
7978       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7979         allow_undefined_flag=unsupported
7980         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7981         # support --undefined.  This deserves some investigation.  FIXME
7982         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7983       else
7984         ld_shlibs=no
7985       fi
7986       ;;
7987
7988     cygwin* | mingw* | pw32*)
7989       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7990       # as there is no search path for DLLs.
7991       hardcode_libdir_flag_spec='-L$libdir'
7992       allow_undefined_flag=unsupported
7993       always_export_symbols=no
7994       enable_shared_with_static_runtimes=yes
7995       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7996
7997       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7998         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7999         # If the export-symbols file already is a .def file (1st line
8000         # is EXPORTS), use it as is; otherwise, prepend...
8001         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8002           cp $export_symbols $output_objdir/$soname.def;
8003         else
8004           echo EXPORTS > $output_objdir/$soname.def;
8005           cat $export_symbols >> $output_objdir/$soname.def;
8006         fi~
8007         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8008       else
8009         ld_shlibs=no
8010       fi
8011       ;;
8012
8013     interix3*)
8014       hardcode_direct=no
8015       hardcode_shlibpath_var=no
8016       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8017       export_dynamic_flag_spec='${wl}-E'
8018       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8019       # Instead, shared libraries are loaded at an image base (0x10000000 by
8020       # default) and relocated if they conflict, which is a slow very memory
8021       # consuming and fragmenting process.  To avoid this, we pick a random,
8022       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8023       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8024       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8025       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'
8026       ;;
8027
8028     linux* | k*bsd*-gnu)
8029       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8030         tmp_addflag=
8031         case $cc_basename,$host_cpu in
8032         pgcc*)                          # Portland Group C compiler
8033           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'
8034           tmp_addflag=' $pic_flag'
8035           ;;
8036         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8037           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'
8038           tmp_addflag=' $pic_flag -Mnomain' ;;
8039         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8040           tmp_addflag=' -i_dynamic' ;;
8041         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8042           tmp_addflag=' -i_dynamic -nofor_main' ;;
8043         ifc* | ifort*)                  # Intel Fortran compiler
8044           tmp_addflag=' -nofor_main' ;;
8045         esac
8046         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8047
8048         if test $supports_anon_versioning = yes; then
8049           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8050   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8051   $echo "local: *; };" >> $output_objdir/$libname.ver~
8052           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8053         fi
8054         link_all_deplibs=no
8055       else
8056         ld_shlibs=no
8057       fi
8058       ;;
8059
8060     netbsd* | netbsdelf*-gnu)
8061       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8062         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8063         wlarc=
8064       else
8065         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8066         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8067       fi
8068       ;;
8069
8070     solaris*)
8071       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8072         ld_shlibs=no
8073         cat <<EOF 1>&2
8074
8075 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8076 *** create shared libraries on Solaris systems.  Therefore, libtool
8077 *** is disabling shared libraries support.  We urge you to upgrade GNU
8078 *** binutils to release 2.9.1 or newer.  Another option is to modify
8079 *** your PATH or compiler configuration so that the native linker is
8080 *** used, and then restart.
8081
8082 EOF
8083       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8084         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8085         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8086       else
8087         ld_shlibs=no
8088       fi
8089       ;;
8090
8091     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8092       case `$LD -v 2>&1` in
8093         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8094         ld_shlibs=no
8095         cat <<_LT_EOF 1>&2
8096
8097 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8098 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8099 *** is disabling shared libraries support.  We urge you to upgrade GNU
8100 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8101 *** your PATH or compiler configuration so that the native linker is
8102 *** used, and then restart.
8103
8104 _LT_EOF
8105         ;;
8106         *)
8107           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8108             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8109             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8110             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8111           else
8112             ld_shlibs=no
8113           fi
8114         ;;
8115       esac
8116       ;;
8117
8118     sunos4*)
8119       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8120       wlarc=
8121       hardcode_direct=yes
8122       hardcode_shlibpath_var=no
8123       ;;
8124
8125     *)
8126       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8127         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8128         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8129       else
8130         ld_shlibs=no
8131       fi
8132       ;;
8133     esac
8134
8135     if test "$ld_shlibs" = no; then
8136       runpath_var=
8137       hardcode_libdir_flag_spec=
8138       export_dynamic_flag_spec=
8139       whole_archive_flag_spec=
8140     fi
8141   else
8142     # PORTME fill in a description of your system's linker (not GNU ld)
8143     case $host_os in
8144     aix3*)
8145       allow_undefined_flag=unsupported
8146       always_export_symbols=yes
8147       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'
8148       # Note: this linker hardcodes the directories in LIBPATH if there
8149       # are no directories specified by -L.
8150       hardcode_minus_L=yes
8151       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8152         # Neither direct hardcoding nor static linking is supported with a
8153         # broken collect2.
8154         hardcode_direct=unsupported
8155       fi
8156       ;;
8157
8158     aix4* | aix5*)
8159       if test "$host_cpu" = ia64; then
8160         # On IA64, the linker does run time linking by default, so we don't
8161         # have to do anything special.
8162         aix_use_runtimelinking=no
8163         exp_sym_flag='-Bexport'
8164         no_entry_flag=""
8165       else
8166         # If we're using GNU nm, then we don't want the "-C" option.
8167         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8168         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8169           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'
8170         else
8171           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'
8172         fi
8173         aix_use_runtimelinking=no
8174
8175         # Test if we are trying to use run time linking or normal
8176         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8177         # need to do runtime linking.
8178         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8179           for ld_flag in $LDFLAGS; do
8180           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8181             aix_use_runtimelinking=yes
8182             break
8183           fi
8184           done
8185           ;;
8186         esac
8187
8188         exp_sym_flag='-bexport'
8189         no_entry_flag='-bnoentry'
8190       fi
8191
8192       # When large executables or shared objects are built, AIX ld can
8193       # have problems creating the table of contents.  If linking a library
8194       # or program results in "error TOC overflow" add -mminimal-toc to
8195       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8196       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8197
8198       archive_cmds=''
8199       hardcode_direct=yes
8200       hardcode_libdir_separator=':'
8201       link_all_deplibs=yes
8202
8203       if test "$GCC" = yes; then
8204         case $host_os in aix4.[012]|aix4.[012].*)
8205         # We only want to do this on AIX 4.2 and lower, the check
8206         # below for broken collect2 doesn't work under 4.3+
8207           collect2name=`${CC} -print-prog-name=collect2`
8208           if test -f "$collect2name" && \
8209            strings "$collect2name" | grep resolve_lib_name >/dev/null
8210           then
8211           # We have reworked collect2
8212           hardcode_direct=yes
8213           else
8214           # We have old collect2
8215           hardcode_direct=unsupported
8216           # It fails to find uninstalled libraries when the uninstalled
8217           # path is not listed in the libpath.  Setting hardcode_minus_L
8218           # to unsupported forces relinking
8219           hardcode_minus_L=yes
8220           hardcode_libdir_flag_spec='-L$libdir'
8221           hardcode_libdir_separator=
8222           fi
8223           ;;
8224         esac
8225         shared_flag='-shared'
8226         if test "$aix_use_runtimelinking" = yes; then
8227           shared_flag="$shared_flag "'${wl}-G'
8228         fi
8229       else
8230         # not using gcc
8231         if test "$host_cpu" = ia64; then
8232         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8233         # chokes on -Wl,-G. The following line is correct:
8234           shared_flag='-G'
8235         else
8236           if test "$aix_use_runtimelinking" = yes; then
8237             shared_flag='${wl}-G'
8238           else
8239             shared_flag='${wl}-bM:SRE'
8240           fi
8241         fi
8242       fi
8243
8244       # It seems that -bexpall does not export symbols beginning with
8245       # underscore (_), so it is better to generate a list of symbols to export.
8246       always_export_symbols=yes
8247       if test "$aix_use_runtimelinking" = yes; then
8248         # Warning - without using the other runtime loading flags (-brtl),
8249         # -berok will link without error, but may produce a broken library.
8250         allow_undefined_flag='-berok'
8251        # Determine the default libpath from the value encoded in an empty executable.
8252        cat >conftest.$ac_ext <<_ACEOF
8253 /* confdefs.h.  */
8254 _ACEOF
8255 cat confdefs.h >>conftest.$ac_ext
8256 cat >>conftest.$ac_ext <<_ACEOF
8257 /* end confdefs.h.  */
8258
8259 int
8260 main ()
8261 {
8262
8263   ;
8264   return 0;
8265 }
8266 _ACEOF
8267 rm -f conftest.$ac_objext conftest$ac_exeext
8268 if { (ac_try="$ac_link"
8269 case "(($ac_try" in
8270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8271   *) ac_try_echo=$ac_try;;
8272 esac
8273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8274   (eval "$ac_link") 2>conftest.er1
8275   ac_status=$?
8276   grep -v '^ *+' conftest.er1 >conftest.err
8277   rm -f conftest.er1
8278   cat conftest.err >&5
8279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280   (exit $ac_status); } && {
8281          test -z "$ac_c_werror_flag" ||
8282          test ! -s conftest.err
8283        } && test -s conftest$ac_exeext &&
8284        $as_test_x conftest$ac_exeext; then
8285
8286 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8287 }'`
8288 # Check for a 64-bit object if we didn't find anything.
8289 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8290 }'`; fi
8291 else
8292   echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8294
8295
8296 fi
8297
8298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8299       conftest$ac_exeext conftest.$ac_ext
8300 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8301
8302        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8303         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"
8304        else
8305         if test "$host_cpu" = ia64; then
8306           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8307           allow_undefined_flag="-z nodefs"
8308           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"
8309         else
8310          # Determine the default libpath from the value encoded in an empty executable.
8311          cat >conftest.$ac_ext <<_ACEOF
8312 /* confdefs.h.  */
8313 _ACEOF
8314 cat confdefs.h >>conftest.$ac_ext
8315 cat >>conftest.$ac_ext <<_ACEOF
8316 /* end confdefs.h.  */
8317
8318 int
8319 main ()
8320 {
8321
8322   ;
8323   return 0;
8324 }
8325 _ACEOF
8326 rm -f conftest.$ac_objext conftest$ac_exeext
8327 if { (ac_try="$ac_link"
8328 case "(($ac_try" in
8329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330   *) ac_try_echo=$ac_try;;
8331 esac
8332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8333   (eval "$ac_link") 2>conftest.er1
8334   ac_status=$?
8335   grep -v '^ *+' conftest.er1 >conftest.err
8336   rm -f conftest.er1
8337   cat conftest.err >&5
8338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339   (exit $ac_status); } && {
8340          test -z "$ac_c_werror_flag" ||
8341          test ! -s conftest.err
8342        } && test -s conftest$ac_exeext &&
8343        $as_test_x conftest$ac_exeext; then
8344
8345 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8346 }'`
8347 # Check for a 64-bit object if we didn't find anything.
8348 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8349 }'`; fi
8350 else
8351   echo "$as_me: failed program was:" >&5
8352 sed 's/^/| /' conftest.$ac_ext >&5
8353
8354
8355 fi
8356
8357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8358       conftest$ac_exeext conftest.$ac_ext
8359 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8360
8361          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8362           # Warning - without using the other run time loading flags,
8363           # -berok will link without error, but may produce a broken library.
8364           no_undefined_flag=' ${wl}-bernotok'
8365           allow_undefined_flag=' ${wl}-berok'
8366           # Exported symbols can be pulled into shared objects from archives
8367           whole_archive_flag_spec='$convenience'
8368           archive_cmds_need_lc=yes
8369           # This is similar to how AIX traditionally builds its shared libraries.
8370           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'
8371         fi
8372       fi
8373       ;;
8374
8375     amigaos*)
8376       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)'
8377       hardcode_libdir_flag_spec='-L$libdir'
8378       hardcode_minus_L=yes
8379       # see comment about different semantics on the GNU ld section
8380       ld_shlibs=no
8381       ;;
8382
8383     bsdi[45]*)
8384       export_dynamic_flag_spec=-rdynamic
8385       ;;
8386
8387     cygwin* | mingw* | pw32*)
8388       # When not using gcc, we currently assume that we are using
8389       # Microsoft Visual C++.
8390       # hardcode_libdir_flag_spec is actually meaningless, as there is
8391       # no search path for DLLs.
8392       hardcode_libdir_flag_spec=' '
8393       allow_undefined_flag=unsupported
8394       # Tell ltmain to make .lib files, not .a files.
8395       libext=lib
8396       # Tell ltmain to make .dll files, not .so files.
8397       shrext_cmds=".dll"
8398       # FIXME: Setting linknames here is a bad hack.
8399       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8400       # The linker will automatically build a .lib file if we build a DLL.
8401       old_archive_From_new_cmds='true'
8402       # FIXME: Should let the user specify the lib program.
8403       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8404       fix_srcfile_path='`cygpath -w "$srcfile"`'
8405       enable_shared_with_static_runtimes=yes
8406       ;;
8407
8408     darwin* | rhapsody*)
8409       case $host_os in
8410         rhapsody* | darwin1.[012])
8411          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8412          ;;
8413        *) # Darwin 1.3 on
8414          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8415            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8416          else
8417            case ${MACOSX_DEPLOYMENT_TARGET} in
8418              10.[012])
8419                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8420                ;;
8421              10.*)
8422                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8423                ;;
8424            esac
8425          fi
8426          ;;
8427       esac
8428       archive_cmds_need_lc=no
8429       hardcode_direct=no
8430       hardcode_automatic=yes
8431       hardcode_shlibpath_var=unsupported
8432       whole_archive_flag_spec=''
8433       link_all_deplibs=yes
8434     if test "$GCC" = yes ; then
8435         output_verbose_link_cmd='echo'
8436         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8437       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8438       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8439       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8440       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}'
8441     else
8442       case $cc_basename in
8443         xlc*)
8444          output_verbose_link_cmd='echo'
8445          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8446          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8447           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8448          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8449           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}'
8450           ;;
8451        *)
8452          ld_shlibs=no
8453           ;;
8454       esac
8455     fi
8456       ;;
8457
8458     dgux*)
8459       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8460       hardcode_libdir_flag_spec='-L$libdir'
8461       hardcode_shlibpath_var=no
8462       ;;
8463
8464     freebsd1*)
8465       ld_shlibs=no
8466       ;;
8467
8468     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8469     # support.  Future versions do this automatically, but an explicit c++rt0.o
8470     # does not break anything, and helps significantly (at the cost of a little
8471     # extra space).
8472     freebsd2.2*)
8473       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8474       hardcode_libdir_flag_spec='-R$libdir'
8475       hardcode_direct=yes
8476       hardcode_shlibpath_var=no
8477       ;;
8478
8479     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8480     freebsd2*)
8481       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8482       hardcode_direct=yes
8483       hardcode_minus_L=yes
8484       hardcode_shlibpath_var=no
8485       ;;
8486
8487     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8488     freebsd* | dragonfly*)
8489       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8490       hardcode_libdir_flag_spec='-R$libdir'
8491       hardcode_direct=yes
8492       hardcode_shlibpath_var=no
8493       ;;
8494
8495     hpux9*)
8496       if test "$GCC" = yes; then
8497         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'
8498       else
8499         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'
8500       fi
8501       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8502       hardcode_libdir_separator=:
8503       hardcode_direct=yes
8504
8505       # hardcode_minus_L: Not really in the search PATH,
8506       # but as the default location of the library.
8507       hardcode_minus_L=yes
8508       export_dynamic_flag_spec='${wl}-E'
8509       ;;
8510
8511     hpux10*)
8512       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8513         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8514       else
8515         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8516       fi
8517       if test "$with_gnu_ld" = no; then
8518         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8519         hardcode_libdir_separator=:
8520
8521         hardcode_direct=yes
8522         export_dynamic_flag_spec='${wl}-E'
8523
8524         # hardcode_minus_L: Not really in the search PATH,
8525         # but as the default location of the library.
8526         hardcode_minus_L=yes
8527       fi
8528       ;;
8529
8530     hpux11*)
8531       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8532         case $host_cpu in
8533         hppa*64*)
8534           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8535           ;;
8536         ia64*)
8537           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8538           ;;
8539         *)
8540           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8541           ;;
8542         esac
8543       else
8544         case $host_cpu in
8545         hppa*64*)
8546           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8547           ;;
8548         ia64*)
8549           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8550           ;;
8551         *)
8552           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8553           ;;
8554         esac
8555       fi
8556       if test "$with_gnu_ld" = no; then
8557         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8558         hardcode_libdir_separator=:
8559
8560         case $host_cpu in
8561         hppa*64*|ia64*)
8562           hardcode_libdir_flag_spec_ld='+b $libdir'
8563           hardcode_direct=no
8564           hardcode_shlibpath_var=no
8565           ;;
8566         *)
8567           hardcode_direct=yes
8568           export_dynamic_flag_spec='${wl}-E'
8569
8570           # hardcode_minus_L: Not really in the search PATH,
8571           # but as the default location of the library.
8572           hardcode_minus_L=yes
8573           ;;
8574         esac
8575       fi
8576       ;;
8577
8578     irix5* | irix6* | nonstopux*)
8579       if test "$GCC" = yes; then
8580         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'
8581       else
8582         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'
8583         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8584       fi
8585       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8586       hardcode_libdir_separator=:
8587       link_all_deplibs=yes
8588       ;;
8589
8590     netbsd* | netbsdelf*-gnu)
8591       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8592         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8593       else
8594         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8595       fi
8596       hardcode_libdir_flag_spec='-R$libdir'
8597       hardcode_direct=yes
8598       hardcode_shlibpath_var=no
8599       ;;
8600
8601     newsos6)
8602       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8603       hardcode_direct=yes
8604       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8605       hardcode_libdir_separator=:
8606       hardcode_shlibpath_var=no
8607       ;;
8608
8609     openbsd*)
8610       hardcode_direct=yes
8611       hardcode_shlibpath_var=no
8612       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8613         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8614         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8615         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8616         export_dynamic_flag_spec='${wl}-E'
8617       else
8618        case $host_os in
8619          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8620            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8621            hardcode_libdir_flag_spec='-R$libdir'
8622            ;;
8623          *)
8624            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8625            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8626            ;;
8627        esac
8628       fi
8629       ;;
8630
8631     os2*)
8632       hardcode_libdir_flag_spec='-L$libdir'
8633       hardcode_minus_L=yes
8634       allow_undefined_flag=unsupported
8635       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'
8636       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8637       ;;
8638
8639     osf3*)
8640       if test "$GCC" = yes; then
8641         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8642         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'
8643       else
8644         allow_undefined_flag=' -expect_unresolved \*'
8645         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'
8646       fi
8647       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8648       hardcode_libdir_separator=:
8649       ;;
8650
8651     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8652       if test "$GCC" = yes; then
8653         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8654         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'
8655         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8656       else
8657         allow_undefined_flag=' -expect_unresolved \*'
8658         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'
8659         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8660         $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'
8661
8662         # Both c and cxx compiler support -rpath directly
8663         hardcode_libdir_flag_spec='-rpath $libdir'
8664       fi
8665       hardcode_libdir_separator=:
8666       ;;
8667
8668     solaris*)
8669       no_undefined_flag=' -z text'
8670       if test "$GCC" = yes; then
8671         wlarc='${wl}'
8672         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8673         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8674           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8675       else
8676         wlarc=''
8677         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8678         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8679         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8680       fi
8681       hardcode_libdir_flag_spec='-R$libdir'
8682       hardcode_shlibpath_var=no
8683       case $host_os in
8684       solaris2.[0-5] | solaris2.[0-5].*) ;;
8685       *)
8686         # The compiler driver will combine linker options so we
8687         # cannot just pass the convience library names through
8688         # without $wl, iff we do not link with $LD.
8689         # Luckily, gcc supports the same syntax we need for Sun Studio.
8690         # Supported since Solaris 2.6 (maybe 2.5.1?)
8691         case $wlarc in
8692         '')
8693           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8694         *)
8695           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8696         esac ;;
8697       esac
8698       link_all_deplibs=yes
8699       ;;
8700
8701     sunos4*)
8702       if test "x$host_vendor" = xsequent; then
8703         # Use $CC to link under sequent, because it throws in some extra .o
8704         # files that make .init and .fini sections work.
8705         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8706       else
8707         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8708       fi
8709       hardcode_libdir_flag_spec='-L$libdir'
8710       hardcode_direct=yes
8711       hardcode_minus_L=yes
8712       hardcode_shlibpath_var=no
8713       ;;
8714
8715     sysv4)
8716       case $host_vendor in
8717         sni)
8718           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8719           hardcode_direct=yes # is this really true???
8720         ;;
8721         siemens)
8722           ## LD is ld it makes a PLAMLIB
8723           ## CC just makes a GrossModule.
8724           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8725           reload_cmds='$CC -r -o $output$reload_objs'
8726           hardcode_direct=no
8727         ;;
8728         motorola)
8729           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8730           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8731         ;;
8732       esac
8733       runpath_var='LD_RUN_PATH'
8734       hardcode_shlibpath_var=no
8735       ;;
8736
8737     sysv4.3*)
8738       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8739       hardcode_shlibpath_var=no
8740       export_dynamic_flag_spec='-Bexport'
8741       ;;
8742
8743     sysv4*MP*)
8744       if test -d /usr/nec; then
8745         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8746         hardcode_shlibpath_var=no
8747         runpath_var=LD_RUN_PATH
8748         hardcode_runpath_var=yes
8749         ld_shlibs=yes
8750       fi
8751       ;;
8752
8753     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8754       no_undefined_flag='${wl}-z,text'
8755       archive_cmds_need_lc=no
8756       hardcode_shlibpath_var=no
8757       runpath_var='LD_RUN_PATH'
8758
8759       if test "$GCC" = yes; then
8760         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8761         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8762       else
8763         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8764         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8765       fi
8766       ;;
8767
8768     sysv5* | sco3.2v5* | sco5v6*)
8769       # Note: We can NOT use -z defs as we might desire, because we do not
8770       # link with -lc, and that would cause any symbols used from libc to
8771       # always be unresolved, which means just about no library would
8772       # ever link correctly.  If we're not using GNU ld we use -z text
8773       # though, which does catch some bad symbols but isn't as heavy-handed
8774       # as -z defs.
8775       no_undefined_flag='${wl}-z,text'
8776       allow_undefined_flag='${wl}-z,nodefs'
8777       archive_cmds_need_lc=no
8778       hardcode_shlibpath_var=no
8779       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8780       hardcode_libdir_separator=':'
8781       link_all_deplibs=yes
8782       export_dynamic_flag_spec='${wl}-Bexport'
8783       runpath_var='LD_RUN_PATH'
8784
8785       if test "$GCC" = yes; then
8786         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8787         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8788       else
8789         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8790         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8791       fi
8792       ;;
8793
8794     uts4*)
8795       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8796       hardcode_libdir_flag_spec='-L$libdir'
8797       hardcode_shlibpath_var=no
8798       ;;
8799
8800     *)
8801       ld_shlibs=no
8802       ;;
8803     esac
8804   fi
8805
8806 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8807 echo "${ECHO_T}$ld_shlibs" >&6; }
8808 test "$ld_shlibs" = no && can_build_shared=no
8809
8810 #
8811 # Do we need to explicitly link libc?
8812 #
8813 case "x$archive_cmds_need_lc" in
8814 x|xyes)
8815   # Assume -lc should be added
8816   archive_cmds_need_lc=yes
8817
8818   if test "$enable_shared" = yes && test "$GCC" = yes; then
8819     case $archive_cmds in
8820     *'~'*)
8821       # FIXME: we may have to deal with multi-command sequences.
8822       ;;
8823     '$CC '*)
8824       # Test whether the compiler implicitly links with -lc since on some
8825       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8826       # to ld, don't add -lc before -lgcc.
8827       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8828 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8829       $rm conftest*
8830       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8831
8832       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8833   (eval $ac_compile) 2>&5
8834   ac_status=$?
8835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836   (exit $ac_status); } 2>conftest.err; then
8837         soname=conftest
8838         lib=conftest
8839         libobjs=conftest.$ac_objext
8840         deplibs=
8841         wl=$lt_prog_compiler_wl
8842         pic_flag=$lt_prog_compiler_pic
8843         compiler_flags=-v
8844         linker_flags=-v
8845         verstring=
8846         output_objdir=.
8847         libname=conftest
8848         lt_save_allow_undefined_flag=$allow_undefined_flag
8849         allow_undefined_flag=
8850         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8851   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8852   ac_status=$?
8853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854   (exit $ac_status); }
8855         then
8856           archive_cmds_need_lc=no
8857         else
8858           archive_cmds_need_lc=yes
8859         fi
8860         allow_undefined_flag=$lt_save_allow_undefined_flag
8861       else
8862         cat conftest.err 1>&5
8863       fi
8864       $rm conftest*
8865       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8866 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8867       ;;
8868     esac
8869   fi
8870   ;;
8871 esac
8872
8873 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8874 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8875 library_names_spec=
8876 libname_spec='lib$name'
8877 soname_spec=
8878 shrext_cmds=".so"
8879 postinstall_cmds=
8880 postuninstall_cmds=
8881 finish_cmds=
8882 finish_eval=
8883 shlibpath_var=
8884 shlibpath_overrides_runpath=unknown
8885 version_type=none
8886 dynamic_linker="$host_os ld.so"
8887 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8888 if test "$GCC" = yes; then
8889   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8890   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8891     # if the path contains ";" then we assume it to be the separator
8892     # otherwise default to the standard path separator (i.e. ":") - it is
8893     # assumed that no part of a normal pathname contains ";" but that should
8894     # okay in the real world where ";" in dirpaths is itself problematic.
8895     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8896   else
8897     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8898   fi
8899 else
8900   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8901 fi
8902 need_lib_prefix=unknown
8903 hardcode_into_libs=no
8904
8905 # when you set need_version to no, make sure it does not cause -set_version
8906 # flags to be left without arguments
8907 need_version=unknown
8908
8909 case $host_os in
8910 aix3*)
8911   version_type=linux
8912   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8913   shlibpath_var=LIBPATH
8914
8915   # AIX 3 has no versioning support, so we append a major version to the name.
8916   soname_spec='${libname}${release}${shared_ext}$major'
8917   ;;
8918
8919 aix4* | aix5*)
8920   version_type=linux
8921   need_lib_prefix=no
8922   need_version=no
8923   hardcode_into_libs=yes
8924   if test "$host_cpu" = ia64; then
8925     # AIX 5 supports IA64
8926     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8927     shlibpath_var=LD_LIBRARY_PATH
8928   else
8929     # With GCC up to 2.95.x, collect2 would create an import file
8930     # for dependence libraries.  The import file would start with
8931     # the line `#! .'.  This would cause the generated library to
8932     # depend on `.', always an invalid library.  This was fixed in
8933     # development snapshots of GCC prior to 3.0.
8934     case $host_os in
8935       aix4 | aix4.[01] | aix4.[01].*)
8936       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8937            echo ' yes '
8938            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8939         :
8940       else
8941         can_build_shared=no
8942       fi
8943       ;;
8944     esac
8945     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8946     # soname into executable. Probably we can add versioning support to
8947     # collect2, so additional links can be useful in future.
8948     if test "$aix_use_runtimelinking" = yes; then
8949       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8950       # instead of lib<name>.a to let people know that these are not
8951       # typical AIX shared libraries.
8952       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8953     else
8954       # We preserve .a as extension for shared libraries through AIX4.2
8955       # and later when we are not doing run time linking.
8956       library_names_spec='${libname}${release}.a $libname.a'
8957       soname_spec='${libname}${release}${shared_ext}$major'
8958     fi
8959     shlibpath_var=LIBPATH
8960   fi
8961   ;;
8962
8963 amigaos*)
8964   library_names_spec='$libname.ixlibrary $libname.a'
8965   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8966   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'
8967   ;;
8968
8969 beos*)
8970   library_names_spec='${libname}${shared_ext}'
8971   dynamic_linker="$host_os ld.so"
8972   shlibpath_var=LIBRARY_PATH
8973   ;;
8974
8975 bsdi[45]*)
8976   version_type=linux
8977   need_version=no
8978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8979   soname_spec='${libname}${release}${shared_ext}$major'
8980   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8981   shlibpath_var=LD_LIBRARY_PATH
8982   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8983   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8984   # the default ld.so.conf also contains /usr/contrib/lib and
8985   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8986   # libtool to hard-code these into programs
8987   ;;
8988
8989 cygwin* | mingw* | pw32*)
8990   version_type=windows
8991   shrext_cmds=".dll"
8992   need_version=no
8993   need_lib_prefix=no
8994
8995   case $GCC,$host_os in
8996   yes,cygwin* | yes,mingw* | yes,pw32*)
8997     library_names_spec='$libname.dll.a'
8998     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8999     postinstall_cmds='base_file=`basename \${file}`~
9000       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9001       dldir=$destdir/`dirname \$dlpath`~
9002       test -d \$dldir || mkdir -p \$dldir~
9003       $install_prog $dir/$dlname \$dldir/$dlname~
9004       chmod a+x \$dldir/$dlname'
9005     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9006       dlpath=$dir/\$dldll~
9007        $rm \$dlpath'
9008     shlibpath_overrides_runpath=yes
9009
9010     case $host_os in
9011     cygwin*)
9012       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9013       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9014       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9015       ;;
9016     mingw*)
9017       # MinGW DLLs use traditional 'lib' prefix
9018       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9019       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9020       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9021         # It is most probably a Windows format PATH printed by
9022         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9023         # path with ; separators, and with drive letters. We can handle the
9024         # drive letters (cygwin fileutils understands them), so leave them,
9025         # especially as we might pass files found there to a mingw objdump,
9026         # which wouldn't understand a cygwinified path. Ahh.
9027         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9028       else
9029         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9030       fi
9031       ;;
9032     pw32*)
9033       # pw32 DLLs use 'pw' prefix rather than 'lib'
9034       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9035       ;;
9036     esac
9037     ;;
9038
9039   *)
9040     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9041     ;;
9042   esac
9043   dynamic_linker='Win32 ld.exe'
9044   # FIXME: first we should search . and the directory the executable is in
9045   shlibpath_var=PATH
9046   ;;
9047
9048 darwin* | rhapsody*)
9049   dynamic_linker="$host_os dyld"
9050   version_type=darwin
9051   need_lib_prefix=no
9052   need_version=no
9053   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9054   soname_spec='${libname}${release}${major}$shared_ext'
9055   shlibpath_overrides_runpath=yes
9056   shlibpath_var=DYLD_LIBRARY_PATH
9057   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9058   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9059   if test "$GCC" = yes; then
9060     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9061   else
9062     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9063   fi
9064   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9065   ;;
9066
9067 dgux*)
9068   version_type=linux
9069   need_lib_prefix=no
9070   need_version=no
9071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9072   soname_spec='${libname}${release}${shared_ext}$major'
9073   shlibpath_var=LD_LIBRARY_PATH
9074   ;;
9075
9076 freebsd1*)
9077   dynamic_linker=no
9078   ;;
9079
9080 freebsd* | dragonfly*)
9081   # DragonFly does not have aout.  When/if they implement a new
9082   # versioning mechanism, adjust this.
9083   if test -x /usr/bin/objformat; then
9084     objformat=`/usr/bin/objformat`
9085   else
9086     case $host_os in
9087     freebsd[123]*) objformat=aout ;;
9088     *) objformat=elf ;;
9089     esac
9090   fi
9091   version_type=freebsd-$objformat
9092   case $version_type in
9093     freebsd-elf*)
9094       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9095       need_version=no
9096       need_lib_prefix=no
9097       ;;
9098     freebsd-*)
9099       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9100       need_version=yes
9101       ;;
9102   esac
9103   shlibpath_var=LD_LIBRARY_PATH
9104   case $host_os in
9105   freebsd2*)
9106     shlibpath_overrides_runpath=yes
9107     ;;
9108   freebsd3.[01]* | freebsdelf3.[01]*)
9109     shlibpath_overrides_runpath=yes
9110     hardcode_into_libs=yes
9111     ;;
9112   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9113   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9114     shlibpath_overrides_runpath=no
9115     hardcode_into_libs=yes
9116     ;;
9117   freebsd*) # from 4.6 on
9118     shlibpath_overrides_runpath=yes
9119     hardcode_into_libs=yes
9120     ;;
9121   esac
9122   ;;
9123
9124 gnu*)
9125   version_type=linux
9126   need_lib_prefix=no
9127   need_version=no
9128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9129   soname_spec='${libname}${release}${shared_ext}$major'
9130   shlibpath_var=LD_LIBRARY_PATH
9131   hardcode_into_libs=yes
9132   ;;
9133
9134 hpux9* | hpux10* | hpux11*)
9135   # Give a soname corresponding to the major version so that dld.sl refuses to
9136   # link against other versions.
9137   version_type=sunos
9138   need_lib_prefix=no
9139   need_version=no
9140   case $host_cpu in
9141   ia64*)
9142     shrext_cmds='.so'
9143     hardcode_into_libs=yes
9144     dynamic_linker="$host_os dld.so"
9145     shlibpath_var=LD_LIBRARY_PATH
9146     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9147     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9148     soname_spec='${libname}${release}${shared_ext}$major'
9149     if test "X$HPUX_IA64_MODE" = X32; then
9150       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9151     else
9152       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9153     fi
9154     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9155     ;;
9156    hppa*64*)
9157      shrext_cmds='.sl'
9158      hardcode_into_libs=yes
9159      dynamic_linker="$host_os dld.sl"
9160      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9161      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9162      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9163      soname_spec='${libname}${release}${shared_ext}$major'
9164      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9165      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9166      ;;
9167    *)
9168     shrext_cmds='.sl'
9169     dynamic_linker="$host_os dld.sl"
9170     shlibpath_var=SHLIB_PATH
9171     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9172     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9173     soname_spec='${libname}${release}${shared_ext}$major'
9174     ;;
9175   esac
9176   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9177   postinstall_cmds='chmod 555 $lib'
9178   ;;
9179
9180 interix3*)
9181   version_type=linux
9182   need_lib_prefix=no
9183   need_version=no
9184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9185   soname_spec='${libname}${release}${shared_ext}$major'
9186   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9187   shlibpath_var=LD_LIBRARY_PATH
9188   shlibpath_overrides_runpath=no
9189   hardcode_into_libs=yes
9190   ;;
9191
9192 irix5* | irix6* | nonstopux*)
9193   case $host_os in
9194     nonstopux*) version_type=nonstopux ;;
9195     *)
9196         if test "$lt_cv_prog_gnu_ld" = yes; then
9197                 version_type=linux
9198         else
9199                 version_type=irix
9200         fi ;;
9201   esac
9202   need_lib_prefix=no
9203   need_version=no
9204   soname_spec='${libname}${release}${shared_ext}$major'
9205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9206   case $host_os in
9207   irix5* | nonstopux*)
9208     libsuff= shlibsuff=
9209     ;;
9210   *)
9211     case $LD in # libtool.m4 will add one of these switches to LD
9212     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9213       libsuff= shlibsuff= libmagic=32-bit;;
9214     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9215       libsuff=32 shlibsuff=N32 libmagic=N32;;
9216     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9217       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9218     *) libsuff= shlibsuff= libmagic=never-match;;
9219     esac
9220     ;;
9221   esac
9222   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9223   shlibpath_overrides_runpath=no
9224   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9225   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9226   hardcode_into_libs=yes
9227   ;;
9228
9229 # No shared lib support for Linux oldld, aout, or coff.
9230 linux*oldld* | linux*aout* | linux*coff*)
9231   dynamic_linker=no
9232   ;;
9233
9234 # This must be Linux ELF.
9235 linux* | k*bsd*-gnu)
9236   version_type=linux
9237   need_lib_prefix=no
9238   need_version=no
9239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9240   soname_spec='${libname}${release}${shared_ext}$major'
9241   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9242   shlibpath_var=LD_LIBRARY_PATH
9243   shlibpath_overrides_runpath=no
9244   # This implies no fast_install, which is unacceptable.
9245   # Some rework will be needed to allow for fast_install
9246   # before this can be enabled.
9247   hardcode_into_libs=yes
9248
9249   # Append ld.so.conf contents to the search path
9250   if test -f /etc/ld.so.conf; then
9251     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9252     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9253   fi
9254
9255   # We used to test for /lib/ld.so.1 and disable shared libraries on
9256   # powerpc, because MkLinux only supported shared libraries with the
9257   # GNU dynamic linker.  Since this was broken with cross compilers,
9258   # most powerpc-linux boxes support dynamic linking these days and
9259   # people can always --disable-shared, the test was removed, and we
9260   # assume the GNU/Linux dynamic linker is in use.
9261   dynamic_linker='GNU/Linux ld.so'
9262   ;;
9263
9264 netbsdelf*-gnu)
9265   version_type=linux
9266   need_lib_prefix=no
9267   need_version=no
9268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9269   soname_spec='${libname}${release}${shared_ext}$major'
9270   shlibpath_var=LD_LIBRARY_PATH
9271   shlibpath_overrides_runpath=no
9272   hardcode_into_libs=yes
9273   dynamic_linker='NetBSD ld.elf_so'
9274   ;;
9275
9276 netbsd*)
9277   version_type=sunos
9278   need_lib_prefix=no
9279   need_version=no
9280   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9281     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9282     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9283     dynamic_linker='NetBSD (a.out) ld.so'
9284   else
9285     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9286     soname_spec='${libname}${release}${shared_ext}$major'
9287     dynamic_linker='NetBSD ld.elf_so'
9288   fi
9289   shlibpath_var=LD_LIBRARY_PATH
9290   shlibpath_overrides_runpath=yes
9291   hardcode_into_libs=yes
9292   ;;
9293
9294 newsos6)
9295   version_type=linux
9296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9297   shlibpath_var=LD_LIBRARY_PATH
9298   shlibpath_overrides_runpath=yes
9299   ;;
9300
9301 nto-qnx*)
9302   version_type=linux
9303   need_lib_prefix=no
9304   need_version=no
9305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9306   soname_spec='${libname}${release}${shared_ext}$major'
9307   shlibpath_var=LD_LIBRARY_PATH
9308   shlibpath_overrides_runpath=yes
9309   ;;
9310
9311 openbsd*)
9312   version_type=sunos
9313   sys_lib_dlsearch_path_spec="/usr/lib"
9314   need_lib_prefix=no
9315   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9316   case $host_os in
9317     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9318     *)                         need_version=no  ;;
9319   esac
9320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9321   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9322   shlibpath_var=LD_LIBRARY_PATH
9323   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9324     case $host_os in
9325       openbsd2.[89] | openbsd2.[89].*)
9326         shlibpath_overrides_runpath=no
9327         ;;
9328       *)
9329         shlibpath_overrides_runpath=yes
9330         ;;
9331       esac
9332   else
9333     shlibpath_overrides_runpath=yes
9334   fi
9335   ;;
9336
9337 os2*)
9338   libname_spec='$name'
9339   shrext_cmds=".dll"
9340   need_lib_prefix=no
9341   library_names_spec='$libname${shared_ext} $libname.a'
9342   dynamic_linker='OS/2 ld.exe'
9343   shlibpath_var=LIBPATH
9344   ;;
9345
9346 osf3* | osf4* | osf5*)
9347   version_type=osf
9348   need_lib_prefix=no
9349   need_version=no
9350   soname_spec='${libname}${release}${shared_ext}$major'
9351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9352   shlibpath_var=LD_LIBRARY_PATH
9353   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9354   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9355   ;;
9356
9357 solaris*)
9358   version_type=linux
9359   need_lib_prefix=no
9360   need_version=no
9361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9362   soname_spec='${libname}${release}${shared_ext}$major'
9363   shlibpath_var=LD_LIBRARY_PATH
9364   shlibpath_overrides_runpath=yes
9365   hardcode_into_libs=yes
9366   # ldd complains unless libraries are executable
9367   postinstall_cmds='chmod +x $lib'
9368   ;;
9369
9370 sunos4*)
9371   version_type=sunos
9372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9373   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9374   shlibpath_var=LD_LIBRARY_PATH
9375   shlibpath_overrides_runpath=yes
9376   if test "$with_gnu_ld" = yes; then
9377     need_lib_prefix=no
9378   fi
9379   need_version=yes
9380   ;;
9381
9382 sysv4 | sysv4.3*)
9383   version_type=linux
9384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9385   soname_spec='${libname}${release}${shared_ext}$major'
9386   shlibpath_var=LD_LIBRARY_PATH
9387   case $host_vendor in
9388     sni)
9389       shlibpath_overrides_runpath=no
9390       need_lib_prefix=no
9391       export_dynamic_flag_spec='${wl}-Blargedynsym'
9392       runpath_var=LD_RUN_PATH
9393       ;;
9394     siemens)
9395       need_lib_prefix=no
9396       ;;
9397     motorola)
9398       need_lib_prefix=no
9399       need_version=no
9400       shlibpath_overrides_runpath=no
9401       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9402       ;;
9403   esac
9404   ;;
9405
9406 sysv4*MP*)
9407   if test -d /usr/nec ;then
9408     version_type=linux
9409     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9410     soname_spec='$libname${shared_ext}.$major'
9411     shlibpath_var=LD_LIBRARY_PATH
9412   fi
9413   ;;
9414
9415 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9416   version_type=freebsd-elf
9417   need_lib_prefix=no
9418   need_version=no
9419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9420   soname_spec='${libname}${release}${shared_ext}$major'
9421   shlibpath_var=LD_LIBRARY_PATH
9422   hardcode_into_libs=yes
9423   if test "$with_gnu_ld" = yes; then
9424     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9425     shlibpath_overrides_runpath=no
9426   else
9427     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9428     shlibpath_overrides_runpath=yes
9429     case $host_os in
9430       sco3.2v5*)
9431         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9432         ;;
9433     esac
9434   fi
9435   sys_lib_dlsearch_path_spec='/usr/lib'
9436   ;;
9437
9438 uts4*)
9439   version_type=linux
9440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9441   soname_spec='${libname}${release}${shared_ext}$major'
9442   shlibpath_var=LD_LIBRARY_PATH
9443   ;;
9444
9445 *)
9446   dynamic_linker=no
9447   ;;
9448 esac
9449 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9450 echo "${ECHO_T}$dynamic_linker" >&6; }
9451 test "$dynamic_linker" = no && can_build_shared=no
9452
9453 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9454 if test "$GCC" = yes; then
9455   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9456 fi
9457
9458 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9459 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9460 hardcode_action=
9461 if test -n "$hardcode_libdir_flag_spec" || \
9462    test -n "$runpath_var" || \
9463    test "X$hardcode_automatic" = "Xyes" ; then
9464
9465   # We can hardcode non-existant directories.
9466   if test "$hardcode_direct" != no &&
9467      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9468      # have to relink, otherwise we might link with an installed library
9469      # when we should be linking with a yet-to-be-installed one
9470      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9471      test "$hardcode_minus_L" != no; then
9472     # Linking always hardcodes the temporary library directory.
9473     hardcode_action=relink
9474   else
9475     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9476     hardcode_action=immediate
9477   fi
9478 else
9479   # We cannot hardcode anything, or else we can only hardcode existing
9480   # directories.
9481   hardcode_action=unsupported
9482 fi
9483 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9484 echo "${ECHO_T}$hardcode_action" >&6; }
9485
9486 if test "$hardcode_action" = relink; then
9487   # Fast installation is not supported
9488   enable_fast_install=no
9489 elif test "$shlibpath_overrides_runpath" = yes ||
9490      test "$enable_shared" = no; then
9491   # Fast installation is not necessary
9492   enable_fast_install=needless
9493 fi
9494
9495 striplib=
9496 old_striplib=
9497 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9498 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9499 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9500   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9501   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9502   { echo "$as_me:$LINENO: result: yes" >&5
9503 echo "${ECHO_T}yes" >&6; }
9504 else
9505 # FIXME - insert some real tests, host_os isn't really good enough
9506   case $host_os in
9507    darwin*)
9508        if test -n "$STRIP" ; then
9509          striplib="$STRIP -x"
9510          { echo "$as_me:$LINENO: result: yes" >&5
9511 echo "${ECHO_T}yes" >&6; }
9512        else
9513   { echo "$as_me:$LINENO: result: no" >&5
9514 echo "${ECHO_T}no" >&6; }
9515 fi
9516        ;;
9517    *)
9518   { echo "$as_me:$LINENO: result: no" >&5
9519 echo "${ECHO_T}no" >&6; }
9520     ;;
9521   esac
9522 fi
9523
9524 if test "x$enable_dlopen" != xyes; then
9525   enable_dlopen=unknown
9526   enable_dlopen_self=unknown
9527   enable_dlopen_self_static=unknown
9528 else
9529   lt_cv_dlopen=no
9530   lt_cv_dlopen_libs=
9531
9532   case $host_os in
9533   beos*)
9534     lt_cv_dlopen="load_add_on"
9535     lt_cv_dlopen_libs=
9536     lt_cv_dlopen_self=yes
9537     ;;
9538
9539   mingw* | pw32*)
9540     lt_cv_dlopen="LoadLibrary"
9541     lt_cv_dlopen_libs=
9542    ;;
9543
9544   cygwin*)
9545     lt_cv_dlopen="dlopen"
9546     lt_cv_dlopen_libs=
9547    ;;
9548
9549   darwin*)
9550   # if libdl is installed we need to link against it
9551     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9552 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9553 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9554   echo $ECHO_N "(cached) $ECHO_C" >&6
9555 else
9556   ac_check_lib_save_LIBS=$LIBS
9557 LIBS="-ldl  $LIBS"
9558 cat >conftest.$ac_ext <<_ACEOF
9559 /* confdefs.h.  */
9560 _ACEOF
9561 cat confdefs.h >>conftest.$ac_ext
9562 cat >>conftest.$ac_ext <<_ACEOF
9563 /* end confdefs.h.  */
9564
9565 /* Override any GCC internal prototype to avoid an error.
9566    Use char because int might match the return type of a GCC
9567    builtin and then its argument prototype would still apply.  */
9568 #ifdef __cplusplus
9569 extern "C"
9570 #endif
9571 char dlopen ();
9572 int
9573 main ()
9574 {
9575 return dlopen ();
9576   ;
9577   return 0;
9578 }
9579 _ACEOF
9580 rm -f conftest.$ac_objext conftest$ac_exeext
9581 if { (ac_try="$ac_link"
9582 case "(($ac_try" in
9583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9584   *) ac_try_echo=$ac_try;;
9585 esac
9586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9587   (eval "$ac_link") 2>conftest.er1
9588   ac_status=$?
9589   grep -v '^ *+' conftest.er1 >conftest.err
9590   rm -f conftest.er1
9591   cat conftest.err >&5
9592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593   (exit $ac_status); } && {
9594          test -z "$ac_c_werror_flag" ||
9595          test ! -s conftest.err
9596        } && test -s conftest$ac_exeext &&
9597        $as_test_x conftest$ac_exeext; then
9598   ac_cv_lib_dl_dlopen=yes
9599 else
9600   echo "$as_me: failed program was:" >&5
9601 sed 's/^/| /' conftest.$ac_ext >&5
9602
9603         ac_cv_lib_dl_dlopen=no
9604 fi
9605
9606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9607       conftest$ac_exeext conftest.$ac_ext
9608 LIBS=$ac_check_lib_save_LIBS
9609 fi
9610 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9611 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9612 if test $ac_cv_lib_dl_dlopen = yes; then
9613   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9614 else
9615
9616     lt_cv_dlopen="dyld"
9617     lt_cv_dlopen_libs=
9618     lt_cv_dlopen_self=yes
9619
9620 fi
9621
9622    ;;
9623
9624   *)
9625     { echo "$as_me:$LINENO: checking for shl_load" >&5
9626 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9627 if test "${ac_cv_func_shl_load+set}" = set; then
9628   echo $ECHO_N "(cached) $ECHO_C" >&6
9629 else
9630   cat >conftest.$ac_ext <<_ACEOF
9631 /* confdefs.h.  */
9632 _ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h.  */
9636 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9637    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9638 #define shl_load innocuous_shl_load
9639
9640 /* System header to define __stub macros and hopefully few prototypes,
9641     which can conflict with char shl_load (); below.
9642     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9643     <limits.h> exists even on freestanding compilers.  */
9644
9645 #ifdef __STDC__
9646 # include <limits.h>
9647 #else
9648 # include <assert.h>
9649 #endif
9650
9651 #undef shl_load
9652
9653 /* Override any GCC internal prototype to avoid an error.
9654    Use char because int might match the return type of a GCC
9655    builtin and then its argument prototype would still apply.  */
9656 #ifdef __cplusplus
9657 extern "C"
9658 #endif
9659 char shl_load ();
9660 /* The GNU C library defines this for functions which it implements
9661     to always fail with ENOSYS.  Some functions are actually named
9662     something starting with __ and the normal name is an alias.  */
9663 #if defined __stub_shl_load || defined __stub___shl_load
9664 choke me
9665 #endif
9666
9667 int
9668 main ()
9669 {
9670 return shl_load ();
9671   ;
9672   return 0;
9673 }
9674 _ACEOF
9675 rm -f conftest.$ac_objext conftest$ac_exeext
9676 if { (ac_try="$ac_link"
9677 case "(($ac_try" in
9678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9679   *) ac_try_echo=$ac_try;;
9680 esac
9681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9682   (eval "$ac_link") 2>conftest.er1
9683   ac_status=$?
9684   grep -v '^ *+' conftest.er1 >conftest.err
9685   rm -f conftest.er1
9686   cat conftest.err >&5
9687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688   (exit $ac_status); } && {
9689          test -z "$ac_c_werror_flag" ||
9690          test ! -s conftest.err
9691        } && test -s conftest$ac_exeext &&
9692        $as_test_x conftest$ac_exeext; then
9693   ac_cv_func_shl_load=yes
9694 else
9695   echo "$as_me: failed program was:" >&5
9696 sed 's/^/| /' conftest.$ac_ext >&5
9697
9698         ac_cv_func_shl_load=no
9699 fi
9700
9701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9702       conftest$ac_exeext conftest.$ac_ext
9703 fi
9704 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9705 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9706 if test $ac_cv_func_shl_load = yes; then
9707   lt_cv_dlopen="shl_load"
9708 else
9709   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9710 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9711 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9712   echo $ECHO_N "(cached) $ECHO_C" >&6
9713 else
9714   ac_check_lib_save_LIBS=$LIBS
9715 LIBS="-ldld  $LIBS"
9716 cat >conftest.$ac_ext <<_ACEOF
9717 /* confdefs.h.  */
9718 _ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h.  */
9722
9723 /* Override any GCC internal prototype to avoid an error.
9724    Use char because int might match the return type of a GCC
9725    builtin and then its argument prototype would still apply.  */
9726 #ifdef __cplusplus
9727 extern "C"
9728 #endif
9729 char shl_load ();
9730 int
9731 main ()
9732 {
9733 return shl_load ();
9734   ;
9735   return 0;
9736 }
9737 _ACEOF
9738 rm -f conftest.$ac_objext conftest$ac_exeext
9739 if { (ac_try="$ac_link"
9740 case "(($ac_try" in
9741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9742   *) ac_try_echo=$ac_try;;
9743 esac
9744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9745   (eval "$ac_link") 2>conftest.er1
9746   ac_status=$?
9747   grep -v '^ *+' conftest.er1 >conftest.err
9748   rm -f conftest.er1
9749   cat conftest.err >&5
9750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751   (exit $ac_status); } && {
9752          test -z "$ac_c_werror_flag" ||
9753          test ! -s conftest.err
9754        } && test -s conftest$ac_exeext &&
9755        $as_test_x conftest$ac_exeext; then
9756   ac_cv_lib_dld_shl_load=yes
9757 else
9758   echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9760
9761         ac_cv_lib_dld_shl_load=no
9762 fi
9763
9764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9765       conftest$ac_exeext conftest.$ac_ext
9766 LIBS=$ac_check_lib_save_LIBS
9767 fi
9768 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9769 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9770 if test $ac_cv_lib_dld_shl_load = yes; then
9771   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9772 else
9773   { echo "$as_me:$LINENO: checking for dlopen" >&5
9774 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9775 if test "${ac_cv_func_dlopen+set}" = set; then
9776   echo $ECHO_N "(cached) $ECHO_C" >&6
9777 else
9778   cat >conftest.$ac_ext <<_ACEOF
9779 /* confdefs.h.  */
9780 _ACEOF
9781 cat confdefs.h >>conftest.$ac_ext
9782 cat >>conftest.$ac_ext <<_ACEOF
9783 /* end confdefs.h.  */
9784 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9785    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9786 #define dlopen innocuous_dlopen
9787
9788 /* System header to define __stub macros and hopefully few prototypes,
9789     which can conflict with char dlopen (); below.
9790     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9791     <limits.h> exists even on freestanding compilers.  */
9792
9793 #ifdef __STDC__
9794 # include <limits.h>
9795 #else
9796 # include <assert.h>
9797 #endif
9798
9799 #undef dlopen
9800
9801 /* Override any GCC internal prototype to avoid an error.
9802    Use char because int might match the return type of a GCC
9803    builtin and then its argument prototype would still apply.  */
9804 #ifdef __cplusplus
9805 extern "C"
9806 #endif
9807 char dlopen ();
9808 /* The GNU C library defines this for functions which it implements
9809     to always fail with ENOSYS.  Some functions are actually named
9810     something starting with __ and the normal name is an alias.  */
9811 #if defined __stub_dlopen || defined __stub___dlopen
9812 choke me
9813 #endif
9814
9815 int
9816 main ()
9817 {
9818 return dlopen ();
9819   ;
9820   return 0;
9821 }
9822 _ACEOF
9823 rm -f conftest.$ac_objext conftest$ac_exeext
9824 if { (ac_try="$ac_link"
9825 case "(($ac_try" in
9826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9827   *) ac_try_echo=$ac_try;;
9828 esac
9829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9830   (eval "$ac_link") 2>conftest.er1
9831   ac_status=$?
9832   grep -v '^ *+' conftest.er1 >conftest.err
9833   rm -f conftest.er1
9834   cat conftest.err >&5
9835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836   (exit $ac_status); } && {
9837          test -z "$ac_c_werror_flag" ||
9838          test ! -s conftest.err
9839        } && test -s conftest$ac_exeext &&
9840        $as_test_x conftest$ac_exeext; then
9841   ac_cv_func_dlopen=yes
9842 else
9843   echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9845
9846         ac_cv_func_dlopen=no
9847 fi
9848
9849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9850       conftest$ac_exeext conftest.$ac_ext
9851 fi
9852 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9853 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9854 if test $ac_cv_func_dlopen = yes; then
9855   lt_cv_dlopen="dlopen"
9856 else
9857   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9858 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9859 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9860   echo $ECHO_N "(cached) $ECHO_C" >&6
9861 else
9862   ac_check_lib_save_LIBS=$LIBS
9863 LIBS="-ldl  $LIBS"
9864 cat >conftest.$ac_ext <<_ACEOF
9865 /* confdefs.h.  */
9866 _ACEOF
9867 cat confdefs.h >>conftest.$ac_ext
9868 cat >>conftest.$ac_ext <<_ACEOF
9869 /* end confdefs.h.  */
9870
9871 /* Override any GCC internal prototype to avoid an error.
9872    Use char because int might match the return type of a GCC
9873    builtin and then its argument prototype would still apply.  */
9874 #ifdef __cplusplus
9875 extern "C"
9876 #endif
9877 char dlopen ();
9878 int
9879 main ()
9880 {
9881 return dlopen ();
9882   ;
9883   return 0;
9884 }
9885 _ACEOF
9886 rm -f conftest.$ac_objext conftest$ac_exeext
9887 if { (ac_try="$ac_link"
9888 case "(($ac_try" in
9889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890   *) ac_try_echo=$ac_try;;
9891 esac
9892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893   (eval "$ac_link") 2>conftest.er1
9894   ac_status=$?
9895   grep -v '^ *+' conftest.er1 >conftest.err
9896   rm -f conftest.er1
9897   cat conftest.err >&5
9898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899   (exit $ac_status); } && {
9900          test -z "$ac_c_werror_flag" ||
9901          test ! -s conftest.err
9902        } && test -s conftest$ac_exeext &&
9903        $as_test_x conftest$ac_exeext; then
9904   ac_cv_lib_dl_dlopen=yes
9905 else
9906   echo "$as_me: failed program was:" >&5
9907 sed 's/^/| /' conftest.$ac_ext >&5
9908
9909         ac_cv_lib_dl_dlopen=no
9910 fi
9911
9912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9913       conftest$ac_exeext conftest.$ac_ext
9914 LIBS=$ac_check_lib_save_LIBS
9915 fi
9916 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9917 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9918 if test $ac_cv_lib_dl_dlopen = yes; then
9919   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9920 else
9921   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9922 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9923 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9924   echo $ECHO_N "(cached) $ECHO_C" >&6
9925 else
9926   ac_check_lib_save_LIBS=$LIBS
9927 LIBS="-lsvld  $LIBS"
9928 cat >conftest.$ac_ext <<_ACEOF
9929 /* confdefs.h.  */
9930 _ACEOF
9931 cat confdefs.h >>conftest.$ac_ext
9932 cat >>conftest.$ac_ext <<_ACEOF
9933 /* end confdefs.h.  */
9934
9935 /* Override any GCC internal prototype to avoid an error.
9936    Use char because int might match the return type of a GCC
9937    builtin and then its argument prototype would still apply.  */
9938 #ifdef __cplusplus
9939 extern "C"
9940 #endif
9941 char dlopen ();
9942 int
9943 main ()
9944 {
9945 return dlopen ();
9946   ;
9947   return 0;
9948 }
9949 _ACEOF
9950 rm -f conftest.$ac_objext conftest$ac_exeext
9951 if { (ac_try="$ac_link"
9952 case "(($ac_try" in
9953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954   *) ac_try_echo=$ac_try;;
9955 esac
9956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957   (eval "$ac_link") 2>conftest.er1
9958   ac_status=$?
9959   grep -v '^ *+' conftest.er1 >conftest.err
9960   rm -f conftest.er1
9961   cat conftest.err >&5
9962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963   (exit $ac_status); } && {
9964          test -z "$ac_c_werror_flag" ||
9965          test ! -s conftest.err
9966        } && test -s conftest$ac_exeext &&
9967        $as_test_x conftest$ac_exeext; then
9968   ac_cv_lib_svld_dlopen=yes
9969 else
9970   echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9972
9973         ac_cv_lib_svld_dlopen=no
9974 fi
9975
9976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9977       conftest$ac_exeext conftest.$ac_ext
9978 LIBS=$ac_check_lib_save_LIBS
9979 fi
9980 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9981 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9982 if test $ac_cv_lib_svld_dlopen = yes; then
9983   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9984 else
9985   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9986 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9987 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9988   echo $ECHO_N "(cached) $ECHO_C" >&6
9989 else
9990   ac_check_lib_save_LIBS=$LIBS
9991 LIBS="-ldld  $LIBS"
9992 cat >conftest.$ac_ext <<_ACEOF
9993 /* confdefs.h.  */
9994 _ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h.  */
9998
9999 /* Override any GCC internal prototype to avoid an error.
10000    Use char because int might match the return type of a GCC
10001    builtin and then its argument prototype would still apply.  */
10002 #ifdef __cplusplus
10003 extern "C"
10004 #endif
10005 char dld_link ();
10006 int
10007 main ()
10008 {
10009 return dld_link ();
10010   ;
10011   return 0;
10012 }
10013 _ACEOF
10014 rm -f conftest.$ac_objext conftest$ac_exeext
10015 if { (ac_try="$ac_link"
10016 case "(($ac_try" in
10017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10018   *) ac_try_echo=$ac_try;;
10019 esac
10020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10021   (eval "$ac_link") 2>conftest.er1
10022   ac_status=$?
10023   grep -v '^ *+' conftest.er1 >conftest.err
10024   rm -f conftest.er1
10025   cat conftest.err >&5
10026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027   (exit $ac_status); } && {
10028          test -z "$ac_c_werror_flag" ||
10029          test ! -s conftest.err
10030        } && test -s conftest$ac_exeext &&
10031        $as_test_x conftest$ac_exeext; then
10032   ac_cv_lib_dld_dld_link=yes
10033 else
10034   echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10036
10037         ac_cv_lib_dld_dld_link=no
10038 fi
10039
10040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10041       conftest$ac_exeext conftest.$ac_ext
10042 LIBS=$ac_check_lib_save_LIBS
10043 fi
10044 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10045 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10046 if test $ac_cv_lib_dld_dld_link = yes; then
10047   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10048 fi
10049
10050
10051 fi
10052
10053
10054 fi
10055
10056
10057 fi
10058
10059
10060 fi
10061
10062
10063 fi
10064
10065     ;;
10066   esac
10067
10068   if test "x$lt_cv_dlopen" != xno; then
10069     enable_dlopen=yes
10070   else
10071     enable_dlopen=no
10072   fi
10073
10074   case $lt_cv_dlopen in
10075   dlopen)
10076     save_CPPFLAGS="$CPPFLAGS"
10077     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10078
10079     save_LDFLAGS="$LDFLAGS"
10080     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10081
10082     save_LIBS="$LIBS"
10083     LIBS="$lt_cv_dlopen_libs $LIBS"
10084
10085     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10086 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10087 if test "${lt_cv_dlopen_self+set}" = set; then
10088   echo $ECHO_N "(cached) $ECHO_C" >&6
10089 else
10090           if test "$cross_compiling" = yes; then :
10091   lt_cv_dlopen_self=cross
10092 else
10093   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10094   lt_status=$lt_dlunknown
10095   cat > conftest.$ac_ext <<EOF
10096 #line 10096 "configure"
10097 #include "confdefs.h"
10098
10099 #if HAVE_DLFCN_H
10100 #include <dlfcn.h>
10101 #endif
10102
10103 #include <stdio.h>
10104
10105 #ifdef RTLD_GLOBAL
10106 #  define LT_DLGLOBAL           RTLD_GLOBAL
10107 #else
10108 #  ifdef DL_GLOBAL
10109 #    define LT_DLGLOBAL         DL_GLOBAL
10110 #  else
10111 #    define LT_DLGLOBAL         0
10112 #  endif
10113 #endif
10114
10115 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10116    find out it does not work in some platform. */
10117 #ifndef LT_DLLAZY_OR_NOW
10118 #  ifdef RTLD_LAZY
10119 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10120 #  else
10121 #    ifdef DL_LAZY
10122 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10123 #    else
10124 #      ifdef RTLD_NOW
10125 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10126 #      else
10127 #        ifdef DL_NOW
10128 #          define LT_DLLAZY_OR_NOW      DL_NOW
10129 #        else
10130 #          define LT_DLLAZY_OR_NOW      0
10131 #        endif
10132 #      endif
10133 #    endif
10134 #  endif
10135 #endif
10136
10137 #ifdef __cplusplus
10138 extern "C" void exit (int);
10139 #endif
10140
10141 void fnord() { int i=42;}
10142 int main ()
10143 {
10144   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10145   int status = $lt_dlunknown;
10146
10147   if (self)
10148     {
10149       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10150       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10151       /* dlclose (self); */
10152     }
10153   else
10154     puts (dlerror ());
10155
10156     exit (status);
10157 }
10158 EOF
10159   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10160   (eval $ac_link) 2>&5
10161   ac_status=$?
10162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10164     (./conftest; exit; ) >&5 2>/dev/null
10165     lt_status=$?
10166     case x$lt_status in
10167       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10168       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10169       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10170     esac
10171   else :
10172     # compilation failed
10173     lt_cv_dlopen_self=no
10174   fi
10175 fi
10176 rm -fr conftest*
10177
10178
10179 fi
10180 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10181 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10182
10183     if test "x$lt_cv_dlopen_self" = xyes; then
10184       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10185       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10186 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10187 if test "${lt_cv_dlopen_self_static+set}" = set; then
10188   echo $ECHO_N "(cached) $ECHO_C" >&6
10189 else
10190           if test "$cross_compiling" = yes; then :
10191   lt_cv_dlopen_self_static=cross
10192 else
10193   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10194   lt_status=$lt_dlunknown
10195   cat > conftest.$ac_ext <<EOF
10196 #line 10196 "configure"
10197 #include "confdefs.h"
10198
10199 #if HAVE_DLFCN_H
10200 #include <dlfcn.h>
10201 #endif
10202
10203 #include <stdio.h>
10204
10205 #ifdef RTLD_GLOBAL
10206 #  define LT_DLGLOBAL           RTLD_GLOBAL
10207 #else
10208 #  ifdef DL_GLOBAL
10209 #    define LT_DLGLOBAL         DL_GLOBAL
10210 #  else
10211 #    define LT_DLGLOBAL         0
10212 #  endif
10213 #endif
10214
10215 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10216    find out it does not work in some platform. */
10217 #ifndef LT_DLLAZY_OR_NOW
10218 #  ifdef RTLD_LAZY
10219 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10220 #  else
10221 #    ifdef DL_LAZY
10222 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10223 #    else
10224 #      ifdef RTLD_NOW
10225 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10226 #      else
10227 #        ifdef DL_NOW
10228 #          define LT_DLLAZY_OR_NOW      DL_NOW
10229 #        else
10230 #          define LT_DLLAZY_OR_NOW      0
10231 #        endif
10232 #      endif
10233 #    endif
10234 #  endif
10235 #endif
10236
10237 #ifdef __cplusplus
10238 extern "C" void exit (int);
10239 #endif
10240
10241 void fnord() { int i=42;}
10242 int main ()
10243 {
10244   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10245   int status = $lt_dlunknown;
10246
10247   if (self)
10248     {
10249       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10250       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10251       /* dlclose (self); */
10252     }
10253   else
10254     puts (dlerror ());
10255
10256     exit (status);
10257 }
10258 EOF
10259   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10260   (eval $ac_link) 2>&5
10261   ac_status=$?
10262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10264     (./conftest; exit; ) >&5 2>/dev/null
10265     lt_status=$?
10266     case x$lt_status in
10267       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10268       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10269       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10270     esac
10271   else :
10272     # compilation failed
10273     lt_cv_dlopen_self_static=no
10274   fi
10275 fi
10276 rm -fr conftest*
10277
10278
10279 fi
10280 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10281 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10282     fi
10283
10284     CPPFLAGS="$save_CPPFLAGS"
10285     LDFLAGS="$save_LDFLAGS"
10286     LIBS="$save_LIBS"
10287     ;;
10288   esac
10289
10290   case $lt_cv_dlopen_self in
10291   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10292   *) enable_dlopen_self=unknown ;;
10293   esac
10294
10295   case $lt_cv_dlopen_self_static in
10296   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10297   *) enable_dlopen_self_static=unknown ;;
10298   esac
10299 fi
10300
10301
10302 # Report which library types will actually be built
10303 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10304 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10305 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10306 echo "${ECHO_T}$can_build_shared" >&6; }
10307
10308 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10309 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10310 test "$can_build_shared" = "no" && enable_shared=no
10311
10312 # On AIX, shared libraries and static libraries use the same namespace, and
10313 # are all built from PIC.
10314 case $host_os in
10315 aix3*)
10316   test "$enable_shared" = yes && enable_static=no
10317   if test -n "$RANLIB"; then
10318     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10319     postinstall_cmds='$RANLIB $lib'
10320   fi
10321   ;;
10322
10323 aix4* | aix5*)
10324   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10325     test "$enable_shared" = yes && enable_static=no
10326   fi
10327     ;;
10328 esac
10329 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10330 echo "${ECHO_T}$enable_shared" >&6; }
10331
10332 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10333 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10334 # Make sure either enable_shared or enable_static is yes.
10335 test "$enable_shared" = yes || enable_static=yes
10336 { echo "$as_me:$LINENO: result: $enable_static" >&5
10337 echo "${ECHO_T}$enable_static" >&6; }
10338
10339 # The else clause should only fire when bootstrapping the
10340 # libtool distribution, otherwise you forgot to ship ltmain.sh
10341 # with your package, and you will get complaints that there are
10342 # no rules to generate ltmain.sh.
10343 if test -f "$ltmain"; then
10344   # See if we are running on zsh, and set the options which allow our commands through
10345   # without removal of \ escapes.
10346   if test -n "${ZSH_VERSION+set}" ; then
10347     setopt NO_GLOB_SUBST
10348   fi
10349   # Now quote all the things that may contain metacharacters while being
10350   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10351   # variables and quote the copies for generation of the libtool script.
10352   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10353     SED SHELL STRIP \
10354     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10355     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10356     deplibs_check_method reload_flag reload_cmds need_locks \
10357     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10358     lt_cv_sys_global_symbol_to_c_name_address \
10359     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10360     old_postinstall_cmds old_postuninstall_cmds \
10361     compiler \
10362     CC \
10363     LD \
10364     lt_prog_compiler_wl \
10365     lt_prog_compiler_pic \
10366     lt_prog_compiler_static \
10367     lt_prog_compiler_no_builtin_flag \
10368     export_dynamic_flag_spec \
10369     thread_safe_flag_spec \
10370     whole_archive_flag_spec \
10371     enable_shared_with_static_runtimes \
10372     old_archive_cmds \
10373     old_archive_from_new_cmds \
10374     predep_objects \
10375     postdep_objects \
10376     predeps \
10377     postdeps \
10378     compiler_lib_search_path \
10379     archive_cmds \
10380     archive_expsym_cmds \
10381     postinstall_cmds \
10382     postuninstall_cmds \
10383     old_archive_from_expsyms_cmds \
10384     allow_undefined_flag \
10385     no_undefined_flag \
10386     export_symbols_cmds \
10387     hardcode_libdir_flag_spec \
10388     hardcode_libdir_flag_spec_ld \
10389     hardcode_libdir_separator \
10390     hardcode_automatic \
10391     module_cmds \
10392     module_expsym_cmds \
10393     lt_cv_prog_compiler_c_o \
10394     exclude_expsyms \
10395     include_expsyms; do
10396
10397     case $var in
10398     old_archive_cmds | \
10399     old_archive_from_new_cmds | \
10400     archive_cmds | \
10401     archive_expsym_cmds | \
10402     module_cmds | \
10403     module_expsym_cmds | \
10404     old_archive_from_expsyms_cmds | \
10405     export_symbols_cmds | \
10406     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10407     postinstall_cmds | postuninstall_cmds | \
10408     old_postinstall_cmds | old_postuninstall_cmds | \
10409     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10410       # Double-quote double-evaled strings.
10411       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10412       ;;
10413     *)
10414       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10415       ;;
10416     esac
10417   done
10418
10419   case $lt_echo in
10420   *'\$0 --fallback-echo"')
10421     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10422     ;;
10423   esac
10424
10425 cfgfile="${ofile}T"
10426   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10427   $rm -f "$cfgfile"
10428   { echo "$as_me:$LINENO: creating $ofile" >&5
10429 echo "$as_me: creating $ofile" >&6;}
10430
10431   cat <<__EOF__ >> "$cfgfile"
10432 #! $SHELL
10433
10434 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10435 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10436 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10437 #
10438 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10439 # Free Software Foundation, Inc.
10440 #
10441 # This file is part of GNU Libtool:
10442 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10443 #
10444 # This program is free software; you can redistribute it and/or modify
10445 # it under the terms of the GNU General Public License as published by
10446 # the Free Software Foundation; either version 2 of the License, or
10447 # (at your option) any later version.
10448 #
10449 # This program is distributed in the hope that it will be useful, but
10450 # WITHOUT ANY WARRANTY; without even the implied warranty of
10451 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10452 # General Public License for more details.
10453 #
10454 # You should have received a copy of the GNU General Public License
10455 # along with this program; if not, write to the Free Software
10456 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10457 #
10458 # As a special exception to the GNU General Public License, if you
10459 # distribute this file as part of a program that contains a
10460 # configuration script generated by Autoconf, you may include it under
10461 # the same distribution terms that you use for the rest of that program.
10462
10463 # A sed program that does not truncate output.
10464 SED=$lt_SED
10465
10466 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10467 Xsed="$SED -e 1s/^X//"
10468
10469 # The HP-UX ksh and POSIX shell print the target directory to stdout
10470 # if CDPATH is set.
10471 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10472
10473 # The names of the tagged configurations supported by this script.
10474 available_tags=
10475
10476 # ### BEGIN LIBTOOL CONFIG
10477
10478 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10479
10480 # Shell to use when invoking shell scripts.
10481 SHELL=$lt_SHELL
10482
10483 # Whether or not to build shared libraries.
10484 build_libtool_libs=$enable_shared
10485
10486 # Whether or not to build static libraries.
10487 build_old_libs=$enable_static
10488
10489 # Whether or not to add -lc for building shared libraries.
10490 build_libtool_need_lc=$archive_cmds_need_lc
10491
10492 # Whether or not to disallow shared libs when runtime libs are static
10493 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10494
10495 # Whether or not to optimize for fast installation.
10496 fast_install=$enable_fast_install
10497
10498 # The host system.
10499 host_alias=$host_alias
10500 host=$host
10501 host_os=$host_os
10502
10503 # The build system.
10504 build_alias=$build_alias
10505 build=$build
10506 build_os=$build_os
10507
10508 # An echo program that does not interpret backslashes.
10509 echo=$lt_echo
10510
10511 # The archiver.
10512 AR=$lt_AR
10513 AR_FLAGS=$lt_AR_FLAGS
10514
10515 # A C compiler.
10516 LTCC=$lt_LTCC
10517
10518 # LTCC compiler flags.
10519 LTCFLAGS=$lt_LTCFLAGS
10520
10521 # A language-specific compiler.
10522 CC=$lt_compiler
10523
10524 # Is the compiler the GNU C compiler?
10525 with_gcc=$GCC
10526
10527 # An ERE matcher.
10528 EGREP=$lt_EGREP
10529
10530 # The linker used to build libraries.
10531 LD=$lt_LD
10532
10533 # Whether we need hard or soft links.
10534 LN_S=$lt_LN_S
10535
10536 # A BSD-compatible nm program.
10537 NM=$lt_NM
10538
10539 # A symbol stripping program
10540 STRIP=$lt_STRIP
10541
10542 # Used to examine libraries when file_magic_cmd begins "file"
10543 MAGIC_CMD=$MAGIC_CMD
10544
10545 # Used on cygwin: DLL creation program.
10546 DLLTOOL="$DLLTOOL"
10547
10548 # Used on cygwin: object dumper.
10549 OBJDUMP="$OBJDUMP"
10550
10551 # Used on cygwin: assembler.
10552 AS="$AS"
10553
10554 # The name of the directory that contains temporary libtool files.
10555 objdir=$objdir
10556
10557 # How to create reloadable object files.
10558 reload_flag=$lt_reload_flag
10559 reload_cmds=$lt_reload_cmds
10560
10561 # How to pass a linker flag through the compiler.
10562 wl=$lt_lt_prog_compiler_wl
10563
10564 # Object file suffix (normally "o").
10565 objext="$ac_objext"
10566
10567 # Old archive suffix (normally "a").
10568 libext="$libext"
10569
10570 # Shared library suffix (normally ".so").
10571 shrext_cmds='$shrext_cmds'
10572
10573 # Executable file suffix (normally "").
10574 exeext="$exeext"
10575
10576 # Additional compiler flags for building library objects.
10577 pic_flag=$lt_lt_prog_compiler_pic
10578 pic_mode=$pic_mode
10579
10580 # What is the maximum length of a command?
10581 max_cmd_len=$lt_cv_sys_max_cmd_len
10582
10583 # Does compiler simultaneously support -c and -o options?
10584 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10585
10586 # Must we lock files when doing compilation?
10587 need_locks=$lt_need_locks
10588
10589 # Do we need the lib prefix for modules?
10590 need_lib_prefix=$need_lib_prefix
10591
10592 # Do we need a version for libraries?
10593 need_version=$need_version
10594
10595 # Whether dlopen is supported.
10596 dlopen_support=$enable_dlopen
10597
10598 # Whether dlopen of programs is supported.
10599 dlopen_self=$enable_dlopen_self
10600
10601 # Whether dlopen of statically linked programs is supported.
10602 dlopen_self_static=$enable_dlopen_self_static
10603
10604 # Compiler flag to prevent dynamic linking.
10605 link_static_flag=$lt_lt_prog_compiler_static
10606
10607 # Compiler flag to turn off builtin functions.
10608 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10609
10610 # Compiler flag to allow reflexive dlopens.
10611 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10612
10613 # Compiler flag to generate shared objects directly from archives.
10614 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10615
10616 # Compiler flag to generate thread-safe objects.
10617 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10618
10619 # Library versioning type.
10620 version_type=$version_type
10621
10622 # Format of library name prefix.
10623 libname_spec=$lt_libname_spec
10624
10625 # List of archive names.  First name is the real one, the rest are links.
10626 # The last name is the one that the linker finds with -lNAME.
10627 library_names_spec=$lt_library_names_spec
10628
10629 # The coded name of the library, if different from the real name.
10630 soname_spec=$lt_soname_spec
10631
10632 # Commands used to build and install an old-style archive.
10633 RANLIB=$lt_RANLIB
10634 old_archive_cmds=$lt_old_archive_cmds
10635 old_postinstall_cmds=$lt_old_postinstall_cmds
10636 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10637
10638 # Create an old-style archive from a shared archive.
10639 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10640
10641 # Create a temporary old-style archive to link instead of a shared archive.
10642 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10643
10644 # Commands used to build and install a shared archive.
10645 archive_cmds=$lt_archive_cmds
10646 archive_expsym_cmds=$lt_archive_expsym_cmds
10647 postinstall_cmds=$lt_postinstall_cmds
10648 postuninstall_cmds=$lt_postuninstall_cmds
10649
10650 # Commands used to build a loadable module (assumed same as above if empty)
10651 module_cmds=$lt_module_cmds
10652 module_expsym_cmds=$lt_module_expsym_cmds
10653
10654 # Commands to strip libraries.
10655 old_striplib=$lt_old_striplib
10656 striplib=$lt_striplib
10657
10658 # Dependencies to place before the objects being linked to create a
10659 # shared library.
10660 predep_objects=$lt_predep_objects
10661
10662 # Dependencies to place after the objects being linked to create a
10663 # shared library.
10664 postdep_objects=$lt_postdep_objects
10665
10666 # Dependencies to place before the objects being linked to create a
10667 # shared library.
10668 predeps=$lt_predeps
10669
10670 # Dependencies to place after the objects being linked to create a
10671 # shared library.
10672 postdeps=$lt_postdeps
10673
10674 # The library search path used internally by the compiler when linking
10675 # a shared library.
10676 compiler_lib_search_path=$lt_compiler_lib_search_path
10677
10678 # Method to check whether dependent libraries are shared objects.
10679 deplibs_check_method=$lt_deplibs_check_method
10680
10681 # Command to use when deplibs_check_method == file_magic.
10682 file_magic_cmd=$lt_file_magic_cmd
10683
10684 # Flag that allows shared libraries with undefined symbols to be built.
10685 allow_undefined_flag=$lt_allow_undefined_flag
10686
10687 # Flag that forces no undefined symbols.
10688 no_undefined_flag=$lt_no_undefined_flag
10689
10690 # Commands used to finish a libtool library installation in a directory.
10691 finish_cmds=$lt_finish_cmds
10692
10693 # Same as above, but a single script fragment to be evaled but not shown.
10694 finish_eval=$lt_finish_eval
10695
10696 # Take the output of nm and produce a listing of raw symbols and C names.
10697 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10698
10699 # Transform the output of nm in a proper C declaration
10700 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10701
10702 # Transform the output of nm in a C name address pair
10703 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10704
10705 # This is the shared library runtime path variable.
10706 runpath_var=$runpath_var
10707
10708 # This is the shared library path variable.
10709 shlibpath_var=$shlibpath_var
10710
10711 # Is shlibpath searched before the hard-coded library search path?
10712 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10713
10714 # How to hardcode a shared library path into an executable.
10715 hardcode_action=$hardcode_action
10716
10717 # Whether we should hardcode library paths into libraries.
10718 hardcode_into_libs=$hardcode_into_libs
10719
10720 # Flag to hardcode \$libdir into a binary during linking.
10721 # This must work even if \$libdir does not exist.
10722 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10723
10724 # If ld is used when linking, flag to hardcode \$libdir into
10725 # a binary during linking. This must work even if \$libdir does
10726 # not exist.
10727 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10728
10729 # Whether we need a single -rpath flag with a separated argument.
10730 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10731
10732 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10733 # resulting binary.
10734 hardcode_direct=$hardcode_direct
10735
10736 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10737 # resulting binary.
10738 hardcode_minus_L=$hardcode_minus_L
10739
10740 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10741 # the resulting binary.
10742 hardcode_shlibpath_var=$hardcode_shlibpath_var
10743
10744 # Set to yes if building a shared library automatically hardcodes DIR into the library
10745 # and all subsequent libraries and executables linked against it.
10746 hardcode_automatic=$hardcode_automatic
10747
10748 # Variables whose values should be saved in libtool wrapper scripts and
10749 # restored at relink time.
10750 variables_saved_for_relink="$variables_saved_for_relink"
10751
10752 # Whether libtool must link a program against all its dependency libraries.
10753 link_all_deplibs=$link_all_deplibs
10754
10755 # Compile-time system search path for libraries
10756 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10757
10758 # Run-time system search path for libraries
10759 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10760
10761 # Fix the shell variable \$srcfile for the compiler.
10762 fix_srcfile_path="$fix_srcfile_path"
10763
10764 # Set to yes if exported symbols are required.
10765 always_export_symbols=$always_export_symbols
10766
10767 # The commands to list exported symbols.
10768 export_symbols_cmds=$lt_export_symbols_cmds
10769
10770 # The commands to extract the exported symbol list from a shared archive.
10771 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10772
10773 # Symbols that should not be listed in the preloaded symbols.
10774 exclude_expsyms=$lt_exclude_expsyms
10775
10776 # Symbols that must always be exported.
10777 include_expsyms=$lt_include_expsyms
10778
10779 # ### END LIBTOOL CONFIG
10780
10781 __EOF__
10782
10783
10784   case $host_os in
10785   aix3*)
10786     cat <<\EOF >> "$cfgfile"
10787
10788 # AIX sometimes has problems with the GCC collect2 program.  For some
10789 # reason, if we set the COLLECT_NAMES environment variable, the problems
10790 # vanish in a puff of smoke.
10791 if test "X${COLLECT_NAMES+set}" != Xset; then
10792   COLLECT_NAMES=
10793   export COLLECT_NAMES
10794 fi
10795 EOF
10796     ;;
10797   esac
10798
10799   # We use sed instead of cat because bash on DJGPP gets confused if
10800   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10801   # text mode, it properly converts lines to CR/LF.  This bash problem
10802   # is reportedly fixed, but why not run on old versions too?
10803   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10804
10805   mv -f "$cfgfile" "$ofile" || \
10806     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10807   chmod +x "$ofile"
10808
10809 else
10810   # If there is no Makefile yet, we rely on a make rule to execute
10811   # `config.status --recheck' to rerun these tests and create the
10812   # libtool script then.
10813   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10814   if test -f "$ltmain_in"; then
10815     test -f Makefile && make "$ltmain"
10816   fi
10817 fi
10818
10819
10820 ac_ext=c
10821 ac_cpp='$CPP $CPPFLAGS'
10822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10825
10826 CC="$lt_save_CC"
10827
10828
10829 # Check whether --with-tags was given.
10830 if test "${with_tags+set}" = set; then
10831   withval=$with_tags; tagnames="$withval"
10832 fi
10833
10834
10835 if test -f "$ltmain" && test -n "$tagnames"; then
10836   if test ! -f "${ofile}"; then
10837     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10838 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10839   fi
10840
10841   if test -z "$LTCC"; then
10842     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10843     if test -z "$LTCC"; then
10844       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10845 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10846     else
10847       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10848 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10849     fi
10850   fi
10851   if test -z "$LTCFLAGS"; then
10852     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10853   fi
10854
10855   # Extract list of available tagged configurations in $ofile.
10856   # Note that this assumes the entire list is on one line.
10857   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10858
10859   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10860   for tagname in $tagnames; do
10861     IFS="$lt_save_ifs"
10862     # Check whether tagname contains only valid characters
10863     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10864     "") ;;
10865     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10866 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10867    { (exit 1); exit 1; }; }
10868         ;;
10869     esac
10870
10871     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10872     then
10873       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10874 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10875    { (exit 1); exit 1; }; }
10876     fi
10877
10878     # Update the list of available tags.
10879     if test -n "$tagname"; then
10880       echo appending configuration tag \"$tagname\" to $ofile
10881
10882       case $tagname in
10883       CXX)
10884         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10885             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10886             (test "X$CXX" != "Xg++"))) ; then
10887           ac_ext=cpp
10888 ac_cpp='$CXXCPP $CPPFLAGS'
10889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10892
10893
10894
10895
10896 archive_cmds_need_lc_CXX=no
10897 allow_undefined_flag_CXX=
10898 always_export_symbols_CXX=no
10899 archive_expsym_cmds_CXX=
10900 export_dynamic_flag_spec_CXX=
10901 hardcode_direct_CXX=no
10902 hardcode_libdir_flag_spec_CXX=
10903 hardcode_libdir_flag_spec_ld_CXX=
10904 hardcode_libdir_separator_CXX=
10905 hardcode_minus_L_CXX=no
10906 hardcode_shlibpath_var_CXX=unsupported
10907 hardcode_automatic_CXX=no
10908 module_cmds_CXX=
10909 module_expsym_cmds_CXX=
10910 link_all_deplibs_CXX=unknown
10911 old_archive_cmds_CXX=$old_archive_cmds
10912 no_undefined_flag_CXX=
10913 whole_archive_flag_spec_CXX=
10914 enable_shared_with_static_runtimes_CXX=no
10915
10916 # Dependencies to place before and after the object being linked:
10917 predep_objects_CXX=
10918 postdep_objects_CXX=
10919 predeps_CXX=
10920 postdeps_CXX=
10921 compiler_lib_search_path_CXX=
10922
10923 # Source file extension for C++ test sources.
10924 ac_ext=cpp
10925
10926 # Object file extension for compiled C++ test sources.
10927 objext=o
10928 objext_CXX=$objext
10929
10930 # Code to be used in simple compile tests
10931 lt_simple_compile_test_code="int some_variable = 0;\n"
10932
10933 # Code to be used in simple link tests
10934 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10935
10936 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10937
10938 # If no C compiler was specified, use CC.
10939 LTCC=${LTCC-"$CC"}
10940
10941 # If no C compiler flags were specified, use CFLAGS.
10942 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10943
10944 # Allow CC to be a program name with arguments.
10945 compiler=$CC
10946
10947
10948 # save warnings/boilerplate of simple test code
10949 ac_outfile=conftest.$ac_objext
10950 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10951 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10952 _lt_compiler_boilerplate=`cat conftest.err`
10953 $rm conftest*
10954
10955 ac_outfile=conftest.$ac_objext
10956 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10957 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10958 _lt_linker_boilerplate=`cat conftest.err`
10959 $rm conftest*
10960
10961
10962 # Allow CC to be a program name with arguments.
10963 lt_save_CC=$CC
10964 lt_save_LD=$LD
10965 lt_save_GCC=$GCC
10966 GCC=$GXX
10967 lt_save_with_gnu_ld=$with_gnu_ld
10968 lt_save_path_LD=$lt_cv_path_LD
10969 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10970   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10971 else
10972   $as_unset lt_cv_prog_gnu_ld
10973 fi
10974 if test -n "${lt_cv_path_LDCXX+set}"; then
10975   lt_cv_path_LD=$lt_cv_path_LDCXX
10976 else
10977   $as_unset lt_cv_path_LD
10978 fi
10979 test -z "${LDCXX+set}" || LD=$LDCXX
10980 CC=${CXX-"c++"}
10981 compiler=$CC
10982 compiler_CXX=$CC
10983 for cc_temp in $compiler""; do
10984   case $cc_temp in
10985     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10986     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10987     \-*) ;;
10988     *) break;;
10989   esac
10990 done
10991 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10992
10993
10994 # We don't want -fno-exception wen compiling C++ code, so set the
10995 # no_builtin_flag separately
10996 if test "$GXX" = yes; then
10997   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10998 else
10999   lt_prog_compiler_no_builtin_flag_CXX=
11000 fi
11001
11002 if test "$GXX" = yes; then
11003   # Set up default GNU C++ configuration
11004
11005
11006 # Check whether --with-gnu-ld was given.
11007 if test "${with_gnu_ld+set}" = set; then
11008   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11009 else
11010   with_gnu_ld=no
11011 fi
11012
11013 ac_prog=ld
11014 if test "$GCC" = yes; then
11015   # Check if gcc -print-prog-name=ld gives a path.
11016   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11017 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11018   case $host in
11019   *-*-mingw*)
11020     # gcc leaves a trailing carriage return which upsets mingw
11021     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11022   *)
11023     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11024   esac
11025   case $ac_prog in
11026     # Accept absolute paths.
11027     [\\/]* | ?:[\\/]*)
11028       re_direlt='/[^/][^/]*/\.\./'
11029       # Canonicalize the pathname of ld
11030       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11031       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11032         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11033       done
11034       test -z "$LD" && LD="$ac_prog"
11035       ;;
11036   "")
11037     # If it fails, then pretend we aren't using GCC.
11038     ac_prog=ld
11039     ;;
11040   *)
11041     # If it is relative, then search for the first ld in PATH.
11042     with_gnu_ld=unknown
11043     ;;
11044   esac
11045 elif test "$with_gnu_ld" = yes; then
11046   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11047 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11048 else
11049   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11050 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11051 fi
11052 if test "${lt_cv_path_LD+set}" = set; then
11053   echo $ECHO_N "(cached) $ECHO_C" >&6
11054 else
11055   if test -z "$LD"; then
11056   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11057   for ac_dir in $PATH; do
11058     IFS="$lt_save_ifs"
11059     test -z "$ac_dir" && ac_dir=.
11060     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11061       lt_cv_path_LD="$ac_dir/$ac_prog"
11062       # Check to see if the program is GNU ld.  I'd rather use --version,
11063       # but apparently some variants of GNU ld only accept -v.
11064       # Break only if it was the GNU/non-GNU ld that we prefer.
11065       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11066       *GNU* | *'with BFD'*)
11067         test "$with_gnu_ld" != no && break
11068         ;;
11069       *)
11070         test "$with_gnu_ld" != yes && break
11071         ;;
11072       esac
11073     fi
11074   done
11075   IFS="$lt_save_ifs"
11076 else
11077   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11078 fi
11079 fi
11080
11081 LD="$lt_cv_path_LD"
11082 if test -n "$LD"; then
11083   { echo "$as_me:$LINENO: result: $LD" >&5
11084 echo "${ECHO_T}$LD" >&6; }
11085 else
11086   { echo "$as_me:$LINENO: result: no" >&5
11087 echo "${ECHO_T}no" >&6; }
11088 fi
11089 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11090 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11091    { (exit 1); exit 1; }; }
11092 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11093 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11094 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11095   echo $ECHO_N "(cached) $ECHO_C" >&6
11096 else
11097   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11098 case `$LD -v 2>&1 </dev/null` in
11099 *GNU* | *'with BFD'*)
11100   lt_cv_prog_gnu_ld=yes
11101   ;;
11102 *)
11103   lt_cv_prog_gnu_ld=no
11104   ;;
11105 esac
11106 fi
11107 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11108 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11109 with_gnu_ld=$lt_cv_prog_gnu_ld
11110
11111
11112
11113   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11114   # archiving commands below assume that GNU ld is being used.
11115   if test "$with_gnu_ld" = yes; then
11116     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11117     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'
11118
11119     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11120     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11121
11122     # If archive_cmds runs LD, not CC, wlarc should be empty
11123     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11124     #     investigate it a little bit more. (MM)
11125     wlarc='${wl}'
11126
11127     # ancient GNU ld didn't support --whole-archive et. al.
11128     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11129         grep 'no-whole-archive' > /dev/null; then
11130       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11131     else
11132       whole_archive_flag_spec_CXX=
11133     fi
11134   else
11135     with_gnu_ld=no
11136     wlarc=
11137
11138     # A generic and very simple default shared library creation
11139     # command for GNU C++ for the case where it uses the native
11140     # linker, instead of GNU ld.  If possible, this setting should
11141     # overridden to take advantage of the native linker features on
11142     # the platform it is being used on.
11143     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11144   fi
11145
11146   # Commands to make compiler produce verbose output that lists
11147   # what "hidden" libraries, object files and flags are used when
11148   # linking a shared library.
11149   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11150
11151 else
11152   GXX=no
11153   with_gnu_ld=no
11154   wlarc=
11155 fi
11156
11157 # PORTME: fill in a description of your system's C++ link characteristics
11158 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11159 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11160 ld_shlibs_CXX=yes
11161 case $host_os in
11162   aix3*)
11163     # FIXME: insert proper C++ library support
11164     ld_shlibs_CXX=no
11165     ;;
11166   aix4* | aix5*)
11167     if test "$host_cpu" = ia64; then
11168       # On IA64, the linker does run time linking by default, so we don't
11169       # have to do anything special.
11170       aix_use_runtimelinking=no
11171       exp_sym_flag='-Bexport'
11172       no_entry_flag=""
11173     else
11174       aix_use_runtimelinking=no
11175
11176       # Test if we are trying to use run time linking or normal
11177       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11178       # need to do runtime linking.
11179       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11180         for ld_flag in $LDFLAGS; do
11181           case $ld_flag in
11182           *-brtl*)
11183             aix_use_runtimelinking=yes
11184             break
11185             ;;
11186           esac
11187         done
11188         ;;
11189       esac
11190
11191       exp_sym_flag='-bexport'
11192       no_entry_flag='-bnoentry'
11193     fi
11194
11195     # When large executables or shared objects are built, AIX ld can
11196     # have problems creating the table of contents.  If linking a library
11197     # or program results in "error TOC overflow" add -mminimal-toc to
11198     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11199     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11200
11201     archive_cmds_CXX=''
11202     hardcode_direct_CXX=yes
11203     hardcode_libdir_separator_CXX=':'
11204     link_all_deplibs_CXX=yes
11205
11206     if test "$GXX" = yes; then
11207       case $host_os in aix4.[012]|aix4.[012].*)
11208       # We only want to do this on AIX 4.2 and lower, the check
11209       # below for broken collect2 doesn't work under 4.3+
11210         collect2name=`${CC} -print-prog-name=collect2`
11211         if test -f "$collect2name" && \
11212            strings "$collect2name" | grep resolve_lib_name >/dev/null
11213         then
11214           # We have reworked collect2
11215           hardcode_direct_CXX=yes
11216         else
11217           # We have old collect2
11218           hardcode_direct_CXX=unsupported
11219           # It fails to find uninstalled libraries when the uninstalled
11220           # path is not listed in the libpath.  Setting hardcode_minus_L
11221           # to unsupported forces relinking
11222           hardcode_minus_L_CXX=yes
11223           hardcode_libdir_flag_spec_CXX='-L$libdir'
11224           hardcode_libdir_separator_CXX=
11225         fi
11226         ;;
11227       esac
11228       shared_flag='-shared'
11229       if test "$aix_use_runtimelinking" = yes; then
11230         shared_flag="$shared_flag "'${wl}-G'
11231       fi
11232     else
11233       # not using gcc
11234       if test "$host_cpu" = ia64; then
11235         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11236         # chokes on -Wl,-G. The following line is correct:
11237         shared_flag='-G'
11238       else
11239         if test "$aix_use_runtimelinking" = yes; then
11240           shared_flag='${wl}-G'
11241         else
11242           shared_flag='${wl}-bM:SRE'
11243         fi
11244       fi
11245     fi
11246
11247     # It seems that -bexpall does not export symbols beginning with
11248     # underscore (_), so it is better to generate a list of symbols to export.
11249     always_export_symbols_CXX=yes
11250     if test "$aix_use_runtimelinking" = yes; then
11251       # Warning - without using the other runtime loading flags (-brtl),
11252       # -berok will link without error, but may produce a broken library.
11253       allow_undefined_flag_CXX='-berok'
11254       # Determine the default libpath from the value encoded in an empty executable.
11255       cat >conftest.$ac_ext <<_ACEOF
11256 /* confdefs.h.  */
11257 _ACEOF
11258 cat confdefs.h >>conftest.$ac_ext
11259 cat >>conftest.$ac_ext <<_ACEOF
11260 /* end confdefs.h.  */
11261
11262 int
11263 main ()
11264 {
11265
11266   ;
11267   return 0;
11268 }
11269 _ACEOF
11270 rm -f conftest.$ac_objext conftest$ac_exeext
11271 if { (ac_try="$ac_link"
11272 case "(($ac_try" in
11273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11274   *) ac_try_echo=$ac_try;;
11275 esac
11276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11277   (eval "$ac_link") 2>conftest.er1
11278   ac_status=$?
11279   grep -v '^ *+' conftest.er1 >conftest.err
11280   rm -f conftest.er1
11281   cat conftest.err >&5
11282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283   (exit $ac_status); } && {
11284          test -z "$ac_cxx_werror_flag" ||
11285          test ! -s conftest.err
11286        } && test -s conftest$ac_exeext &&
11287        $as_test_x conftest$ac_exeext; then
11288
11289 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11290 }'`
11291 # Check for a 64-bit object if we didn't find anything.
11292 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11293 }'`; fi
11294 else
11295   echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.$ac_ext >&5
11297
11298
11299 fi
11300
11301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11302       conftest$ac_exeext conftest.$ac_ext
11303 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11304
11305       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11306
11307       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"
11308      else
11309       if test "$host_cpu" = ia64; then
11310         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11311         allow_undefined_flag_CXX="-z nodefs"
11312         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"
11313       else
11314         # Determine the default libpath from the value encoded in an empty executable.
11315         cat >conftest.$ac_ext <<_ACEOF
11316 /* confdefs.h.  */
11317 _ACEOF
11318 cat confdefs.h >>conftest.$ac_ext
11319 cat >>conftest.$ac_ext <<_ACEOF
11320 /* end confdefs.h.  */
11321
11322 int
11323 main ()
11324 {
11325
11326   ;
11327   return 0;
11328 }
11329 _ACEOF
11330 rm -f conftest.$ac_objext conftest$ac_exeext
11331 if { (ac_try="$ac_link"
11332 case "(($ac_try" in
11333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334   *) ac_try_echo=$ac_try;;
11335 esac
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337   (eval "$ac_link") 2>conftest.er1
11338   ac_status=$?
11339   grep -v '^ *+' conftest.er1 >conftest.err
11340   rm -f conftest.er1
11341   cat conftest.err >&5
11342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343   (exit $ac_status); } && {
11344          test -z "$ac_cxx_werror_flag" ||
11345          test ! -s conftest.err
11346        } && test -s conftest$ac_exeext &&
11347        $as_test_x conftest$ac_exeext; then
11348
11349 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11350 }'`
11351 # Check for a 64-bit object if we didn't find anything.
11352 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11353 }'`; fi
11354 else
11355   echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11357
11358
11359 fi
11360
11361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11362       conftest$ac_exeext conftest.$ac_ext
11363 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11364
11365         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11366         # Warning - without using the other run time loading flags,
11367         # -berok will link without error, but may produce a broken library.
11368         no_undefined_flag_CXX=' ${wl}-bernotok'
11369         allow_undefined_flag_CXX=' ${wl}-berok'
11370         # Exported symbols can be pulled into shared objects from archives
11371         whole_archive_flag_spec_CXX='$convenience'
11372         archive_cmds_need_lc_CXX=yes
11373         # This is similar to how AIX traditionally builds its shared libraries.
11374         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'
11375       fi
11376     fi
11377     ;;
11378
11379   beos*)
11380     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11381       allow_undefined_flag_CXX=unsupported
11382       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11383       # support --undefined.  This deserves some investigation.  FIXME
11384       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11385     else
11386       ld_shlibs_CXX=no
11387     fi
11388     ;;
11389
11390   chorus*)
11391     case $cc_basename in
11392       *)
11393         # FIXME: insert proper C++ library support
11394         ld_shlibs_CXX=no
11395         ;;
11396     esac
11397     ;;
11398
11399   cygwin* | mingw* | pw32*)
11400     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11401     # as there is no search path for DLLs.
11402     hardcode_libdir_flag_spec_CXX='-L$libdir'
11403     allow_undefined_flag_CXX=unsupported
11404     always_export_symbols_CXX=no
11405     enable_shared_with_static_runtimes_CXX=yes
11406
11407     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11408       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'
11409       # If the export-symbols file already is a .def file (1st line
11410       # is EXPORTS), use it as is; otherwise, prepend...
11411       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11412         cp $export_symbols $output_objdir/$soname.def;
11413       else
11414         echo EXPORTS > $output_objdir/$soname.def;
11415         cat $export_symbols >> $output_objdir/$soname.def;
11416       fi~
11417       $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'
11418     else
11419       ld_shlibs_CXX=no
11420     fi
11421   ;;
11422       darwin* | rhapsody*)
11423         case $host_os in
11424         rhapsody* | darwin1.[012])
11425          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11426          ;;
11427        *) # Darwin 1.3 on
11428          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11429            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11430          else
11431            case ${MACOSX_DEPLOYMENT_TARGET} in
11432              10.[012])
11433                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11434                ;;
11435              10.*)
11436                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11437                ;;
11438            esac
11439          fi
11440          ;;
11441         esac
11442       archive_cmds_need_lc_CXX=no
11443       hardcode_direct_CXX=no
11444       hardcode_automatic_CXX=yes
11445       hardcode_shlibpath_var_CXX=unsupported
11446       whole_archive_flag_spec_CXX=''
11447       link_all_deplibs_CXX=yes
11448
11449     if test "$GXX" = yes ; then
11450       lt_int_apple_cc_single_mod=no
11451       output_verbose_link_cmd='echo'
11452       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11453        lt_int_apple_cc_single_mod=yes
11454       fi
11455       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11456        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11457       else
11458           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'
11459         fi
11460         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11461         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11462           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11463             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11464           else
11465             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11466           fi
11467             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}'
11468       else
11469       case $cc_basename in
11470         xlc*)
11471          output_verbose_link_cmd='echo'
11472           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11473           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11474           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11475           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11476           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}'
11477           ;;
11478        *)
11479          ld_shlibs_CXX=no
11480           ;;
11481       esac
11482       fi
11483         ;;
11484
11485   dgux*)
11486     case $cc_basename in
11487       ec++*)
11488         # FIXME: insert proper C++ library support
11489         ld_shlibs_CXX=no
11490         ;;
11491       ghcx*)
11492         # Green Hills C++ Compiler
11493         # FIXME: insert proper C++ library support
11494         ld_shlibs_CXX=no
11495         ;;
11496       *)
11497         # FIXME: insert proper C++ library support
11498         ld_shlibs_CXX=no
11499         ;;
11500     esac
11501     ;;
11502   freebsd[12]*)
11503     # C++ shared libraries reported to be fairly broken before switch to ELF
11504     ld_shlibs_CXX=no
11505     ;;
11506   freebsd-elf*)
11507     archive_cmds_need_lc_CXX=no
11508     ;;
11509   freebsd* | dragonfly*)
11510     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11511     # conventions
11512     ld_shlibs_CXX=yes
11513     ;;
11514   gnu*)
11515     ;;
11516   hpux9*)
11517     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11518     hardcode_libdir_separator_CXX=:
11519     export_dynamic_flag_spec_CXX='${wl}-E'
11520     hardcode_direct_CXX=yes
11521     hardcode_minus_L_CXX=yes # Not in the search PATH,
11522                                 # but as the default
11523                                 # location of the library.
11524
11525     case $cc_basename in
11526     CC*)
11527       # FIXME: insert proper C++ library support
11528       ld_shlibs_CXX=no
11529       ;;
11530     aCC*)
11531       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'
11532       # Commands to make compiler produce verbose output that lists
11533       # what "hidden" libraries, object files and flags are used when
11534       # linking a shared library.
11535       #
11536       # There doesn't appear to be a way to prevent this compiler from
11537       # explicitly linking system object files so we need to strip them
11538       # from the output so that they don't get included in the library
11539       # dependencies.
11540       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'
11541       ;;
11542     *)
11543       if test "$GXX" = yes; then
11544         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'
11545       else
11546         # FIXME: insert proper C++ library support
11547         ld_shlibs_CXX=no
11548       fi
11549       ;;
11550     esac
11551     ;;
11552   hpux10*|hpux11*)
11553     if test $with_gnu_ld = no; then
11554       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11555       hardcode_libdir_separator_CXX=:
11556
11557       case $host_cpu in
11558       hppa*64*|ia64*)
11559         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11560         ;;
11561       *)
11562         export_dynamic_flag_spec_CXX='${wl}-E'
11563         ;;
11564       esac
11565     fi
11566     case $host_cpu in
11567     hppa*64*|ia64*)
11568       hardcode_direct_CXX=no
11569       hardcode_shlibpath_var_CXX=no
11570       ;;
11571     *)
11572       hardcode_direct_CXX=yes
11573       hardcode_minus_L_CXX=yes # Not in the search PATH,
11574                                               # but as the default
11575                                               # location of the library.
11576       ;;
11577     esac
11578
11579     case $cc_basename in
11580       CC*)
11581         # FIXME: insert proper C++ library support
11582         ld_shlibs_CXX=no
11583         ;;
11584       aCC*)
11585         case $host_cpu in
11586         hppa*64*)
11587           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11588           ;;
11589         ia64*)
11590           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11591           ;;
11592         *)
11593           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11594           ;;
11595         esac
11596         # Commands to make compiler produce verbose output that lists
11597         # what "hidden" libraries, object files and flags are used when
11598         # linking a shared library.
11599         #
11600         # There doesn't appear to be a way to prevent this compiler from
11601         # explicitly linking system object files so we need to strip them
11602         # from the output so that they don't get included in the library
11603         # dependencies.
11604         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'
11605         ;;
11606       *)
11607         if test "$GXX" = yes; then
11608           if test $with_gnu_ld = no; then
11609             case $host_cpu in
11610             hppa*64*)
11611               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11612               ;;
11613             ia64*)
11614               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11615               ;;
11616             *)
11617               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'
11618               ;;
11619             esac
11620           fi
11621         else
11622           # FIXME: insert proper C++ library support
11623           ld_shlibs_CXX=no
11624         fi
11625         ;;
11626     esac
11627     ;;
11628   interix3*)
11629     hardcode_direct_CXX=no
11630     hardcode_shlibpath_var_CXX=no
11631     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11632     export_dynamic_flag_spec_CXX='${wl}-E'
11633     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11634     # Instead, shared libraries are loaded at an image base (0x10000000 by
11635     # default) and relocated if they conflict, which is a slow very memory
11636     # consuming and fragmenting process.  To avoid this, we pick a random,
11637     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11638     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11639     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'
11640     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'
11641     ;;
11642   irix5* | irix6*)
11643     case $cc_basename in
11644       CC*)
11645         # SGI C++
11646         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'
11647
11648         # Archives containing C++ object files must be created using
11649         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11650         # necessary to make sure instantiated templates are included
11651         # in the archive.
11652         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11653         ;;
11654       *)
11655         if test "$GXX" = yes; then
11656           if test "$with_gnu_ld" = no; then
11657             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'
11658           else
11659             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'
11660           fi
11661         fi
11662         link_all_deplibs_CXX=yes
11663         ;;
11664     esac
11665     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11666     hardcode_libdir_separator_CXX=:
11667     ;;
11668   linux* | k*bsd*-gnu)
11669     case $cc_basename in
11670       KCC*)
11671         # Kuck and Associates, Inc. (KAI) C++ Compiler
11672
11673         # KCC will only create a shared library if the output file
11674         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11675         # to its proper name (with version) after linking.
11676         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'
11677         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'
11678         # Commands to make compiler produce verbose output that lists
11679         # what "hidden" libraries, object files and flags are used when
11680         # linking a shared library.
11681         #
11682         # There doesn't appear to be a way to prevent this compiler from
11683         # explicitly linking system object files so we need to strip them
11684         # from the output so that they don't get included in the library
11685         # dependencies.
11686         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'
11687
11688         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11689         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11690
11691         # Archives containing C++ object files must be created using
11692         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11693         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11694         ;;
11695       icpc*)
11696         # Intel C++
11697         with_gnu_ld=yes
11698         # version 8.0 and above of icpc choke on multiply defined symbols
11699         # if we add $predep_objects and $postdep_objects, however 7.1 and
11700         # earlier do not add the objects themselves.
11701         case `$CC -V 2>&1` in
11702         *"Version 7."*)
11703           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11704           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'
11705           ;;
11706         *)  # Version 8.0 or newer
11707           tmp_idyn=
11708           case $host_cpu in
11709             ia64*) tmp_idyn=' -i_dynamic';;
11710           esac
11711           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11712           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'
11713           ;;
11714         esac
11715         archive_cmds_need_lc_CXX=no
11716         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11717         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11718         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11719         ;;
11720       pgCC*)
11721         # Portland Group C++ compiler
11722         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11723         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'
11724
11725         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11726         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11727         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'
11728         ;;
11729       cxx*)
11730         # Compaq C++
11731         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11732         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'
11733
11734         runpath_var=LD_RUN_PATH
11735         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11736         hardcode_libdir_separator_CXX=:
11737
11738         # Commands to make compiler produce verbose output that lists
11739         # what "hidden" libraries, object files and flags are used when
11740         # linking a shared library.
11741         #
11742         # There doesn't appear to be a way to prevent this compiler from
11743         # explicitly linking system object files so we need to strip them
11744         # from the output so that they don't get included in the library
11745         # dependencies.
11746         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'
11747         ;;
11748     esac
11749     ;;
11750   lynxos*)
11751     # FIXME: insert proper C++ library support
11752     ld_shlibs_CXX=no
11753     ;;
11754   m88k*)
11755     # FIXME: insert proper C++ library support
11756     ld_shlibs_CXX=no
11757     ;;
11758   mvs*)
11759     case $cc_basename in
11760       cxx*)
11761         # FIXME: insert proper C++ library support
11762         ld_shlibs_CXX=no
11763         ;;
11764       *)
11765         # FIXME: insert proper C++ library support
11766         ld_shlibs_CXX=no
11767         ;;
11768     esac
11769     ;;
11770   netbsd* | netbsdelf*-gnu)
11771     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11772       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11773       wlarc=
11774       hardcode_libdir_flag_spec_CXX='-R$libdir'
11775       hardcode_direct_CXX=yes
11776       hardcode_shlibpath_var_CXX=no
11777     fi
11778     # Workaround some broken pre-1.5 toolchains
11779     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11780     ;;
11781   openbsd2*)
11782     # C++ shared libraries are fairly broken
11783     ld_shlibs_CXX=no
11784     ;;
11785   openbsd*)
11786     hardcode_direct_CXX=yes
11787     hardcode_shlibpath_var_CXX=no
11788     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11789     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11790     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11791       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11792       export_dynamic_flag_spec_CXX='${wl}-E'
11793       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11794     fi
11795     output_verbose_link_cmd='echo'
11796     ;;
11797   osf3*)
11798     case $cc_basename in
11799       KCC*)
11800         # Kuck and Associates, Inc. (KAI) C++ Compiler
11801
11802         # KCC will only create a shared library if the output file
11803         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11804         # to its proper name (with version) after linking.
11805         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'
11806
11807         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11808         hardcode_libdir_separator_CXX=:
11809
11810         # Archives containing C++ object files must be created using
11811         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11812         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11813
11814         ;;
11815       RCC*)
11816         # Rational C++ 2.4.1
11817         # FIXME: insert proper C++ library support
11818         ld_shlibs_CXX=no
11819         ;;
11820       cxx*)
11821         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11822         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'
11823
11824         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11825         hardcode_libdir_separator_CXX=:
11826
11827         # Commands to make compiler produce verbose output that lists
11828         # what "hidden" libraries, object files and flags are used when
11829         # linking a shared library.
11830         #
11831         # There doesn't appear to be a way to prevent this compiler from
11832         # explicitly linking system object files so we need to strip them
11833         # from the output so that they don't get included in the library
11834         # dependencies.
11835         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'
11836         ;;
11837       *)
11838         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11839           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11840           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'
11841
11842           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11843           hardcode_libdir_separator_CXX=:
11844
11845           # Commands to make compiler produce verbose output that lists
11846           # what "hidden" libraries, object files and flags are used when
11847           # linking a shared library.
11848           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11849
11850         else
11851           # FIXME: insert proper C++ library support
11852           ld_shlibs_CXX=no
11853         fi
11854         ;;
11855     esac
11856     ;;
11857   osf4* | osf5*)
11858     case $cc_basename in
11859       KCC*)
11860         # Kuck and Associates, Inc. (KAI) C++ Compiler
11861
11862         # KCC will only create a shared library if the output file
11863         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11864         # to its proper name (with version) after linking.
11865         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'
11866
11867         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11868         hardcode_libdir_separator_CXX=:
11869
11870         # Archives containing C++ object files must be created using
11871         # the KAI C++ compiler.
11872         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11873         ;;
11874       RCC*)
11875         # Rational C++ 2.4.1
11876         # FIXME: insert proper C++ library support
11877         ld_shlibs_CXX=no
11878         ;;
11879       cxx*)
11880         allow_undefined_flag_CXX=' -expect_unresolved \*'
11881         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'
11882         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11883           echo "-hidden">> $lib.exp~
11884           $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~
11885           $rm $lib.exp'
11886
11887         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11888         hardcode_libdir_separator_CXX=:
11889
11890         # Commands to make compiler produce verbose output that lists
11891         # what "hidden" libraries, object files and flags are used when
11892         # linking a shared library.
11893         #
11894         # There doesn't appear to be a way to prevent this compiler from
11895         # explicitly linking system object files so we need to strip them
11896         # from the output so that they don't get included in the library
11897         # dependencies.
11898         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'
11899         ;;
11900       *)
11901         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11902           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11903          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'
11904
11905           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11906           hardcode_libdir_separator_CXX=:
11907
11908           # Commands to make compiler produce verbose output that lists
11909           # what "hidden" libraries, object files and flags are used when
11910           # linking a shared library.
11911           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11912
11913         else
11914           # FIXME: insert proper C++ library support
11915           ld_shlibs_CXX=no
11916         fi
11917         ;;
11918     esac
11919     ;;
11920   psos*)
11921     # FIXME: insert proper C++ library support
11922     ld_shlibs_CXX=no
11923     ;;
11924   sunos4*)
11925     case $cc_basename in
11926       CC*)
11927         # Sun C++ 4.x
11928         # FIXME: insert proper C++ library support
11929         ld_shlibs_CXX=no
11930         ;;
11931       lcc*)
11932         # Lucid
11933         # FIXME: insert proper C++ library support
11934         ld_shlibs_CXX=no
11935         ;;
11936       *)
11937         # FIXME: insert proper C++ library support
11938         ld_shlibs_CXX=no
11939         ;;
11940     esac
11941     ;;
11942   solaris*)
11943     case $cc_basename in
11944       CC*)
11945         # Sun C++ 4.2, 5.x and Centerline C++
11946         archive_cmds_need_lc_CXX=yes
11947         no_undefined_flag_CXX=' -zdefs'
11948         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11949         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11950         $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'
11951
11952         hardcode_libdir_flag_spec_CXX='-R$libdir'
11953         hardcode_shlibpath_var_CXX=no
11954         case $host_os in
11955           solaris2.[0-5] | solaris2.[0-5].*) ;;
11956           *)
11957             # The C++ compiler is used as linker so we must use $wl
11958             # flag to pass the commands to the underlying system
11959             # linker. We must also pass each convience library through
11960             # to the system linker between allextract/defaultextract.
11961             # The C++ compiler will combine linker options so we
11962             # cannot just pass the convience library names through
11963             # without $wl.
11964             # Supported since Solaris 2.6 (maybe 2.5.1?)
11965             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11966             ;;
11967         esac
11968         link_all_deplibs_CXX=yes
11969
11970         output_verbose_link_cmd='echo'
11971
11972         # Archives containing C++ object files must be created using
11973         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11974         # necessary to make sure instantiated templates are included
11975         # in the archive.
11976         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11977         ;;
11978       gcx*)
11979         # Green Hills C++ Compiler
11980         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11981
11982         # The C++ compiler must be used to create the archive.
11983         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11984         ;;
11985       *)
11986         # GNU C++ compiler with Solaris linker
11987         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11988           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11989           if $CC --version | grep -v '^2\.7' > /dev/null; then
11990             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11991             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11992                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11993
11994             # Commands to make compiler produce verbose output that lists
11995             # what "hidden" libraries, object files and flags are used when
11996             # linking a shared library.
11997             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11998           else
11999             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12000             # platform.
12001             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12002             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12003                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12004
12005             # Commands to make compiler produce verbose output that lists
12006             # what "hidden" libraries, object files and flags are used when
12007             # linking a shared library.
12008             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12009           fi
12010
12011           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12012         fi
12013         ;;
12014     esac
12015     ;;
12016   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12017     no_undefined_flag_CXX='${wl}-z,text'
12018     archive_cmds_need_lc_CXX=no
12019     hardcode_shlibpath_var_CXX=no
12020     runpath_var='LD_RUN_PATH'
12021
12022     case $cc_basename in
12023       CC*)
12024         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12025         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12026         ;;
12027       *)
12028         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12029         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12030         ;;
12031     esac
12032     ;;
12033   sysv5* | sco3.2v5* | sco5v6*)
12034     # Note: We can NOT use -z defs as we might desire, because we do not
12035     # link with -lc, and that would cause any symbols used from libc to
12036     # always be unresolved, which means just about no library would
12037     # ever link correctly.  If we're not using GNU ld we use -z text
12038     # though, which does catch some bad symbols but isn't as heavy-handed
12039     # as -z defs.
12040     # For security reasons, it is highly recommended that you always
12041     # use absolute paths for naming shared libraries, and exclude the
12042     # DT_RUNPATH tag from executables and libraries.  But doing so
12043     # requires that you compile everything twice, which is a pain.
12044     # So that behaviour is only enabled if SCOABSPATH is set to a
12045     # non-empty value in the environment.  Most likely only useful for
12046     # creating official distributions of packages.
12047     # This is a hack until libtool officially supports absolute path
12048     # names for shared libraries.
12049     no_undefined_flag_CXX='${wl}-z,text'
12050     allow_undefined_flag_CXX='${wl}-z,nodefs'
12051     archive_cmds_need_lc_CXX=no
12052     hardcode_shlibpath_var_CXX=no
12053     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12054     hardcode_libdir_separator_CXX=':'
12055     link_all_deplibs_CXX=yes
12056     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12057     runpath_var='LD_RUN_PATH'
12058
12059     case $cc_basename in
12060       CC*)
12061         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12062         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12063         ;;
12064       *)
12065         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12066         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12067         ;;
12068     esac
12069     ;;
12070   tandem*)
12071     case $cc_basename in
12072       NCC*)
12073         # NonStop-UX NCC 3.20
12074         # FIXME: insert proper C++ library support
12075         ld_shlibs_CXX=no
12076         ;;
12077       *)
12078         # FIXME: insert proper C++ library support
12079         ld_shlibs_CXX=no
12080         ;;
12081     esac
12082     ;;
12083   vxworks*)
12084     # FIXME: insert proper C++ library support
12085     ld_shlibs_CXX=no
12086     ;;
12087   *)
12088     # FIXME: insert proper C++ library support
12089     ld_shlibs_CXX=no
12090     ;;
12091 esac
12092 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12093 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12094 test "$ld_shlibs_CXX" = no && can_build_shared=no
12095
12096 GCC_CXX="$GXX"
12097 LD_CXX="$LD"
12098
12099
12100 cat > conftest.$ac_ext <<EOF
12101 class Foo
12102 {
12103 public:
12104   Foo (void) { a = 0; }
12105 private:
12106   int a;
12107 };
12108 EOF
12109
12110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12111   (eval $ac_compile) 2>&5
12112   ac_status=$?
12113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114   (exit $ac_status); }; then
12115   # Parse the compiler output and extract the necessary
12116   # objects, libraries and library flags.
12117
12118   # Sentinel used to keep track of whether or not we are before
12119   # the conftest object file.
12120   pre_test_object_deps_done=no
12121
12122   # The `*' in the case matches for architectures that use `case' in
12123   # $output_verbose_cmd can trigger glob expansion during the loop
12124   # eval without this substitution.
12125   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12126
12127   for p in `eval $output_verbose_link_cmd`; do
12128     case $p in
12129
12130     -L* | -R* | -l*)
12131        # Some compilers place space between "-{L,R}" and the path.
12132        # Remove the space.
12133        if test $p = "-L" \
12134           || test $p = "-R"; then
12135          prev=$p
12136          continue
12137        else
12138          prev=
12139        fi
12140
12141        if test "$pre_test_object_deps_done" = no; then
12142          case $p in
12143          -L* | -R*)
12144            # Internal compiler library paths should come after those
12145            # provided the user.  The postdeps already come after the
12146            # user supplied libs so there is no need to process them.
12147            if test -z "$compiler_lib_search_path_CXX"; then
12148              compiler_lib_search_path_CXX="${prev}${p}"
12149            else
12150              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12151            fi
12152            ;;
12153          # The "-l" case would never come before the object being
12154          # linked, so don't bother handling this case.
12155          esac
12156        else
12157          if test -z "$postdeps_CXX"; then
12158            postdeps_CXX="${prev}${p}"
12159          else
12160            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12161          fi
12162        fi
12163        ;;
12164
12165     *.$objext)
12166        # This assumes that the test object file only shows up
12167        # once in the compiler output.
12168        if test "$p" = "conftest.$objext"; then
12169          pre_test_object_deps_done=yes
12170          continue
12171        fi
12172
12173        if test "$pre_test_object_deps_done" = no; then
12174          if test -z "$predep_objects_CXX"; then
12175            predep_objects_CXX="$p"
12176          else
12177            predep_objects_CXX="$predep_objects_CXX $p"
12178          fi
12179        else
12180          if test -z "$postdep_objects_CXX"; then
12181            postdep_objects_CXX="$p"
12182          else
12183            postdep_objects_CXX="$postdep_objects_CXX $p"
12184          fi
12185        fi
12186        ;;
12187
12188     *) ;; # Ignore the rest.
12189
12190     esac
12191   done
12192
12193   # Clean up.
12194   rm -f a.out a.exe
12195 else
12196   echo "libtool.m4: error: problem compiling CXX test program"
12197 fi
12198
12199 $rm -f confest.$objext
12200
12201 # PORTME: override above test on systems where it is broken
12202 case $host_os in
12203 interix3*)
12204   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12205   # hack all around it, let's just trust "g++" to DTRT.
12206   predep_objects_CXX=
12207   postdep_objects_CXX=
12208   postdeps_CXX=
12209   ;;
12210
12211 solaris*)
12212   case $cc_basename in
12213   CC*)
12214     # Adding this requires a known-good setup of shared libraries for
12215     # Sun compiler versions before 5.6, else PIC objects from an old
12216     # archive will be linked into the output, leading to subtle bugs.
12217     postdeps_CXX='-lCstd -lCrun'
12218     ;;
12219   esac
12220   ;;
12221 esac
12222
12223
12224 case " $postdeps_CXX " in
12225 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12226 esac
12227
12228 lt_prog_compiler_wl_CXX=
12229 lt_prog_compiler_pic_CXX=
12230 lt_prog_compiler_static_CXX=
12231
12232 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12233 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12234
12235   # C++ specific cases for pic, static, wl, etc.
12236   if test "$GXX" = yes; then
12237     lt_prog_compiler_wl_CXX='-Wl,'
12238     lt_prog_compiler_static_CXX='-static'
12239
12240     case $host_os in
12241     aix*)
12242       # All AIX code is PIC.
12243       if test "$host_cpu" = ia64; then
12244         # AIX 5 now supports IA64 processor
12245         lt_prog_compiler_static_CXX='-Bstatic'
12246       fi
12247       ;;
12248     amigaos*)
12249       # FIXME: we need at least 68020 code to build shared libraries, but
12250       # adding the `-m68020' flag to GCC prevents building anything better,
12251       # like `-m68040'.
12252       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12253       ;;
12254     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12255       # PIC is the default for these OSes.
12256       ;;
12257     mingw* | os2* | pw32*)
12258       # This hack is so that the source file can tell whether it is being
12259       # built for inclusion in a dll (and should export symbols for example).
12260       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12261       ;;
12262     darwin* | rhapsody*)
12263       # PIC is the default on this platform
12264       # Common symbols not allowed in MH_DYLIB files
12265       lt_prog_compiler_pic_CXX='-fno-common'
12266       ;;
12267     *djgpp*)
12268       # DJGPP does not support shared libraries at all
12269       lt_prog_compiler_pic_CXX=
12270       ;;
12271     interix3*)
12272       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12273       # Instead, we relocate shared libraries at runtime.
12274       ;;
12275     sysv4*MP*)
12276       if test -d /usr/nec; then
12277         lt_prog_compiler_pic_CXX=-Kconform_pic
12278       fi
12279       ;;
12280     hpux*)
12281       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12282       # not for PA HP-UX.
12283       case $host_cpu in
12284       hppa*64*|ia64*)
12285         ;;
12286       *)
12287         lt_prog_compiler_pic_CXX='-fPIC'
12288         ;;
12289       esac
12290       ;;
12291     *)
12292       lt_prog_compiler_pic_CXX='-fPIC'
12293       ;;
12294     esac
12295   else
12296     case $host_os in
12297       aix4* | aix5*)
12298         # All AIX code is PIC.
12299         if test "$host_cpu" = ia64; then
12300           # AIX 5 now supports IA64 processor
12301           lt_prog_compiler_static_CXX='-Bstatic'
12302         else
12303           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12304         fi
12305         ;;
12306       chorus*)
12307         case $cc_basename in
12308         cxch68*)
12309           # Green Hills C++ Compiler
12310           # _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"
12311           ;;
12312         esac
12313         ;;
12314        darwin*)
12315          # PIC is the default on this platform
12316          # Common symbols not allowed in MH_DYLIB files
12317          case $cc_basename in
12318            xlc*)
12319            lt_prog_compiler_pic_CXX='-qnocommon'
12320            lt_prog_compiler_wl_CXX='-Wl,'
12321            ;;
12322          esac
12323        ;;
12324       dgux*)
12325         case $cc_basename in
12326           ec++*)
12327             lt_prog_compiler_pic_CXX='-KPIC'
12328             ;;
12329           ghcx*)
12330             # Green Hills C++ Compiler
12331             lt_prog_compiler_pic_CXX='-pic'
12332             ;;
12333           *)
12334             ;;
12335         esac
12336         ;;
12337       freebsd* | dragonfly*)
12338         # FreeBSD uses GNU C++
12339         ;;
12340       hpux9* | hpux10* | hpux11*)
12341         case $cc_basename in
12342           CC*)
12343             lt_prog_compiler_wl_CXX='-Wl,'
12344             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12345             if test "$host_cpu" != ia64; then
12346               lt_prog_compiler_pic_CXX='+Z'
12347             fi
12348             ;;
12349           aCC*)
12350             lt_prog_compiler_wl_CXX='-Wl,'
12351             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12352             case $host_cpu in
12353             hppa*64*|ia64*)
12354               # +Z the default
12355               ;;
12356             *)
12357               lt_prog_compiler_pic_CXX='+Z'
12358               ;;
12359             esac
12360             ;;
12361           *)
12362             ;;
12363         esac
12364         ;;
12365       interix*)
12366         # This is c89, which is MS Visual C++ (no shared libs)
12367         # Anyone wants to do a port?
12368         ;;
12369       irix5* | irix6* | nonstopux*)
12370         case $cc_basename in
12371           CC*)
12372             lt_prog_compiler_wl_CXX='-Wl,'
12373             lt_prog_compiler_static_CXX='-non_shared'
12374             # CC pic flag -KPIC is the default.
12375             ;;
12376           *)
12377             ;;
12378         esac
12379         ;;
12380       linux* | k*bsd*-gnu)
12381         case $cc_basename in
12382           KCC*)
12383             # KAI C++ Compiler
12384             lt_prog_compiler_wl_CXX='--backend -Wl,'
12385             lt_prog_compiler_pic_CXX='-fPIC'
12386             ;;
12387           icpc* | ecpc*)
12388             # Intel C++
12389             lt_prog_compiler_wl_CXX='-Wl,'
12390             lt_prog_compiler_pic_CXX='-KPIC'
12391             lt_prog_compiler_static_CXX='-static'
12392             ;;
12393           pgCC*)
12394             # Portland Group C++ compiler.
12395             lt_prog_compiler_wl_CXX='-Wl,'
12396             lt_prog_compiler_pic_CXX='-fpic'
12397             lt_prog_compiler_static_CXX='-Bstatic'
12398             ;;
12399           cxx*)
12400             # Compaq C++
12401             # Make sure the PIC flag is empty.  It appears that all Alpha
12402             # Linux and Compaq Tru64 Unix objects are PIC.
12403             lt_prog_compiler_pic_CXX=
12404             lt_prog_compiler_static_CXX='-non_shared'
12405             ;;
12406           *)
12407             ;;
12408         esac
12409         ;;
12410       lynxos*)
12411         ;;
12412       m88k*)
12413         ;;
12414       mvs*)
12415         case $cc_basename in
12416           cxx*)
12417             lt_prog_compiler_pic_CXX='-W c,exportall'
12418             ;;
12419           *)
12420             ;;
12421         esac
12422         ;;
12423       netbsd* | netbsdelf*-gnu)
12424         ;;
12425       osf3* | osf4* | osf5*)
12426         case $cc_basename in
12427           KCC*)
12428             lt_prog_compiler_wl_CXX='--backend -Wl,'
12429             ;;
12430           RCC*)
12431             # Rational C++ 2.4.1
12432             lt_prog_compiler_pic_CXX='-pic'
12433             ;;
12434           cxx*)
12435             # Digital/Compaq C++
12436             lt_prog_compiler_wl_CXX='-Wl,'
12437             # Make sure the PIC flag is empty.  It appears that all Alpha
12438             # Linux and Compaq Tru64 Unix objects are PIC.
12439             lt_prog_compiler_pic_CXX=
12440             lt_prog_compiler_static_CXX='-non_shared'
12441             ;;
12442           *)
12443             ;;
12444         esac
12445         ;;
12446       psos*)
12447         ;;
12448       solaris*)
12449         case $cc_basename in
12450           CC*)
12451             # Sun C++ 4.2, 5.x and Centerline C++
12452             lt_prog_compiler_pic_CXX='-KPIC'
12453             lt_prog_compiler_static_CXX='-Bstatic'
12454             lt_prog_compiler_wl_CXX='-Qoption ld '
12455             ;;
12456           gcx*)
12457             # Green Hills C++ Compiler
12458             lt_prog_compiler_pic_CXX='-PIC'
12459             ;;
12460           *)
12461             ;;
12462         esac
12463         ;;
12464       sunos4*)
12465         case $cc_basename in
12466           CC*)
12467             # Sun C++ 4.x
12468             lt_prog_compiler_pic_CXX='-pic'
12469             lt_prog_compiler_static_CXX='-Bstatic'
12470             ;;
12471           lcc*)
12472             # Lucid
12473             lt_prog_compiler_pic_CXX='-pic'
12474             ;;
12475           *)
12476             ;;
12477         esac
12478         ;;
12479       tandem*)
12480         case $cc_basename in
12481           NCC*)
12482             # NonStop-UX NCC 3.20
12483             lt_prog_compiler_pic_CXX='-KPIC'
12484             ;;
12485           *)
12486             ;;
12487         esac
12488         ;;
12489       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12490         case $cc_basename in
12491           CC*)
12492             lt_prog_compiler_wl_CXX='-Wl,'
12493             lt_prog_compiler_pic_CXX='-KPIC'
12494             lt_prog_compiler_static_CXX='-Bstatic'
12495             ;;
12496         esac
12497         ;;
12498       vxworks*)
12499         ;;
12500       *)
12501         lt_prog_compiler_can_build_shared_CXX=no
12502         ;;
12503     esac
12504   fi
12505
12506 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12507 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12508
12509 #
12510 # Check to make sure the PIC flag actually works.
12511 #
12512 if test -n "$lt_prog_compiler_pic_CXX"; then
12513
12514 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12515 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12516 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12517   echo $ECHO_N "(cached) $ECHO_C" >&6
12518 else
12519   lt_prog_compiler_pic_works_CXX=no
12520   ac_outfile=conftest.$ac_objext
12521    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12522    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12523    # Insert the option either (1) after the last *FLAGS variable, or
12524    # (2) before a word containing "conftest.", or (3) at the end.
12525    # Note that $ac_compile itself does not contain backslashes and begins
12526    # with a dollar sign (not a hyphen), so the echo should work correctly.
12527    # The option is referenced via a variable to avoid confusing sed.
12528    lt_compile=`echo "$ac_compile" | $SED \
12529    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12530    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12531    -e 's:$: $lt_compiler_flag:'`
12532    (eval echo "\"\$as_me:12532: $lt_compile\"" >&5)
12533    (eval "$lt_compile" 2>conftest.err)
12534    ac_status=$?
12535    cat conftest.err >&5
12536    echo "$as_me:12536: \$? = $ac_status" >&5
12537    if (exit $ac_status) && test -s "$ac_outfile"; then
12538      # The compiler can only warn and ignore the option if not recognized
12539      # So say no if there are warnings other than the usual output.
12540      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12541      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12542      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12543        lt_prog_compiler_pic_works_CXX=yes
12544      fi
12545    fi
12546    $rm conftest*
12547
12548 fi
12549 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12550 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12551
12552 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12553     case $lt_prog_compiler_pic_CXX in
12554      "" | " "*) ;;
12555      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12556      esac
12557 else
12558     lt_prog_compiler_pic_CXX=
12559      lt_prog_compiler_can_build_shared_CXX=no
12560 fi
12561
12562 fi
12563 case $host_os in
12564   # For platforms which do not support PIC, -DPIC is meaningless:
12565   *djgpp*)
12566     lt_prog_compiler_pic_CXX=
12567     ;;
12568   *)
12569     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12570     ;;
12571 esac
12572
12573 #
12574 # Check to make sure the static flag actually works.
12575 #
12576 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12577 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12578 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12579 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12580   echo $ECHO_N "(cached) $ECHO_C" >&6
12581 else
12582   lt_prog_compiler_static_works_CXX=no
12583    save_LDFLAGS="$LDFLAGS"
12584    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12585    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12586    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12587      # The linker can only warn and ignore the option if not recognized
12588      # So say no if there are warnings
12589      if test -s conftest.err; then
12590        # Append any errors to the config.log.
12591        cat conftest.err 1>&5
12592        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12593        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12594        if diff conftest.exp conftest.er2 >/dev/null; then
12595          lt_prog_compiler_static_works_CXX=yes
12596        fi
12597      else
12598        lt_prog_compiler_static_works_CXX=yes
12599      fi
12600    fi
12601    $rm conftest*
12602    LDFLAGS="$save_LDFLAGS"
12603
12604 fi
12605 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12606 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12607
12608 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12609     :
12610 else
12611     lt_prog_compiler_static_CXX=
12612 fi
12613
12614
12615 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12616 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12617 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12618   echo $ECHO_N "(cached) $ECHO_C" >&6
12619 else
12620   lt_cv_prog_compiler_c_o_CXX=no
12621    $rm -r conftest 2>/dev/null
12622    mkdir conftest
12623    cd conftest
12624    mkdir out
12625    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12626
12627    lt_compiler_flag="-o out/conftest2.$ac_objext"
12628    # Insert the option either (1) after the last *FLAGS variable, or
12629    # (2) before a word containing "conftest.", or (3) at the end.
12630    # Note that $ac_compile itself does not contain backslashes and begins
12631    # with a dollar sign (not a hyphen), so the echo should work correctly.
12632    lt_compile=`echo "$ac_compile" | $SED \
12633    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12634    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12635    -e 's:$: $lt_compiler_flag:'`
12636    (eval echo "\"\$as_me:12636: $lt_compile\"" >&5)
12637    (eval "$lt_compile" 2>out/conftest.err)
12638    ac_status=$?
12639    cat out/conftest.err >&5
12640    echo "$as_me:12640: \$? = $ac_status" >&5
12641    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12642    then
12643      # The compiler can only warn and ignore the option if not recognized
12644      # So say no if there are warnings
12645      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12646      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12647      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12648        lt_cv_prog_compiler_c_o_CXX=yes
12649      fi
12650    fi
12651    chmod u+w . 2>&5
12652    $rm conftest*
12653    # SGI C++ compiler will create directory out/ii_files/ for
12654    # template instantiation
12655    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12656    $rm out/* && rmdir out
12657    cd ..
12658    rmdir conftest
12659    $rm conftest*
12660
12661 fi
12662 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12663 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12664
12665
12666 hard_links="nottested"
12667 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12668   # do not overwrite the value of need_locks provided by the user
12669   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12670 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12671   hard_links=yes
12672   $rm conftest*
12673   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12674   touch conftest.a
12675   ln conftest.a conftest.b 2>&5 || hard_links=no
12676   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12677   { echo "$as_me:$LINENO: result: $hard_links" >&5
12678 echo "${ECHO_T}$hard_links" >&6; }
12679   if test "$hard_links" = no; then
12680     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12681 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12682     need_locks=warn
12683   fi
12684 else
12685   need_locks=no
12686 fi
12687
12688 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12689 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12690
12691   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12692   case $host_os in
12693   aix4* | aix5*)
12694     # If we're using GNU nm, then we don't want the "-C" option.
12695     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12696     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12697       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'
12698     else
12699       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'
12700     fi
12701     ;;
12702   pw32*)
12703     export_symbols_cmds_CXX="$ltdll_cmds"
12704   ;;
12705   cygwin* | mingw*)
12706     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'
12707   ;;
12708   linux* | k*bsd*-gnu)
12709     link_all_deplibs_CXX=no
12710   ;;
12711   *)
12712     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12713   ;;
12714   esac
12715
12716 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12717 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12718 test "$ld_shlibs_CXX" = no && can_build_shared=no
12719
12720 #
12721 # Do we need to explicitly link libc?
12722 #
12723 case "x$archive_cmds_need_lc_CXX" in
12724 x|xyes)
12725   # Assume -lc should be added
12726   archive_cmds_need_lc_CXX=yes
12727
12728   if test "$enable_shared" = yes && test "$GCC" = yes; then
12729     case $archive_cmds_CXX in
12730     *'~'*)
12731       # FIXME: we may have to deal with multi-command sequences.
12732       ;;
12733     '$CC '*)
12734       # Test whether the compiler implicitly links with -lc since on some
12735       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12736       # to ld, don't add -lc before -lgcc.
12737       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12738 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12739       $rm conftest*
12740       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12741
12742       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12743   (eval $ac_compile) 2>&5
12744   ac_status=$?
12745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746   (exit $ac_status); } 2>conftest.err; then
12747         soname=conftest
12748         lib=conftest
12749         libobjs=conftest.$ac_objext
12750         deplibs=
12751         wl=$lt_prog_compiler_wl_CXX
12752         pic_flag=$lt_prog_compiler_pic_CXX
12753         compiler_flags=-v
12754         linker_flags=-v
12755         verstring=
12756         output_objdir=.
12757         libname=conftest
12758         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12759         allow_undefined_flag_CXX=
12760         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12761   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12762   ac_status=$?
12763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764   (exit $ac_status); }
12765         then
12766           archive_cmds_need_lc_CXX=no
12767         else
12768           archive_cmds_need_lc_CXX=yes
12769         fi
12770         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12771       else
12772         cat conftest.err 1>&5
12773       fi
12774       $rm conftest*
12775       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12776 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12777       ;;
12778     esac
12779   fi
12780   ;;
12781 esac
12782
12783 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12784 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12785 library_names_spec=
12786 libname_spec='lib$name'
12787 soname_spec=
12788 shrext_cmds=".so"
12789 postinstall_cmds=
12790 postuninstall_cmds=
12791 finish_cmds=
12792 finish_eval=
12793 shlibpath_var=
12794 shlibpath_overrides_runpath=unknown
12795 version_type=none
12796 dynamic_linker="$host_os ld.so"
12797 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12798 if test "$GCC" = yes; then
12799   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12800   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12801     # if the path contains ";" then we assume it to be the separator
12802     # otherwise default to the standard path separator (i.e. ":") - it is
12803     # assumed that no part of a normal pathname contains ";" but that should
12804     # okay in the real world where ";" in dirpaths is itself problematic.
12805     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12806   else
12807     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12808   fi
12809 else
12810   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12811 fi
12812 need_lib_prefix=unknown
12813 hardcode_into_libs=no
12814
12815 # when you set need_version to no, make sure it does not cause -set_version
12816 # flags to be left without arguments
12817 need_version=unknown
12818
12819 case $host_os in
12820 aix3*)
12821   version_type=linux
12822   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12823   shlibpath_var=LIBPATH
12824
12825   # AIX 3 has no versioning support, so we append a major version to the name.
12826   soname_spec='${libname}${release}${shared_ext}$major'
12827   ;;
12828
12829 aix4* | aix5*)
12830   version_type=linux
12831   need_lib_prefix=no
12832   need_version=no
12833   hardcode_into_libs=yes
12834   if test "$host_cpu" = ia64; then
12835     # AIX 5 supports IA64
12836     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12837     shlibpath_var=LD_LIBRARY_PATH
12838   else
12839     # With GCC up to 2.95.x, collect2 would create an import file
12840     # for dependence libraries.  The import file would start with
12841     # the line `#! .'.  This would cause the generated library to
12842     # depend on `.', always an invalid library.  This was fixed in
12843     # development snapshots of GCC prior to 3.0.
12844     case $host_os in
12845       aix4 | aix4.[01] | aix4.[01].*)
12846       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12847            echo ' yes '
12848            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12849         :
12850       else
12851         can_build_shared=no
12852       fi
12853       ;;
12854     esac
12855     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12856     # soname into executable. Probably we can add versioning support to
12857     # collect2, so additional links can be useful in future.
12858     if test "$aix_use_runtimelinking" = yes; then
12859       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12860       # instead of lib<name>.a to let people know that these are not
12861       # typical AIX shared libraries.
12862       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12863     else
12864       # We preserve .a as extension for shared libraries through AIX4.2
12865       # and later when we are not doing run time linking.
12866       library_names_spec='${libname}${release}.a $libname.a'
12867       soname_spec='${libname}${release}${shared_ext}$major'
12868     fi
12869     shlibpath_var=LIBPATH
12870   fi
12871   ;;
12872
12873 amigaos*)
12874   library_names_spec='$libname.ixlibrary $libname.a'
12875   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12876   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'
12877   ;;
12878
12879 beos*)
12880   library_names_spec='${libname}${shared_ext}'
12881   dynamic_linker="$host_os ld.so"
12882   shlibpath_var=LIBRARY_PATH
12883   ;;
12884
12885 bsdi[45]*)
12886   version_type=linux
12887   need_version=no
12888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12889   soname_spec='${libname}${release}${shared_ext}$major'
12890   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12891   shlibpath_var=LD_LIBRARY_PATH
12892   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12893   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12894   # the default ld.so.conf also contains /usr/contrib/lib and
12895   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12896   # libtool to hard-code these into programs
12897   ;;
12898
12899 cygwin* | mingw* | pw32*)
12900   version_type=windows
12901   shrext_cmds=".dll"
12902   need_version=no
12903   need_lib_prefix=no
12904
12905   case $GCC,$host_os in
12906   yes,cygwin* | yes,mingw* | yes,pw32*)
12907     library_names_spec='$libname.dll.a'
12908     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12909     postinstall_cmds='base_file=`basename \${file}`~
12910       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12911       dldir=$destdir/`dirname \$dlpath`~
12912       test -d \$dldir || mkdir -p \$dldir~
12913       $install_prog $dir/$dlname \$dldir/$dlname~
12914       chmod a+x \$dldir/$dlname'
12915     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12916       dlpath=$dir/\$dldll~
12917        $rm \$dlpath'
12918     shlibpath_overrides_runpath=yes
12919
12920     case $host_os in
12921     cygwin*)
12922       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12923       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12924       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12925       ;;
12926     mingw*)
12927       # MinGW DLLs use traditional 'lib' prefix
12928       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12929       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12930       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12931         # It is most probably a Windows format PATH printed by
12932         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12933         # path with ; separators, and with drive letters. We can handle the
12934         # drive letters (cygwin fileutils understands them), so leave them,
12935         # especially as we might pass files found there to a mingw objdump,
12936         # which wouldn't understand a cygwinified path. Ahh.
12937         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12938       else
12939         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12940       fi
12941       ;;
12942     pw32*)
12943       # pw32 DLLs use 'pw' prefix rather than 'lib'
12944       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12945       ;;
12946     esac
12947     ;;
12948
12949   *)
12950     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12951     ;;
12952   esac
12953   dynamic_linker='Win32 ld.exe'
12954   # FIXME: first we should search . and the directory the executable is in
12955   shlibpath_var=PATH
12956   ;;
12957
12958 darwin* | rhapsody*)
12959   dynamic_linker="$host_os dyld"
12960   version_type=darwin
12961   need_lib_prefix=no
12962   need_version=no
12963   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12964   soname_spec='${libname}${release}${major}$shared_ext'
12965   shlibpath_overrides_runpath=yes
12966   shlibpath_var=DYLD_LIBRARY_PATH
12967   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12968   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12969   if test "$GCC" = yes; then
12970     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12971   else
12972     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12973   fi
12974   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12975   ;;
12976
12977 dgux*)
12978   version_type=linux
12979   need_lib_prefix=no
12980   need_version=no
12981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12982   soname_spec='${libname}${release}${shared_ext}$major'
12983   shlibpath_var=LD_LIBRARY_PATH
12984   ;;
12985
12986 freebsd1*)
12987   dynamic_linker=no
12988   ;;
12989
12990 freebsd* | dragonfly*)
12991   # DragonFly does not have aout.  When/if they implement a new
12992   # versioning mechanism, adjust this.
12993   if test -x /usr/bin/objformat; then
12994     objformat=`/usr/bin/objformat`
12995   else
12996     case $host_os in
12997     freebsd[123]*) objformat=aout ;;
12998     *) objformat=elf ;;
12999     esac
13000   fi
13001   version_type=freebsd-$objformat
13002   case $version_type in
13003     freebsd-elf*)
13004       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13005       need_version=no
13006       need_lib_prefix=no
13007       ;;
13008     freebsd-*)
13009       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13010       need_version=yes
13011       ;;
13012   esac
13013   shlibpath_var=LD_LIBRARY_PATH
13014   case $host_os in
13015   freebsd2*)
13016     shlibpath_overrides_runpath=yes
13017     ;;
13018   freebsd3.[01]* | freebsdelf3.[01]*)
13019     shlibpath_overrides_runpath=yes
13020     hardcode_into_libs=yes
13021     ;;
13022   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13023   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13024     shlibpath_overrides_runpath=no
13025     hardcode_into_libs=yes
13026     ;;
13027   freebsd*) # from 4.6 on
13028     shlibpath_overrides_runpath=yes
13029     hardcode_into_libs=yes
13030     ;;
13031   esac
13032   ;;
13033
13034 gnu*)
13035   version_type=linux
13036   need_lib_prefix=no
13037   need_version=no
13038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13039   soname_spec='${libname}${release}${shared_ext}$major'
13040   shlibpath_var=LD_LIBRARY_PATH
13041   hardcode_into_libs=yes
13042   ;;
13043
13044 hpux9* | hpux10* | hpux11*)
13045   # Give a soname corresponding to the major version so that dld.sl refuses to
13046   # link against other versions.
13047   version_type=sunos
13048   need_lib_prefix=no
13049   need_version=no
13050   case $host_cpu in
13051   ia64*)
13052     shrext_cmds='.so'
13053     hardcode_into_libs=yes
13054     dynamic_linker="$host_os dld.so"
13055     shlibpath_var=LD_LIBRARY_PATH
13056     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13057     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13058     soname_spec='${libname}${release}${shared_ext}$major'
13059     if test "X$HPUX_IA64_MODE" = X32; then
13060       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13061     else
13062       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13063     fi
13064     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13065     ;;
13066    hppa*64*)
13067      shrext_cmds='.sl'
13068      hardcode_into_libs=yes
13069      dynamic_linker="$host_os dld.sl"
13070      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13071      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13072      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13073      soname_spec='${libname}${release}${shared_ext}$major'
13074      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13075      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13076      ;;
13077    *)
13078     shrext_cmds='.sl'
13079     dynamic_linker="$host_os dld.sl"
13080     shlibpath_var=SHLIB_PATH
13081     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13082     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13083     soname_spec='${libname}${release}${shared_ext}$major'
13084     ;;
13085   esac
13086   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13087   postinstall_cmds='chmod 555 $lib'
13088   ;;
13089
13090 interix3*)
13091   version_type=linux
13092   need_lib_prefix=no
13093   need_version=no
13094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13095   soname_spec='${libname}${release}${shared_ext}$major'
13096   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13097   shlibpath_var=LD_LIBRARY_PATH
13098   shlibpath_overrides_runpath=no
13099   hardcode_into_libs=yes
13100   ;;
13101
13102 irix5* | irix6* | nonstopux*)
13103   case $host_os in
13104     nonstopux*) version_type=nonstopux ;;
13105     *)
13106         if test "$lt_cv_prog_gnu_ld" = yes; then
13107                 version_type=linux
13108         else
13109                 version_type=irix
13110         fi ;;
13111   esac
13112   need_lib_prefix=no
13113   need_version=no
13114   soname_spec='${libname}${release}${shared_ext}$major'
13115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13116   case $host_os in
13117   irix5* | nonstopux*)
13118     libsuff= shlibsuff=
13119     ;;
13120   *)
13121     case $LD in # libtool.m4 will add one of these switches to LD
13122     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13123       libsuff= shlibsuff= libmagic=32-bit;;
13124     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13125       libsuff=32 shlibsuff=N32 libmagic=N32;;
13126     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13127       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13128     *) libsuff= shlibsuff= libmagic=never-match;;
13129     esac
13130     ;;
13131   esac
13132   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13133   shlibpath_overrides_runpath=no
13134   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13135   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13136   hardcode_into_libs=yes
13137   ;;
13138
13139 # No shared lib support for Linux oldld, aout, or coff.
13140 linux*oldld* | linux*aout* | linux*coff*)
13141   dynamic_linker=no
13142   ;;
13143
13144 # This must be Linux ELF.
13145 linux* | k*bsd*-gnu)
13146   version_type=linux
13147   need_lib_prefix=no
13148   need_version=no
13149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13150   soname_spec='${libname}${release}${shared_ext}$major'
13151   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13152   shlibpath_var=LD_LIBRARY_PATH
13153   shlibpath_overrides_runpath=no
13154   # This implies no fast_install, which is unacceptable.
13155   # Some rework will be needed to allow for fast_install
13156   # before this can be enabled.
13157   hardcode_into_libs=yes
13158
13159   # Append ld.so.conf contents to the search path
13160   if test -f /etc/ld.so.conf; then
13161     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13162     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13163   fi
13164
13165   # We used to test for /lib/ld.so.1 and disable shared libraries on
13166   # powerpc, because MkLinux only supported shared libraries with the
13167   # GNU dynamic linker.  Since this was broken with cross compilers,
13168   # most powerpc-linux boxes support dynamic linking these days and
13169   # people can always --disable-shared, the test was removed, and we
13170   # assume the GNU/Linux dynamic linker is in use.
13171   dynamic_linker='GNU/Linux ld.so'
13172   ;;
13173
13174 netbsdelf*-gnu)
13175   version_type=linux
13176   need_lib_prefix=no
13177   need_version=no
13178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13179   soname_spec='${libname}${release}${shared_ext}$major'
13180   shlibpath_var=LD_LIBRARY_PATH
13181   shlibpath_overrides_runpath=no
13182   hardcode_into_libs=yes
13183   dynamic_linker='NetBSD ld.elf_so'
13184   ;;
13185
13186 netbsd*)
13187   version_type=sunos
13188   need_lib_prefix=no
13189   need_version=no
13190   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13191     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13192     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13193     dynamic_linker='NetBSD (a.out) ld.so'
13194   else
13195     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13196     soname_spec='${libname}${release}${shared_ext}$major'
13197     dynamic_linker='NetBSD ld.elf_so'
13198   fi
13199   shlibpath_var=LD_LIBRARY_PATH
13200   shlibpath_overrides_runpath=yes
13201   hardcode_into_libs=yes
13202   ;;
13203
13204 newsos6)
13205   version_type=linux
13206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13207   shlibpath_var=LD_LIBRARY_PATH
13208   shlibpath_overrides_runpath=yes
13209   ;;
13210
13211 nto-qnx*)
13212   version_type=linux
13213   need_lib_prefix=no
13214   need_version=no
13215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13216   soname_spec='${libname}${release}${shared_ext}$major'
13217   shlibpath_var=LD_LIBRARY_PATH
13218   shlibpath_overrides_runpath=yes
13219   ;;
13220
13221 openbsd*)
13222   version_type=sunos
13223   sys_lib_dlsearch_path_spec="/usr/lib"
13224   need_lib_prefix=no
13225   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13226   case $host_os in
13227     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13228     *)                         need_version=no  ;;
13229   esac
13230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13231   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13232   shlibpath_var=LD_LIBRARY_PATH
13233   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13234     case $host_os in
13235       openbsd2.[89] | openbsd2.[89].*)
13236         shlibpath_overrides_runpath=no
13237         ;;
13238       *)
13239         shlibpath_overrides_runpath=yes
13240         ;;
13241       esac
13242   else
13243     shlibpath_overrides_runpath=yes
13244   fi
13245   ;;
13246
13247 os2*)
13248   libname_spec='$name'
13249   shrext_cmds=".dll"
13250   need_lib_prefix=no
13251   library_names_spec='$libname${shared_ext} $libname.a'
13252   dynamic_linker='OS/2 ld.exe'
13253   shlibpath_var=LIBPATH
13254   ;;
13255
13256 osf3* | osf4* | osf5*)
13257   version_type=osf
13258   need_lib_prefix=no
13259   need_version=no
13260   soname_spec='${libname}${release}${shared_ext}$major'
13261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13262   shlibpath_var=LD_LIBRARY_PATH
13263   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13264   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13265   ;;
13266
13267 solaris*)
13268   version_type=linux
13269   need_lib_prefix=no
13270   need_version=no
13271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13272   soname_spec='${libname}${release}${shared_ext}$major'
13273   shlibpath_var=LD_LIBRARY_PATH
13274   shlibpath_overrides_runpath=yes
13275   hardcode_into_libs=yes
13276   # ldd complains unless libraries are executable
13277   postinstall_cmds='chmod +x $lib'
13278   ;;
13279
13280 sunos4*)
13281   version_type=sunos
13282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13283   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13284   shlibpath_var=LD_LIBRARY_PATH
13285   shlibpath_overrides_runpath=yes
13286   if test "$with_gnu_ld" = yes; then
13287     need_lib_prefix=no
13288   fi
13289   need_version=yes
13290   ;;
13291
13292 sysv4 | sysv4.3*)
13293   version_type=linux
13294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13295   soname_spec='${libname}${release}${shared_ext}$major'
13296   shlibpath_var=LD_LIBRARY_PATH
13297   case $host_vendor in
13298     sni)
13299       shlibpath_overrides_runpath=no
13300       need_lib_prefix=no
13301       export_dynamic_flag_spec='${wl}-Blargedynsym'
13302       runpath_var=LD_RUN_PATH
13303       ;;
13304     siemens)
13305       need_lib_prefix=no
13306       ;;
13307     motorola)
13308       need_lib_prefix=no
13309       need_version=no
13310       shlibpath_overrides_runpath=no
13311       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13312       ;;
13313   esac
13314   ;;
13315
13316 sysv4*MP*)
13317   if test -d /usr/nec ;then
13318     version_type=linux
13319     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13320     soname_spec='$libname${shared_ext}.$major'
13321     shlibpath_var=LD_LIBRARY_PATH
13322   fi
13323   ;;
13324
13325 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13326   version_type=freebsd-elf
13327   need_lib_prefix=no
13328   need_version=no
13329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13330   soname_spec='${libname}${release}${shared_ext}$major'
13331   shlibpath_var=LD_LIBRARY_PATH
13332   hardcode_into_libs=yes
13333   if test "$with_gnu_ld" = yes; then
13334     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13335     shlibpath_overrides_runpath=no
13336   else
13337     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13338     shlibpath_overrides_runpath=yes
13339     case $host_os in
13340       sco3.2v5*)
13341         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13342         ;;
13343     esac
13344   fi
13345   sys_lib_dlsearch_path_spec='/usr/lib'
13346   ;;
13347
13348 uts4*)
13349   version_type=linux
13350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13351   soname_spec='${libname}${release}${shared_ext}$major'
13352   shlibpath_var=LD_LIBRARY_PATH
13353   ;;
13354
13355 *)
13356   dynamic_linker=no
13357   ;;
13358 esac
13359 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13360 echo "${ECHO_T}$dynamic_linker" >&6; }
13361 test "$dynamic_linker" = no && can_build_shared=no
13362
13363 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13364 if test "$GCC" = yes; then
13365   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13366 fi
13367
13368 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13369 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13370 hardcode_action_CXX=
13371 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13372    test -n "$runpath_var_CXX" || \
13373    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13374
13375   # We can hardcode non-existant directories.
13376   if test "$hardcode_direct_CXX" != no &&
13377      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13378      # have to relink, otherwise we might link with an installed library
13379      # when we should be linking with a yet-to-be-installed one
13380      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13381      test "$hardcode_minus_L_CXX" != no; then
13382     # Linking always hardcodes the temporary library directory.
13383     hardcode_action_CXX=relink
13384   else
13385     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13386     hardcode_action_CXX=immediate
13387   fi
13388 else
13389   # We cannot hardcode anything, or else we can only hardcode existing
13390   # directories.
13391   hardcode_action_CXX=unsupported
13392 fi
13393 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13394 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13395
13396 if test "$hardcode_action_CXX" = relink; then
13397   # Fast installation is not supported
13398   enable_fast_install=no
13399 elif test "$shlibpath_overrides_runpath" = yes ||
13400      test "$enable_shared" = no; then
13401   # Fast installation is not necessary
13402   enable_fast_install=needless
13403 fi
13404
13405
13406 # The else clause should only fire when bootstrapping the
13407 # libtool distribution, otherwise you forgot to ship ltmain.sh
13408 # with your package, and you will get complaints that there are
13409 # no rules to generate ltmain.sh.
13410 if test -f "$ltmain"; then
13411   # See if we are running on zsh, and set the options which allow our commands through
13412   # without removal of \ escapes.
13413   if test -n "${ZSH_VERSION+set}" ; then
13414     setopt NO_GLOB_SUBST
13415   fi
13416   # Now quote all the things that may contain metacharacters while being
13417   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13418   # variables and quote the copies for generation of the libtool script.
13419   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13420     SED SHELL STRIP \
13421     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13422     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13423     deplibs_check_method reload_flag reload_cmds need_locks \
13424     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13425     lt_cv_sys_global_symbol_to_c_name_address \
13426     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13427     old_postinstall_cmds old_postuninstall_cmds \
13428     compiler_CXX \
13429     CC_CXX \
13430     LD_CXX \
13431     lt_prog_compiler_wl_CXX \
13432     lt_prog_compiler_pic_CXX \
13433     lt_prog_compiler_static_CXX \
13434     lt_prog_compiler_no_builtin_flag_CXX \
13435     export_dynamic_flag_spec_CXX \
13436     thread_safe_flag_spec_CXX \
13437     whole_archive_flag_spec_CXX \
13438     enable_shared_with_static_runtimes_CXX \
13439     old_archive_cmds_CXX \
13440     old_archive_from_new_cmds_CXX \
13441     predep_objects_CXX \
13442     postdep_objects_CXX \
13443     predeps_CXX \
13444     postdeps_CXX \
13445     compiler_lib_search_path_CXX \
13446     archive_cmds_CXX \
13447     archive_expsym_cmds_CXX \
13448     postinstall_cmds_CXX \
13449     postuninstall_cmds_CXX \
13450     old_archive_from_expsyms_cmds_CXX \
13451     allow_undefined_flag_CXX \
13452     no_undefined_flag_CXX \
13453     export_symbols_cmds_CXX \
13454     hardcode_libdir_flag_spec_CXX \
13455     hardcode_libdir_flag_spec_ld_CXX \
13456     hardcode_libdir_separator_CXX \
13457     hardcode_automatic_CXX \
13458     module_cmds_CXX \
13459     module_expsym_cmds_CXX \
13460     lt_cv_prog_compiler_c_o_CXX \
13461     exclude_expsyms_CXX \
13462     include_expsyms_CXX; do
13463
13464     case $var in
13465     old_archive_cmds_CXX | \
13466     old_archive_from_new_cmds_CXX | \
13467     archive_cmds_CXX | \
13468     archive_expsym_cmds_CXX | \
13469     module_cmds_CXX | \
13470     module_expsym_cmds_CXX | \
13471     old_archive_from_expsyms_cmds_CXX | \
13472     export_symbols_cmds_CXX | \
13473     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13474     postinstall_cmds | postuninstall_cmds | \
13475     old_postinstall_cmds | old_postuninstall_cmds | \
13476     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13477       # Double-quote double-evaled strings.
13478       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13479       ;;
13480     *)
13481       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13482       ;;
13483     esac
13484   done
13485
13486   case $lt_echo in
13487   *'\$0 --fallback-echo"')
13488     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13489     ;;
13490   esac
13491
13492 cfgfile="$ofile"
13493
13494   cat <<__EOF__ >> "$cfgfile"
13495 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13496
13497 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13498
13499 # Shell to use when invoking shell scripts.
13500 SHELL=$lt_SHELL
13501
13502 # Whether or not to build shared libraries.
13503 build_libtool_libs=$enable_shared
13504
13505 # Whether or not to build static libraries.
13506 build_old_libs=$enable_static
13507
13508 # Whether or not to add -lc for building shared libraries.
13509 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13510
13511 # Whether or not to disallow shared libs when runtime libs are static
13512 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13513
13514 # Whether or not to optimize for fast installation.
13515 fast_install=$enable_fast_install
13516
13517 # The host system.
13518 host_alias=$host_alias
13519 host=$host
13520 host_os=$host_os
13521
13522 # The build system.
13523 build_alias=$build_alias
13524 build=$build
13525 build_os=$build_os
13526
13527 # An echo program that does not interpret backslashes.
13528 echo=$lt_echo
13529
13530 # The archiver.
13531 AR=$lt_AR
13532 AR_FLAGS=$lt_AR_FLAGS
13533
13534 # A C compiler.
13535 LTCC=$lt_LTCC
13536
13537 # LTCC compiler flags.
13538 LTCFLAGS=$lt_LTCFLAGS
13539
13540 # A language-specific compiler.
13541 CC=$lt_compiler_CXX
13542
13543 # Is the compiler the GNU C compiler?
13544 with_gcc=$GCC_CXX
13545
13546 # An ERE matcher.
13547 EGREP=$lt_EGREP
13548
13549 # The linker used to build libraries.
13550 LD=$lt_LD_CXX
13551
13552 # Whether we need hard or soft links.
13553 LN_S=$lt_LN_S
13554
13555 # A BSD-compatible nm program.
13556 NM=$lt_NM
13557
13558 # A symbol stripping program
13559 STRIP=$lt_STRIP
13560
13561 # Used to examine libraries when file_magic_cmd begins "file"
13562 MAGIC_CMD=$MAGIC_CMD
13563
13564 # Used on cygwin: DLL creation program.
13565 DLLTOOL="$DLLTOOL"
13566
13567 # Used on cygwin: object dumper.
13568 OBJDUMP="$OBJDUMP"
13569
13570 # Used on cygwin: assembler.
13571 AS="$AS"
13572
13573 # The name of the directory that contains temporary libtool files.
13574 objdir=$objdir
13575
13576 # How to create reloadable object files.
13577 reload_flag=$lt_reload_flag
13578 reload_cmds=$lt_reload_cmds
13579
13580 # How to pass a linker flag through the compiler.
13581 wl=$lt_lt_prog_compiler_wl_CXX
13582
13583 # Object file suffix (normally "o").
13584 objext="$ac_objext"
13585
13586 # Old archive suffix (normally "a").
13587 libext="$libext"
13588
13589 # Shared library suffix (normally ".so").
13590 shrext_cmds='$shrext_cmds'
13591
13592 # Executable file suffix (normally "").
13593 exeext="$exeext"
13594
13595 # Additional compiler flags for building library objects.
13596 pic_flag=$lt_lt_prog_compiler_pic_CXX
13597 pic_mode=$pic_mode
13598
13599 # What is the maximum length of a command?
13600 max_cmd_len=$lt_cv_sys_max_cmd_len
13601
13602 # Does compiler simultaneously support -c and -o options?
13603 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13604
13605 # Must we lock files when doing compilation?
13606 need_locks=$lt_need_locks
13607
13608 # Do we need the lib prefix for modules?
13609 need_lib_prefix=$need_lib_prefix
13610
13611 # Do we need a version for libraries?
13612 need_version=$need_version
13613
13614 # Whether dlopen is supported.
13615 dlopen_support=$enable_dlopen
13616
13617 # Whether dlopen of programs is supported.
13618 dlopen_self=$enable_dlopen_self
13619
13620 # Whether dlopen of statically linked programs is supported.
13621 dlopen_self_static=$enable_dlopen_self_static
13622
13623 # Compiler flag to prevent dynamic linking.
13624 link_static_flag=$lt_lt_prog_compiler_static_CXX
13625
13626 # Compiler flag to turn off builtin functions.
13627 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13628
13629 # Compiler flag to allow reflexive dlopens.
13630 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13631
13632 # Compiler flag to generate shared objects directly from archives.
13633 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13634
13635 # Compiler flag to generate thread-safe objects.
13636 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13637
13638 # Library versioning type.
13639 version_type=$version_type
13640
13641 # Format of library name prefix.
13642 libname_spec=$lt_libname_spec
13643
13644 # List of archive names.  First name is the real one, the rest are links.
13645 # The last name is the one that the linker finds with -lNAME.
13646 library_names_spec=$lt_library_names_spec
13647
13648 # The coded name of the library, if different from the real name.
13649 soname_spec=$lt_soname_spec
13650
13651 # Commands used to build and install an old-style archive.
13652 RANLIB=$lt_RANLIB
13653 old_archive_cmds=$lt_old_archive_cmds_CXX
13654 old_postinstall_cmds=$lt_old_postinstall_cmds
13655 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13656
13657 # Create an old-style archive from a shared archive.
13658 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13659
13660 # Create a temporary old-style archive to link instead of a shared archive.
13661 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13662
13663 # Commands used to build and install a shared archive.
13664 archive_cmds=$lt_archive_cmds_CXX
13665 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13666 postinstall_cmds=$lt_postinstall_cmds
13667 postuninstall_cmds=$lt_postuninstall_cmds
13668
13669 # Commands used to build a loadable module (assumed same as above if empty)
13670 module_cmds=$lt_module_cmds_CXX
13671 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13672
13673 # Commands to strip libraries.
13674 old_striplib=$lt_old_striplib
13675 striplib=$lt_striplib
13676
13677 # Dependencies to place before the objects being linked to create a
13678 # shared library.
13679 predep_objects=$lt_predep_objects_CXX
13680
13681 # Dependencies to place after the objects being linked to create a
13682 # shared library.
13683 postdep_objects=$lt_postdep_objects_CXX
13684
13685 # Dependencies to place before the objects being linked to create a
13686 # shared library.
13687 predeps=$lt_predeps_CXX
13688
13689 # Dependencies to place after the objects being linked to create a
13690 # shared library.
13691 postdeps=$lt_postdeps_CXX
13692
13693 # The library search path used internally by the compiler when linking
13694 # a shared library.
13695 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13696
13697 # Method to check whether dependent libraries are shared objects.
13698 deplibs_check_method=$lt_deplibs_check_method
13699
13700 # Command to use when deplibs_check_method == file_magic.
13701 file_magic_cmd=$lt_file_magic_cmd
13702
13703 # Flag that allows shared libraries with undefined symbols to be built.
13704 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13705
13706 # Flag that forces no undefined symbols.
13707 no_undefined_flag=$lt_no_undefined_flag_CXX
13708
13709 # Commands used to finish a libtool library installation in a directory.
13710 finish_cmds=$lt_finish_cmds
13711
13712 # Same as above, but a single script fragment to be evaled but not shown.
13713 finish_eval=$lt_finish_eval
13714
13715 # Take the output of nm and produce a listing of raw symbols and C names.
13716 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13717
13718 # Transform the output of nm in a proper C declaration
13719 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13720
13721 # Transform the output of nm in a C name address pair
13722 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13723
13724 # This is the shared library runtime path variable.
13725 runpath_var=$runpath_var
13726
13727 # This is the shared library path variable.
13728 shlibpath_var=$shlibpath_var
13729
13730 # Is shlibpath searched before the hard-coded library search path?
13731 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13732
13733 # How to hardcode a shared library path into an executable.
13734 hardcode_action=$hardcode_action_CXX
13735
13736 # Whether we should hardcode library paths into libraries.
13737 hardcode_into_libs=$hardcode_into_libs
13738
13739 # Flag to hardcode \$libdir into a binary during linking.
13740 # This must work even if \$libdir does not exist.
13741 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13742
13743 # If ld is used when linking, flag to hardcode \$libdir into
13744 # a binary during linking. This must work even if \$libdir does
13745 # not exist.
13746 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13747
13748 # Whether we need a single -rpath flag with a separated argument.
13749 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13750
13751 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13752 # resulting binary.
13753 hardcode_direct=$hardcode_direct_CXX
13754
13755 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13756 # resulting binary.
13757 hardcode_minus_L=$hardcode_minus_L_CXX
13758
13759 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13760 # the resulting binary.
13761 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13762
13763 # Set to yes if building a shared library automatically hardcodes DIR into the library
13764 # and all subsequent libraries and executables linked against it.
13765 hardcode_automatic=$hardcode_automatic_CXX
13766
13767 # Variables whose values should be saved in libtool wrapper scripts and
13768 # restored at relink time.
13769 variables_saved_for_relink="$variables_saved_for_relink"
13770
13771 # Whether libtool must link a program against all its dependency libraries.
13772 link_all_deplibs=$link_all_deplibs_CXX
13773
13774 # Compile-time system search path for libraries
13775 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13776
13777 # Run-time system search path for libraries
13778 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13779
13780 # Fix the shell variable \$srcfile for the compiler.
13781 fix_srcfile_path="$fix_srcfile_path_CXX"
13782
13783 # Set to yes if exported symbols are required.
13784 always_export_symbols=$always_export_symbols_CXX
13785
13786 # The commands to list exported symbols.
13787 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13788
13789 # The commands to extract the exported symbol list from a shared archive.
13790 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13791
13792 # Symbols that should not be listed in the preloaded symbols.
13793 exclude_expsyms=$lt_exclude_expsyms_CXX
13794
13795 # Symbols that must always be exported.
13796 include_expsyms=$lt_include_expsyms_CXX
13797
13798 # ### END LIBTOOL TAG CONFIG: $tagname
13799
13800 __EOF__
13801
13802
13803 else
13804   # If there is no Makefile yet, we rely on a make rule to execute
13805   # `config.status --recheck' to rerun these tests and create the
13806   # libtool script then.
13807   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13808   if test -f "$ltmain_in"; then
13809     test -f Makefile && make "$ltmain"
13810   fi
13811 fi
13812
13813
13814 ac_ext=c
13815 ac_cpp='$CPP $CPPFLAGS'
13816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13819
13820 CC=$lt_save_CC
13821 LDCXX=$LD
13822 LD=$lt_save_LD
13823 GCC=$lt_save_GCC
13824 with_gnu_ldcxx=$with_gnu_ld
13825 with_gnu_ld=$lt_save_with_gnu_ld
13826 lt_cv_path_LDCXX=$lt_cv_path_LD
13827 lt_cv_path_LD=$lt_save_path_LD
13828 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13829 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13830
13831         else
13832           tagname=""
13833         fi
13834         ;;
13835
13836       F77)
13837         if test -n "$F77" && test "X$F77" != "Xno"; then
13838
13839 ac_ext=f
13840 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13841 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13842 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13843
13844
13845 archive_cmds_need_lc_F77=no
13846 allow_undefined_flag_F77=
13847 always_export_symbols_F77=no
13848 archive_expsym_cmds_F77=
13849 export_dynamic_flag_spec_F77=
13850 hardcode_direct_F77=no
13851 hardcode_libdir_flag_spec_F77=
13852 hardcode_libdir_flag_spec_ld_F77=
13853 hardcode_libdir_separator_F77=
13854 hardcode_minus_L_F77=no
13855 hardcode_automatic_F77=no
13856 module_cmds_F77=
13857 module_expsym_cmds_F77=
13858 link_all_deplibs_F77=unknown
13859 old_archive_cmds_F77=$old_archive_cmds
13860 no_undefined_flag_F77=
13861 whole_archive_flag_spec_F77=
13862 enable_shared_with_static_runtimes_F77=no
13863
13864 # Source file extension for f77 test sources.
13865 ac_ext=f
13866
13867 # Object file extension for compiled f77 test sources.
13868 objext=o
13869 objext_F77=$objext
13870
13871 # Code to be used in simple compile tests
13872 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13873
13874 # Code to be used in simple link tests
13875 lt_simple_link_test_code="      program t\n      end\n"
13876
13877 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13878
13879 # If no C compiler was specified, use CC.
13880 LTCC=${LTCC-"$CC"}
13881
13882 # If no C compiler flags were specified, use CFLAGS.
13883 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13884
13885 # Allow CC to be a program name with arguments.
13886 compiler=$CC
13887
13888
13889 # save warnings/boilerplate of simple test code
13890 ac_outfile=conftest.$ac_objext
13891 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13892 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13893 _lt_compiler_boilerplate=`cat conftest.err`
13894 $rm conftest*
13895
13896 ac_outfile=conftest.$ac_objext
13897 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13898 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13899 _lt_linker_boilerplate=`cat conftest.err`
13900 $rm conftest*
13901
13902
13903 # Allow CC to be a program name with arguments.
13904 lt_save_CC="$CC"
13905 CC=${F77-"f77"}
13906 compiler=$CC
13907 compiler_F77=$CC
13908 for cc_temp in $compiler""; do
13909   case $cc_temp in
13910     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13911     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13912     \-*) ;;
13913     *) break;;
13914   esac
13915 done
13916 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13917
13918
13919 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13920 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13921 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13922 echo "${ECHO_T}$can_build_shared" >&6; }
13923
13924 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13925 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13926 test "$can_build_shared" = "no" && enable_shared=no
13927
13928 # On AIX, shared libraries and static libraries use the same namespace, and
13929 # are all built from PIC.
13930 case $host_os in
13931 aix3*)
13932   test "$enable_shared" = yes && enable_static=no
13933   if test -n "$RANLIB"; then
13934     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13935     postinstall_cmds='$RANLIB $lib'
13936   fi
13937   ;;
13938 aix4* | aix5*)
13939   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13940     test "$enable_shared" = yes && enable_static=no
13941   fi
13942   ;;
13943 esac
13944 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13945 echo "${ECHO_T}$enable_shared" >&6; }
13946
13947 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13948 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13949 # Make sure either enable_shared or enable_static is yes.
13950 test "$enable_shared" = yes || enable_static=yes
13951 { echo "$as_me:$LINENO: result: $enable_static" >&5
13952 echo "${ECHO_T}$enable_static" >&6; }
13953
13954 GCC_F77="$G77"
13955 LD_F77="$LD"
13956
13957 lt_prog_compiler_wl_F77=
13958 lt_prog_compiler_pic_F77=
13959 lt_prog_compiler_static_F77=
13960
13961 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13962 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13963
13964   if test "$GCC" = yes; then
13965     lt_prog_compiler_wl_F77='-Wl,'
13966     lt_prog_compiler_static_F77='-static'
13967
13968     case $host_os in
13969       aix*)
13970       # All AIX code is PIC.
13971       if test "$host_cpu" = ia64; then
13972         # AIX 5 now supports IA64 processor
13973         lt_prog_compiler_static_F77='-Bstatic'
13974       fi
13975       ;;
13976
13977     amigaos*)
13978       # FIXME: we need at least 68020 code to build shared libraries, but
13979       # adding the `-m68020' flag to GCC prevents building anything better,
13980       # like `-m68040'.
13981       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13982       ;;
13983
13984     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13985       # PIC is the default for these OSes.
13986       ;;
13987
13988     mingw* | pw32* | os2*)
13989       # This hack is so that the source file can tell whether it is being
13990       # built for inclusion in a dll (and should export symbols for example).
13991       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13992       ;;
13993
13994     darwin* | rhapsody*)
13995       # PIC is the default on this platform
13996       # Common symbols not allowed in MH_DYLIB files
13997       lt_prog_compiler_pic_F77='-fno-common'
13998       ;;
13999
14000     interix3*)
14001       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14002       # Instead, we relocate shared libraries at runtime.
14003       ;;
14004
14005     msdosdjgpp*)
14006       # Just because we use GCC doesn't mean we suddenly get shared libraries
14007       # on systems that don't support them.
14008       lt_prog_compiler_can_build_shared_F77=no
14009       enable_shared=no
14010       ;;
14011
14012     sysv4*MP*)
14013       if test -d /usr/nec; then
14014         lt_prog_compiler_pic_F77=-Kconform_pic
14015       fi
14016       ;;
14017
14018     hpux*)
14019       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14020       # not for PA HP-UX.
14021       case $host_cpu in
14022       hppa*64*|ia64*)
14023         # +Z the default
14024         ;;
14025       *)
14026         lt_prog_compiler_pic_F77='-fPIC'
14027         ;;
14028       esac
14029       ;;
14030
14031     *)
14032       lt_prog_compiler_pic_F77='-fPIC'
14033       ;;
14034     esac
14035   else
14036     # PORTME Check for flag to pass linker flags through the system compiler.
14037     case $host_os in
14038     aix*)
14039       lt_prog_compiler_wl_F77='-Wl,'
14040       if test "$host_cpu" = ia64; then
14041         # AIX 5 now supports IA64 processor
14042         lt_prog_compiler_static_F77='-Bstatic'
14043       else
14044         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14045       fi
14046       ;;
14047       darwin*)
14048         # PIC is the default on this platform
14049         # Common symbols not allowed in MH_DYLIB files
14050        case $cc_basename in
14051          xlc*)
14052          lt_prog_compiler_pic_F77='-qnocommon'
14053          lt_prog_compiler_wl_F77='-Wl,'
14054          ;;
14055        esac
14056        ;;
14057
14058     mingw* | pw32* | os2*)
14059       # This hack is so that the source file can tell whether it is being
14060       # built for inclusion in a dll (and should export symbols for example).
14061       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14062       ;;
14063
14064     hpux9* | hpux10* | hpux11*)
14065       lt_prog_compiler_wl_F77='-Wl,'
14066       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14067       # not for PA HP-UX.
14068       case $host_cpu in
14069       hppa*64*|ia64*)
14070         # +Z the default
14071         ;;
14072       *)
14073         lt_prog_compiler_pic_F77='+Z'
14074         ;;
14075       esac
14076       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14077       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14078       ;;
14079
14080     irix5* | irix6* | nonstopux*)
14081       lt_prog_compiler_wl_F77='-Wl,'
14082       # PIC (with -KPIC) is the default.
14083       lt_prog_compiler_static_F77='-non_shared'
14084       ;;
14085
14086     newsos6)
14087       lt_prog_compiler_pic_F77='-KPIC'
14088       lt_prog_compiler_static_F77='-Bstatic'
14089       ;;
14090
14091     linux* | k*bsd*-gnu)
14092       case $cc_basename in
14093       icc* | ecc*)
14094         lt_prog_compiler_wl_F77='-Wl,'
14095         lt_prog_compiler_pic_F77='-KPIC'
14096         lt_prog_compiler_static_F77='-static'
14097         ;;
14098       pgcc* | pgf77* | pgf90* | pgf95*)
14099         # Portland Group compilers (*not* the Pentium gcc compiler,
14100         # which looks to be a dead project)
14101         lt_prog_compiler_wl_F77='-Wl,'
14102         lt_prog_compiler_pic_F77='-fpic'
14103         lt_prog_compiler_static_F77='-Bstatic'
14104         ;;
14105       ccc*)
14106         lt_prog_compiler_wl_F77='-Wl,'
14107         # All Alpha code is PIC.
14108         lt_prog_compiler_static_F77='-non_shared'
14109         ;;
14110       esac
14111       ;;
14112
14113     osf3* | osf4* | osf5*)
14114       lt_prog_compiler_wl_F77='-Wl,'
14115       # All OSF/1 code is PIC.
14116       lt_prog_compiler_static_F77='-non_shared'
14117       ;;
14118
14119     solaris*)
14120       lt_prog_compiler_pic_F77='-KPIC'
14121       lt_prog_compiler_static_F77='-Bstatic'
14122       case $cc_basename in
14123       f77* | f90* | f95*)
14124         lt_prog_compiler_wl_F77='-Qoption ld ';;
14125       *)
14126         lt_prog_compiler_wl_F77='-Wl,';;
14127       esac
14128       ;;
14129
14130     sunos4*)
14131       lt_prog_compiler_wl_F77='-Qoption ld '
14132       lt_prog_compiler_pic_F77='-PIC'
14133       lt_prog_compiler_static_F77='-Bstatic'
14134       ;;
14135
14136     sysv4 | sysv4.2uw2* | sysv4.3*)
14137       lt_prog_compiler_wl_F77='-Wl,'
14138       lt_prog_compiler_pic_F77='-KPIC'
14139       lt_prog_compiler_static_F77='-Bstatic'
14140       ;;
14141
14142     sysv4*MP*)
14143       if test -d /usr/nec ;then
14144         lt_prog_compiler_pic_F77='-Kconform_pic'
14145         lt_prog_compiler_static_F77='-Bstatic'
14146       fi
14147       ;;
14148
14149     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14150       lt_prog_compiler_wl_F77='-Wl,'
14151       lt_prog_compiler_pic_F77='-KPIC'
14152       lt_prog_compiler_static_F77='-Bstatic'
14153       ;;
14154
14155     unicos*)
14156       lt_prog_compiler_wl_F77='-Wl,'
14157       lt_prog_compiler_can_build_shared_F77=no
14158       ;;
14159
14160     uts4*)
14161       lt_prog_compiler_pic_F77='-pic'
14162       lt_prog_compiler_static_F77='-Bstatic'
14163       ;;
14164
14165     *)
14166       lt_prog_compiler_can_build_shared_F77=no
14167       ;;
14168     esac
14169   fi
14170
14171 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14172 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14173
14174 #
14175 # Check to make sure the PIC flag actually works.
14176 #
14177 if test -n "$lt_prog_compiler_pic_F77"; then
14178
14179 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14180 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14181 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14182   echo $ECHO_N "(cached) $ECHO_C" >&6
14183 else
14184   lt_prog_compiler_pic_works_F77=no
14185   ac_outfile=conftest.$ac_objext
14186    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14187    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14188    # Insert the option either (1) after the last *FLAGS variable, or
14189    # (2) before a word containing "conftest.", or (3) at the end.
14190    # Note that $ac_compile itself does not contain backslashes and begins
14191    # with a dollar sign (not a hyphen), so the echo should work correctly.
14192    # The option is referenced via a variable to avoid confusing sed.
14193    lt_compile=`echo "$ac_compile" | $SED \
14194    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14195    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14196    -e 's:$: $lt_compiler_flag:'`
14197    (eval echo "\"\$as_me:14197: $lt_compile\"" >&5)
14198    (eval "$lt_compile" 2>conftest.err)
14199    ac_status=$?
14200    cat conftest.err >&5
14201    echo "$as_me:14201: \$? = $ac_status" >&5
14202    if (exit $ac_status) && test -s "$ac_outfile"; then
14203      # The compiler can only warn and ignore the option if not recognized
14204      # So say no if there are warnings other than the usual output.
14205      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14206      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14207      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14208        lt_prog_compiler_pic_works_F77=yes
14209      fi
14210    fi
14211    $rm conftest*
14212
14213 fi
14214 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14215 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14216
14217 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14218     case $lt_prog_compiler_pic_F77 in
14219      "" | " "*) ;;
14220      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14221      esac
14222 else
14223     lt_prog_compiler_pic_F77=
14224      lt_prog_compiler_can_build_shared_F77=no
14225 fi
14226
14227 fi
14228 case $host_os in
14229   # For platforms which do not support PIC, -DPIC is meaningless:
14230   *djgpp*)
14231     lt_prog_compiler_pic_F77=
14232     ;;
14233   *)
14234     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14235     ;;
14236 esac
14237
14238 #
14239 # Check to make sure the static flag actually works.
14240 #
14241 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14242 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14243 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14244 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14245   echo $ECHO_N "(cached) $ECHO_C" >&6
14246 else
14247   lt_prog_compiler_static_works_F77=no
14248    save_LDFLAGS="$LDFLAGS"
14249    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14250    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14251    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14252      # The linker can only warn and ignore the option if not recognized
14253      # So say no if there are warnings
14254      if test -s conftest.err; then
14255        # Append any errors to the config.log.
14256        cat conftest.err 1>&5
14257        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14258        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14259        if diff conftest.exp conftest.er2 >/dev/null; then
14260          lt_prog_compiler_static_works_F77=yes
14261        fi
14262      else
14263        lt_prog_compiler_static_works_F77=yes
14264      fi
14265    fi
14266    $rm conftest*
14267    LDFLAGS="$save_LDFLAGS"
14268
14269 fi
14270 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14271 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14272
14273 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14274     :
14275 else
14276     lt_prog_compiler_static_F77=
14277 fi
14278
14279
14280 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14281 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14282 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14283   echo $ECHO_N "(cached) $ECHO_C" >&6
14284 else
14285   lt_cv_prog_compiler_c_o_F77=no
14286    $rm -r conftest 2>/dev/null
14287    mkdir conftest
14288    cd conftest
14289    mkdir out
14290    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14291
14292    lt_compiler_flag="-o out/conftest2.$ac_objext"
14293    # Insert the option either (1) after the last *FLAGS variable, or
14294    # (2) before a word containing "conftest.", or (3) at the end.
14295    # Note that $ac_compile itself does not contain backslashes and begins
14296    # with a dollar sign (not a hyphen), so the echo should work correctly.
14297    lt_compile=`echo "$ac_compile" | $SED \
14298    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14299    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14300    -e 's:$: $lt_compiler_flag:'`
14301    (eval echo "\"\$as_me:14301: $lt_compile\"" >&5)
14302    (eval "$lt_compile" 2>out/conftest.err)
14303    ac_status=$?
14304    cat out/conftest.err >&5
14305    echo "$as_me:14305: \$? = $ac_status" >&5
14306    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14307    then
14308      # The compiler can only warn and ignore the option if not recognized
14309      # So say no if there are warnings
14310      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14311      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14312      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14313        lt_cv_prog_compiler_c_o_F77=yes
14314      fi
14315    fi
14316    chmod u+w . 2>&5
14317    $rm conftest*
14318    # SGI C++ compiler will create directory out/ii_files/ for
14319    # template instantiation
14320    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14321    $rm out/* && rmdir out
14322    cd ..
14323    rmdir conftest
14324    $rm conftest*
14325
14326 fi
14327 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14328 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14329
14330
14331 hard_links="nottested"
14332 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14333   # do not overwrite the value of need_locks provided by the user
14334   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14335 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14336   hard_links=yes
14337   $rm conftest*
14338   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14339   touch conftest.a
14340   ln conftest.a conftest.b 2>&5 || hard_links=no
14341   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14342   { echo "$as_me:$LINENO: result: $hard_links" >&5
14343 echo "${ECHO_T}$hard_links" >&6; }
14344   if test "$hard_links" = no; then
14345     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14346 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14347     need_locks=warn
14348   fi
14349 else
14350   need_locks=no
14351 fi
14352
14353 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14354 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14355
14356   runpath_var=
14357   allow_undefined_flag_F77=
14358   enable_shared_with_static_runtimes_F77=no
14359   archive_cmds_F77=
14360   archive_expsym_cmds_F77=
14361   old_archive_From_new_cmds_F77=
14362   old_archive_from_expsyms_cmds_F77=
14363   export_dynamic_flag_spec_F77=
14364   whole_archive_flag_spec_F77=
14365   thread_safe_flag_spec_F77=
14366   hardcode_libdir_flag_spec_F77=
14367   hardcode_libdir_flag_spec_ld_F77=
14368   hardcode_libdir_separator_F77=
14369   hardcode_direct_F77=no
14370   hardcode_minus_L_F77=no
14371   hardcode_shlibpath_var_F77=unsupported
14372   link_all_deplibs_F77=unknown
14373   hardcode_automatic_F77=no
14374   module_cmds_F77=
14375   module_expsym_cmds_F77=
14376   always_export_symbols_F77=no
14377   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14378   # include_expsyms should be a list of space-separated symbols to be *always*
14379   # included in the symbol list
14380   include_expsyms_F77=
14381   # exclude_expsyms can be an extended regexp of symbols to exclude
14382   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14383   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14384   # as well as any symbol that contains `d'.
14385   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14386   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14387   # platforms (ab)use it in PIC code, but their linkers get confused if
14388   # the symbol is explicitly referenced.  Since portable code cannot
14389   # rely on this symbol name, it's probably fine to never include it in
14390   # preloaded symbol tables.
14391   extract_expsyms_cmds=
14392   # Just being paranoid about ensuring that cc_basename is set.
14393   for cc_temp in $compiler""; do
14394   case $cc_temp in
14395     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14396     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14397     \-*) ;;
14398     *) break;;
14399   esac
14400 done
14401 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14402
14403   case $host_os in
14404   cygwin* | mingw* | pw32*)
14405     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14406     # When not using gcc, we currently assume that we are using
14407     # Microsoft Visual C++.
14408     if test "$GCC" != yes; then
14409       with_gnu_ld=no
14410     fi
14411     ;;
14412   interix*)
14413     # we just hope/assume this is gcc and not c89 (= MSVC++)
14414     with_gnu_ld=yes
14415     ;;
14416   openbsd*)
14417     with_gnu_ld=no
14418     ;;
14419   esac
14420
14421   ld_shlibs_F77=yes
14422   if test "$with_gnu_ld" = yes; then
14423     # If archive_cmds runs LD, not CC, wlarc should be empty
14424     wlarc='${wl}'
14425
14426     # Set some defaults for GNU ld with shared library support. These
14427     # are reset later if shared libraries are not supported. Putting them
14428     # here allows them to be overridden if necessary.
14429     runpath_var=LD_RUN_PATH
14430     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14431     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14432     # ancient GNU ld didn't support --whole-archive et. al.
14433     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14434         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14435       else
14436         whole_archive_flag_spec_F77=
14437     fi
14438     supports_anon_versioning=no
14439     case `$LD -v 2>/dev/null` in
14440       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14441       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14442       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14443       *\ 2.11.*) ;; # other 2.11 versions
14444       *) supports_anon_versioning=yes ;;
14445     esac
14446
14447     # See if GNU ld supports shared libraries.
14448     case $host_os in
14449     aix3* | aix4* | aix5*)
14450       # On AIX/PPC, the GNU linker is very broken
14451       if test "$host_cpu" != ia64; then
14452         ld_shlibs_F77=no
14453         cat <<EOF 1>&2
14454
14455 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14456 *** to be unable to reliably create shared libraries on AIX.
14457 *** Therefore, libtool is disabling shared libraries support.  If you
14458 *** really care for shared libraries, you may want to modify your PATH
14459 *** so that a non-GNU linker is found, and then restart.
14460
14461 EOF
14462       fi
14463       ;;
14464
14465     amigaos*)
14466       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)'
14467       hardcode_libdir_flag_spec_F77='-L$libdir'
14468       hardcode_minus_L_F77=yes
14469
14470       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14471       # that the semantics of dynamic libraries on AmigaOS, at least up
14472       # to version 4, is to share data among multiple programs linked
14473       # with the same dynamic library.  Since this doesn't match the
14474       # behavior of shared libraries on other platforms, we can't use
14475       # them.
14476       ld_shlibs_F77=no
14477       ;;
14478
14479     beos*)
14480       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14481         allow_undefined_flag_F77=unsupported
14482         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14483         # support --undefined.  This deserves some investigation.  FIXME
14484         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14485       else
14486         ld_shlibs_F77=no
14487       fi
14488       ;;
14489
14490     cygwin* | mingw* | pw32*)
14491       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14492       # as there is no search path for DLLs.
14493       hardcode_libdir_flag_spec_F77='-L$libdir'
14494       allow_undefined_flag_F77=unsupported
14495       always_export_symbols_F77=no
14496       enable_shared_with_static_runtimes_F77=yes
14497       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14498
14499       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14500         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14501         # If the export-symbols file already is a .def file (1st line
14502         # is EXPORTS), use it as is; otherwise, prepend...
14503         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14504           cp $export_symbols $output_objdir/$soname.def;
14505         else
14506           echo EXPORTS > $output_objdir/$soname.def;
14507           cat $export_symbols >> $output_objdir/$soname.def;
14508         fi~
14509         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14510       else
14511         ld_shlibs_F77=no
14512       fi
14513       ;;
14514
14515     interix3*)
14516       hardcode_direct_F77=no
14517       hardcode_shlibpath_var_F77=no
14518       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14519       export_dynamic_flag_spec_F77='${wl}-E'
14520       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14521       # Instead, shared libraries are loaded at an image base (0x10000000 by
14522       # default) and relocated if they conflict, which is a slow very memory
14523       # consuming and fragmenting process.  To avoid this, we pick a random,
14524       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14525       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14526       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'
14527       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'
14528       ;;
14529
14530     linux* | k*bsd*-gnu)
14531       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14532         tmp_addflag=
14533         case $cc_basename,$host_cpu in
14534         pgcc*)                          # Portland Group C compiler
14535           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'
14536           tmp_addflag=' $pic_flag'
14537           ;;
14538         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14539           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'
14540           tmp_addflag=' $pic_flag -Mnomain' ;;
14541         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14542           tmp_addflag=' -i_dynamic' ;;
14543         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14544           tmp_addflag=' -i_dynamic -nofor_main' ;;
14545         ifc* | ifort*)                  # Intel Fortran compiler
14546           tmp_addflag=' -nofor_main' ;;
14547         esac
14548         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14549
14550         if test $supports_anon_versioning = yes; then
14551           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14552   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14553   $echo "local: *; };" >> $output_objdir/$libname.ver~
14554           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14555         fi
14556         link_all_deplibs_F77=no
14557       else
14558         ld_shlibs_F77=no
14559       fi
14560       ;;
14561
14562     netbsd* | netbsdelf*-gnu)
14563       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14564         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14565         wlarc=
14566       else
14567         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14568         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14569       fi
14570       ;;
14571
14572     solaris*)
14573       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14574         ld_shlibs_F77=no
14575         cat <<EOF 1>&2
14576
14577 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14578 *** create shared libraries on Solaris systems.  Therefore, libtool
14579 *** is disabling shared libraries support.  We urge you to upgrade GNU
14580 *** binutils to release 2.9.1 or newer.  Another option is to modify
14581 *** your PATH or compiler configuration so that the native linker is
14582 *** used, and then restart.
14583
14584 EOF
14585       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14586         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14587         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14588       else
14589         ld_shlibs_F77=no
14590       fi
14591       ;;
14592
14593     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14594       case `$LD -v 2>&1` in
14595         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14596         ld_shlibs_F77=no
14597         cat <<_LT_EOF 1>&2
14598
14599 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14600 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14601 *** is disabling shared libraries support.  We urge you to upgrade GNU
14602 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14603 *** your PATH or compiler configuration so that the native linker is
14604 *** used, and then restart.
14605
14606 _LT_EOF
14607         ;;
14608         *)
14609           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14610             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14611             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14612             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14613           else
14614             ld_shlibs_F77=no
14615           fi
14616         ;;
14617       esac
14618       ;;
14619
14620     sunos4*)
14621       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14622       wlarc=
14623       hardcode_direct_F77=yes
14624       hardcode_shlibpath_var_F77=no
14625       ;;
14626
14627     *)
14628       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14629         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14630         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14631       else
14632         ld_shlibs_F77=no
14633       fi
14634       ;;
14635     esac
14636
14637     if test "$ld_shlibs_F77" = no; then
14638       runpath_var=
14639       hardcode_libdir_flag_spec_F77=
14640       export_dynamic_flag_spec_F77=
14641       whole_archive_flag_spec_F77=
14642     fi
14643   else
14644     # PORTME fill in a description of your system's linker (not GNU ld)
14645     case $host_os in
14646     aix3*)
14647       allow_undefined_flag_F77=unsupported
14648       always_export_symbols_F77=yes
14649       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'
14650       # Note: this linker hardcodes the directories in LIBPATH if there
14651       # are no directories specified by -L.
14652       hardcode_minus_L_F77=yes
14653       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14654         # Neither direct hardcoding nor static linking is supported with a
14655         # broken collect2.
14656         hardcode_direct_F77=unsupported
14657       fi
14658       ;;
14659
14660     aix4* | aix5*)
14661       if test "$host_cpu" = ia64; then
14662         # On IA64, the linker does run time linking by default, so we don't
14663         # have to do anything special.
14664         aix_use_runtimelinking=no
14665         exp_sym_flag='-Bexport'
14666         no_entry_flag=""
14667       else
14668         # If we're using GNU nm, then we don't want the "-C" option.
14669         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14670         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14671           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'
14672         else
14673           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'
14674         fi
14675         aix_use_runtimelinking=no
14676
14677         # Test if we are trying to use run time linking or normal
14678         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14679         # need to do runtime linking.
14680         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14681           for ld_flag in $LDFLAGS; do
14682           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14683             aix_use_runtimelinking=yes
14684             break
14685           fi
14686           done
14687           ;;
14688         esac
14689
14690         exp_sym_flag='-bexport'
14691         no_entry_flag='-bnoentry'
14692       fi
14693
14694       # When large executables or shared objects are built, AIX ld can
14695       # have problems creating the table of contents.  If linking a library
14696       # or program results in "error TOC overflow" add -mminimal-toc to
14697       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14698       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14699
14700       archive_cmds_F77=''
14701       hardcode_direct_F77=yes
14702       hardcode_libdir_separator_F77=':'
14703       link_all_deplibs_F77=yes
14704
14705       if test "$GCC" = yes; then
14706         case $host_os in aix4.[012]|aix4.[012].*)
14707         # We only want to do this on AIX 4.2 and lower, the check
14708         # below for broken collect2 doesn't work under 4.3+
14709           collect2name=`${CC} -print-prog-name=collect2`
14710           if test -f "$collect2name" && \
14711            strings "$collect2name" | grep resolve_lib_name >/dev/null
14712           then
14713           # We have reworked collect2
14714           hardcode_direct_F77=yes
14715           else
14716           # We have old collect2
14717           hardcode_direct_F77=unsupported
14718           # It fails to find uninstalled libraries when the uninstalled
14719           # path is not listed in the libpath.  Setting hardcode_minus_L
14720           # to unsupported forces relinking
14721           hardcode_minus_L_F77=yes
14722           hardcode_libdir_flag_spec_F77='-L$libdir'
14723           hardcode_libdir_separator_F77=
14724           fi
14725           ;;
14726         esac
14727         shared_flag='-shared'
14728         if test "$aix_use_runtimelinking" = yes; then
14729           shared_flag="$shared_flag "'${wl}-G'
14730         fi
14731       else
14732         # not using gcc
14733         if test "$host_cpu" = ia64; then
14734         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14735         # chokes on -Wl,-G. The following line is correct:
14736           shared_flag='-G'
14737         else
14738           if test "$aix_use_runtimelinking" = yes; then
14739             shared_flag='${wl}-G'
14740           else
14741             shared_flag='${wl}-bM:SRE'
14742           fi
14743         fi
14744       fi
14745
14746       # It seems that -bexpall does not export symbols beginning with
14747       # underscore (_), so it is better to generate a list of symbols to export.
14748       always_export_symbols_F77=yes
14749       if test "$aix_use_runtimelinking" = yes; then
14750         # Warning - without using the other runtime loading flags (-brtl),
14751         # -berok will link without error, but may produce a broken library.
14752         allow_undefined_flag_F77='-berok'
14753        # Determine the default libpath from the value encoded in an empty executable.
14754        cat >conftest.$ac_ext <<_ACEOF
14755       program main
14756
14757       end
14758 _ACEOF
14759 rm -f conftest.$ac_objext conftest$ac_exeext
14760 if { (ac_try="$ac_link"
14761 case "(($ac_try" in
14762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14763   *) ac_try_echo=$ac_try;;
14764 esac
14765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14766   (eval "$ac_link") 2>conftest.er1
14767   ac_status=$?
14768   grep -v '^ *+' conftest.er1 >conftest.err
14769   rm -f conftest.er1
14770   cat conftest.err >&5
14771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772   (exit $ac_status); } && {
14773          test -z "$ac_f77_werror_flag" ||
14774          test ! -s conftest.err
14775        } && test -s conftest$ac_exeext &&
14776        $as_test_x conftest$ac_exeext; then
14777
14778 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14779 }'`
14780 # Check for a 64-bit object if we didn't find anything.
14781 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14782 }'`; fi
14783 else
14784   echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14786
14787
14788 fi
14789
14790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14791       conftest$ac_exeext conftest.$ac_ext
14792 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14793
14794        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14795         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"
14796        else
14797         if test "$host_cpu" = ia64; then
14798           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14799           allow_undefined_flag_F77="-z nodefs"
14800           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"
14801         else
14802          # Determine the default libpath from the value encoded in an empty executable.
14803          cat >conftest.$ac_ext <<_ACEOF
14804       program main
14805
14806       end
14807 _ACEOF
14808 rm -f conftest.$ac_objext conftest$ac_exeext
14809 if { (ac_try="$ac_link"
14810 case "(($ac_try" in
14811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14812   *) ac_try_echo=$ac_try;;
14813 esac
14814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14815   (eval "$ac_link") 2>conftest.er1
14816   ac_status=$?
14817   grep -v '^ *+' conftest.er1 >conftest.err
14818   rm -f conftest.er1
14819   cat conftest.err >&5
14820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821   (exit $ac_status); } && {
14822          test -z "$ac_f77_werror_flag" ||
14823          test ! -s conftest.err
14824        } && test -s conftest$ac_exeext &&
14825        $as_test_x conftest$ac_exeext; then
14826
14827 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14828 }'`
14829 # Check for a 64-bit object if we didn't find anything.
14830 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14831 }'`; fi
14832 else
14833   echo "$as_me: failed program was:" >&5
14834 sed 's/^/| /' conftest.$ac_ext >&5
14835
14836
14837 fi
14838
14839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14840       conftest$ac_exeext conftest.$ac_ext
14841 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14842
14843          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14844           # Warning - without using the other run time loading flags,
14845           # -berok will link without error, but may produce a broken library.
14846           no_undefined_flag_F77=' ${wl}-bernotok'
14847           allow_undefined_flag_F77=' ${wl}-berok'
14848           # Exported symbols can be pulled into shared objects from archives
14849           whole_archive_flag_spec_F77='$convenience'
14850           archive_cmds_need_lc_F77=yes
14851           # This is similar to how AIX traditionally builds its shared libraries.
14852           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'
14853         fi
14854       fi
14855       ;;
14856
14857     amigaos*)
14858       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)'
14859       hardcode_libdir_flag_spec_F77='-L$libdir'
14860       hardcode_minus_L_F77=yes
14861       # see comment about different semantics on the GNU ld section
14862       ld_shlibs_F77=no
14863       ;;
14864
14865     bsdi[45]*)
14866       export_dynamic_flag_spec_F77=-rdynamic
14867       ;;
14868
14869     cygwin* | mingw* | pw32*)
14870       # When not using gcc, we currently assume that we are using
14871       # Microsoft Visual C++.
14872       # hardcode_libdir_flag_spec is actually meaningless, as there is
14873       # no search path for DLLs.
14874       hardcode_libdir_flag_spec_F77=' '
14875       allow_undefined_flag_F77=unsupported
14876       # Tell ltmain to make .lib files, not .a files.
14877       libext=lib
14878       # Tell ltmain to make .dll files, not .so files.
14879       shrext_cmds=".dll"
14880       # FIXME: Setting linknames here is a bad hack.
14881       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14882       # The linker will automatically build a .lib file if we build a DLL.
14883       old_archive_From_new_cmds_F77='true'
14884       # FIXME: Should let the user specify the lib program.
14885       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14886       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14887       enable_shared_with_static_runtimes_F77=yes
14888       ;;
14889
14890     darwin* | rhapsody*)
14891       case $host_os in
14892         rhapsody* | darwin1.[012])
14893          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14894          ;;
14895        *) # Darwin 1.3 on
14896          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14897            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14898          else
14899            case ${MACOSX_DEPLOYMENT_TARGET} in
14900              10.[012])
14901                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14902                ;;
14903              10.*)
14904                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14905                ;;
14906            esac
14907          fi
14908          ;;
14909       esac
14910       archive_cmds_need_lc_F77=no
14911       hardcode_direct_F77=no
14912       hardcode_automatic_F77=yes
14913       hardcode_shlibpath_var_F77=unsupported
14914       whole_archive_flag_spec_F77=''
14915       link_all_deplibs_F77=yes
14916     if test "$GCC" = yes ; then
14917         output_verbose_link_cmd='echo'
14918         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14919       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14920       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14921       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14922       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}'
14923     else
14924       case $cc_basename in
14925         xlc*)
14926          output_verbose_link_cmd='echo'
14927          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14928          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14929           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14930          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14931           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}'
14932           ;;
14933        *)
14934          ld_shlibs_F77=no
14935           ;;
14936       esac
14937     fi
14938       ;;
14939
14940     dgux*)
14941       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14942       hardcode_libdir_flag_spec_F77='-L$libdir'
14943       hardcode_shlibpath_var_F77=no
14944       ;;
14945
14946     freebsd1*)
14947       ld_shlibs_F77=no
14948       ;;
14949
14950     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14951     # support.  Future versions do this automatically, but an explicit c++rt0.o
14952     # does not break anything, and helps significantly (at the cost of a little
14953     # extra space).
14954     freebsd2.2*)
14955       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14956       hardcode_libdir_flag_spec_F77='-R$libdir'
14957       hardcode_direct_F77=yes
14958       hardcode_shlibpath_var_F77=no
14959       ;;
14960
14961     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14962     freebsd2*)
14963       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14964       hardcode_direct_F77=yes
14965       hardcode_minus_L_F77=yes
14966       hardcode_shlibpath_var_F77=no
14967       ;;
14968
14969     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14970     freebsd* | dragonfly*)
14971       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14972       hardcode_libdir_flag_spec_F77='-R$libdir'
14973       hardcode_direct_F77=yes
14974       hardcode_shlibpath_var_F77=no
14975       ;;
14976
14977     hpux9*)
14978       if test "$GCC" = yes; then
14979         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'
14980       else
14981         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'
14982       fi
14983       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14984       hardcode_libdir_separator_F77=:
14985       hardcode_direct_F77=yes
14986
14987       # hardcode_minus_L: Not really in the search PATH,
14988       # but as the default location of the library.
14989       hardcode_minus_L_F77=yes
14990       export_dynamic_flag_spec_F77='${wl}-E'
14991       ;;
14992
14993     hpux10*)
14994       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14995         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14996       else
14997         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14998       fi
14999       if test "$with_gnu_ld" = no; then
15000         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15001         hardcode_libdir_separator_F77=:
15002
15003         hardcode_direct_F77=yes
15004         export_dynamic_flag_spec_F77='${wl}-E'
15005
15006         # hardcode_minus_L: Not really in the search PATH,
15007         # but as the default location of the library.
15008         hardcode_minus_L_F77=yes
15009       fi
15010       ;;
15011
15012     hpux11*)
15013       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15014         case $host_cpu in
15015         hppa*64*)
15016           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15017           ;;
15018         ia64*)
15019           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15020           ;;
15021         *)
15022           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15023           ;;
15024         esac
15025       else
15026         case $host_cpu in
15027         hppa*64*)
15028           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15029           ;;
15030         ia64*)
15031           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15032           ;;
15033         *)
15034           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15035           ;;
15036         esac
15037       fi
15038       if test "$with_gnu_ld" = no; then
15039         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15040         hardcode_libdir_separator_F77=:
15041
15042         case $host_cpu in
15043         hppa*64*|ia64*)
15044           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15045           hardcode_direct_F77=no
15046           hardcode_shlibpath_var_F77=no
15047           ;;
15048         *)
15049           hardcode_direct_F77=yes
15050           export_dynamic_flag_spec_F77='${wl}-E'
15051
15052           # hardcode_minus_L: Not really in the search PATH,
15053           # but as the default location of the library.
15054           hardcode_minus_L_F77=yes
15055           ;;
15056         esac
15057       fi
15058       ;;
15059
15060     irix5* | irix6* | nonstopux*)
15061       if test "$GCC" = yes; then
15062         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'
15063       else
15064         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'
15065         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15066       fi
15067       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15068       hardcode_libdir_separator_F77=:
15069       link_all_deplibs_F77=yes
15070       ;;
15071
15072     netbsd* | netbsdelf*-gnu)
15073       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15074         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15075       else
15076         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15077       fi
15078       hardcode_libdir_flag_spec_F77='-R$libdir'
15079       hardcode_direct_F77=yes
15080       hardcode_shlibpath_var_F77=no
15081       ;;
15082
15083     newsos6)
15084       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15085       hardcode_direct_F77=yes
15086       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15087       hardcode_libdir_separator_F77=:
15088       hardcode_shlibpath_var_F77=no
15089       ;;
15090
15091     openbsd*)
15092       hardcode_direct_F77=yes
15093       hardcode_shlibpath_var_F77=no
15094       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15095         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15096         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15097         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15098         export_dynamic_flag_spec_F77='${wl}-E'
15099       else
15100        case $host_os in
15101          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15102            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15103            hardcode_libdir_flag_spec_F77='-R$libdir'
15104            ;;
15105          *)
15106            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15107            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15108            ;;
15109        esac
15110       fi
15111       ;;
15112
15113     os2*)
15114       hardcode_libdir_flag_spec_F77='-L$libdir'
15115       hardcode_minus_L_F77=yes
15116       allow_undefined_flag_F77=unsupported
15117       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'
15118       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15119       ;;
15120
15121     osf3*)
15122       if test "$GCC" = yes; then
15123         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15124         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'
15125       else
15126         allow_undefined_flag_F77=' -expect_unresolved \*'
15127         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'
15128       fi
15129       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15130       hardcode_libdir_separator_F77=:
15131       ;;
15132
15133     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15134       if test "$GCC" = yes; then
15135         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15136         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'
15137         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15138       else
15139         allow_undefined_flag_F77=' -expect_unresolved \*'
15140         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'
15141         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~
15142         $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'
15143
15144         # Both c and cxx compiler support -rpath directly
15145         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15146       fi
15147       hardcode_libdir_separator_F77=:
15148       ;;
15149
15150     solaris*)
15151       no_undefined_flag_F77=' -z text'
15152       if test "$GCC" = yes; then
15153         wlarc='${wl}'
15154         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15155         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15156           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15157       else
15158         wlarc=''
15159         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15160         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15161         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15162       fi
15163       hardcode_libdir_flag_spec_F77='-R$libdir'
15164       hardcode_shlibpath_var_F77=no
15165       case $host_os in
15166       solaris2.[0-5] | solaris2.[0-5].*) ;;
15167       *)
15168         # The compiler driver will combine linker options so we
15169         # cannot just pass the convience library names through
15170         # without $wl, iff we do not link with $LD.
15171         # Luckily, gcc supports the same syntax we need for Sun Studio.
15172         # Supported since Solaris 2.6 (maybe 2.5.1?)
15173         case $wlarc in
15174         '')
15175           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15176         *)
15177           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15178         esac ;;
15179       esac
15180       link_all_deplibs_F77=yes
15181       ;;
15182
15183     sunos4*)
15184       if test "x$host_vendor" = xsequent; then
15185         # Use $CC to link under sequent, because it throws in some extra .o
15186         # files that make .init and .fini sections work.
15187         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15188       else
15189         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15190       fi
15191       hardcode_libdir_flag_spec_F77='-L$libdir'
15192       hardcode_direct_F77=yes
15193       hardcode_minus_L_F77=yes
15194       hardcode_shlibpath_var_F77=no
15195       ;;
15196
15197     sysv4)
15198       case $host_vendor in
15199         sni)
15200           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15201           hardcode_direct_F77=yes # is this really true???
15202         ;;
15203         siemens)
15204           ## LD is ld it makes a PLAMLIB
15205           ## CC just makes a GrossModule.
15206           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15207           reload_cmds_F77='$CC -r -o $output$reload_objs'
15208           hardcode_direct_F77=no
15209         ;;
15210         motorola)
15211           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15212           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15213         ;;
15214       esac
15215       runpath_var='LD_RUN_PATH'
15216       hardcode_shlibpath_var_F77=no
15217       ;;
15218
15219     sysv4.3*)
15220       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15221       hardcode_shlibpath_var_F77=no
15222       export_dynamic_flag_spec_F77='-Bexport'
15223       ;;
15224
15225     sysv4*MP*)
15226       if test -d /usr/nec; then
15227         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15228         hardcode_shlibpath_var_F77=no
15229         runpath_var=LD_RUN_PATH
15230         hardcode_runpath_var=yes
15231         ld_shlibs_F77=yes
15232       fi
15233       ;;
15234
15235     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15236       no_undefined_flag_F77='${wl}-z,text'
15237       archive_cmds_need_lc_F77=no
15238       hardcode_shlibpath_var_F77=no
15239       runpath_var='LD_RUN_PATH'
15240
15241       if test "$GCC" = yes; then
15242         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15243         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15244       else
15245         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15246         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15247       fi
15248       ;;
15249
15250     sysv5* | sco3.2v5* | sco5v6*)
15251       # Note: We can NOT use -z defs as we might desire, because we do not
15252       # link with -lc, and that would cause any symbols used from libc to
15253       # always be unresolved, which means just about no library would
15254       # ever link correctly.  If we're not using GNU ld we use -z text
15255       # though, which does catch some bad symbols but isn't as heavy-handed
15256       # as -z defs.
15257       no_undefined_flag_F77='${wl}-z,text'
15258       allow_undefined_flag_F77='${wl}-z,nodefs'
15259       archive_cmds_need_lc_F77=no
15260       hardcode_shlibpath_var_F77=no
15261       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15262       hardcode_libdir_separator_F77=':'
15263       link_all_deplibs_F77=yes
15264       export_dynamic_flag_spec_F77='${wl}-Bexport'
15265       runpath_var='LD_RUN_PATH'
15266
15267       if test "$GCC" = yes; then
15268         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15269         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15270       else
15271         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15272         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15273       fi
15274       ;;
15275
15276     uts4*)
15277       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15278       hardcode_libdir_flag_spec_F77='-L$libdir'
15279       hardcode_shlibpath_var_F77=no
15280       ;;
15281
15282     *)
15283       ld_shlibs_F77=no
15284       ;;
15285     esac
15286   fi
15287
15288 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15289 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15290 test "$ld_shlibs_F77" = no && can_build_shared=no
15291
15292 #
15293 # Do we need to explicitly link libc?
15294 #
15295 case "x$archive_cmds_need_lc_F77" in
15296 x|xyes)
15297   # Assume -lc should be added
15298   archive_cmds_need_lc_F77=yes
15299
15300   if test "$enable_shared" = yes && test "$GCC" = yes; then
15301     case $archive_cmds_F77 in
15302     *'~'*)
15303       # FIXME: we may have to deal with multi-command sequences.
15304       ;;
15305     '$CC '*)
15306       # Test whether the compiler implicitly links with -lc since on some
15307       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15308       # to ld, don't add -lc before -lgcc.
15309       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15310 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15311       $rm conftest*
15312       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15313
15314       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15315   (eval $ac_compile) 2>&5
15316   ac_status=$?
15317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318   (exit $ac_status); } 2>conftest.err; then
15319         soname=conftest
15320         lib=conftest
15321         libobjs=conftest.$ac_objext
15322         deplibs=
15323         wl=$lt_prog_compiler_wl_F77
15324         pic_flag=$lt_prog_compiler_pic_F77
15325         compiler_flags=-v
15326         linker_flags=-v
15327         verstring=
15328         output_objdir=.
15329         libname=conftest
15330         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15331         allow_undefined_flag_F77=
15332         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15333   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15334   ac_status=$?
15335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336   (exit $ac_status); }
15337         then
15338           archive_cmds_need_lc_F77=no
15339         else
15340           archive_cmds_need_lc_F77=yes
15341         fi
15342         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15343       else
15344         cat conftest.err 1>&5
15345       fi
15346       $rm conftest*
15347       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15348 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15349       ;;
15350     esac
15351   fi
15352   ;;
15353 esac
15354
15355 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15356 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15357 library_names_spec=
15358 libname_spec='lib$name'
15359 soname_spec=
15360 shrext_cmds=".so"
15361 postinstall_cmds=
15362 postuninstall_cmds=
15363 finish_cmds=
15364 finish_eval=
15365 shlibpath_var=
15366 shlibpath_overrides_runpath=unknown
15367 version_type=none
15368 dynamic_linker="$host_os ld.so"
15369 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15370 if test "$GCC" = yes; then
15371   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15372   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15373     # if the path contains ";" then we assume it to be the separator
15374     # otherwise default to the standard path separator (i.e. ":") - it is
15375     # assumed that no part of a normal pathname contains ";" but that should
15376     # okay in the real world where ";" in dirpaths is itself problematic.
15377     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15378   else
15379     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15380   fi
15381 else
15382   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15383 fi
15384 need_lib_prefix=unknown
15385 hardcode_into_libs=no
15386
15387 # when you set need_version to no, make sure it does not cause -set_version
15388 # flags to be left without arguments
15389 need_version=unknown
15390
15391 case $host_os in
15392 aix3*)
15393   version_type=linux
15394   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15395   shlibpath_var=LIBPATH
15396
15397   # AIX 3 has no versioning support, so we append a major version to the name.
15398   soname_spec='${libname}${release}${shared_ext}$major'
15399   ;;
15400
15401 aix4* | aix5*)
15402   version_type=linux
15403   need_lib_prefix=no
15404   need_version=no
15405   hardcode_into_libs=yes
15406   if test "$host_cpu" = ia64; then
15407     # AIX 5 supports IA64
15408     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15409     shlibpath_var=LD_LIBRARY_PATH
15410   else
15411     # With GCC up to 2.95.x, collect2 would create an import file
15412     # for dependence libraries.  The import file would start with
15413     # the line `#! .'.  This would cause the generated library to
15414     # depend on `.', always an invalid library.  This was fixed in
15415     # development snapshots of GCC prior to 3.0.
15416     case $host_os in
15417       aix4 | aix4.[01] | aix4.[01].*)
15418       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15419            echo ' yes '
15420            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15421         :
15422       else
15423         can_build_shared=no
15424       fi
15425       ;;
15426     esac
15427     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15428     # soname into executable. Probably we can add versioning support to
15429     # collect2, so additional links can be useful in future.
15430     if test "$aix_use_runtimelinking" = yes; then
15431       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15432       # instead of lib<name>.a to let people know that these are not
15433       # typical AIX shared libraries.
15434       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15435     else
15436       # We preserve .a as extension for shared libraries through AIX4.2
15437       # and later when we are not doing run time linking.
15438       library_names_spec='${libname}${release}.a $libname.a'
15439       soname_spec='${libname}${release}${shared_ext}$major'
15440     fi
15441     shlibpath_var=LIBPATH
15442   fi
15443   ;;
15444
15445 amigaos*)
15446   library_names_spec='$libname.ixlibrary $libname.a'
15447   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15448   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'
15449   ;;
15450
15451 beos*)
15452   library_names_spec='${libname}${shared_ext}'
15453   dynamic_linker="$host_os ld.so"
15454   shlibpath_var=LIBRARY_PATH
15455   ;;
15456
15457 bsdi[45]*)
15458   version_type=linux
15459   need_version=no
15460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15461   soname_spec='${libname}${release}${shared_ext}$major'
15462   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15463   shlibpath_var=LD_LIBRARY_PATH
15464   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15465   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15466   # the default ld.so.conf also contains /usr/contrib/lib and
15467   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15468   # libtool to hard-code these into programs
15469   ;;
15470
15471 cygwin* | mingw* | pw32*)
15472   version_type=windows
15473   shrext_cmds=".dll"
15474   need_version=no
15475   need_lib_prefix=no
15476
15477   case $GCC,$host_os in
15478   yes,cygwin* | yes,mingw* | yes,pw32*)
15479     library_names_spec='$libname.dll.a'
15480     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15481     postinstall_cmds='base_file=`basename \${file}`~
15482       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15483       dldir=$destdir/`dirname \$dlpath`~
15484       test -d \$dldir || mkdir -p \$dldir~
15485       $install_prog $dir/$dlname \$dldir/$dlname~
15486       chmod a+x \$dldir/$dlname'
15487     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15488       dlpath=$dir/\$dldll~
15489        $rm \$dlpath'
15490     shlibpath_overrides_runpath=yes
15491
15492     case $host_os in
15493     cygwin*)
15494       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15495       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15496       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15497       ;;
15498     mingw*)
15499       # MinGW DLLs use traditional 'lib' prefix
15500       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15501       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15502       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15503         # It is most probably a Windows format PATH printed by
15504         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15505         # path with ; separators, and with drive letters. We can handle the
15506         # drive letters (cygwin fileutils understands them), so leave them,
15507         # especially as we might pass files found there to a mingw objdump,
15508         # which wouldn't understand a cygwinified path. Ahh.
15509         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15510       else
15511         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15512       fi
15513       ;;
15514     pw32*)
15515       # pw32 DLLs use 'pw' prefix rather than 'lib'
15516       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15517       ;;
15518     esac
15519     ;;
15520
15521   *)
15522     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15523     ;;
15524   esac
15525   dynamic_linker='Win32 ld.exe'
15526   # FIXME: first we should search . and the directory the executable is in
15527   shlibpath_var=PATH
15528   ;;
15529
15530 darwin* | rhapsody*)
15531   dynamic_linker="$host_os dyld"
15532   version_type=darwin
15533   need_lib_prefix=no
15534   need_version=no
15535   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15536   soname_spec='${libname}${release}${major}$shared_ext'
15537   shlibpath_overrides_runpath=yes
15538   shlibpath_var=DYLD_LIBRARY_PATH
15539   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15540   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15541   if test "$GCC" = yes; then
15542     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15543   else
15544     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15545   fi
15546   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15547   ;;
15548
15549 dgux*)
15550   version_type=linux
15551   need_lib_prefix=no
15552   need_version=no
15553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15554   soname_spec='${libname}${release}${shared_ext}$major'
15555   shlibpath_var=LD_LIBRARY_PATH
15556   ;;
15557
15558 freebsd1*)
15559   dynamic_linker=no
15560   ;;
15561
15562 freebsd* | dragonfly*)
15563   # DragonFly does not have aout.  When/if they implement a new
15564   # versioning mechanism, adjust this.
15565   if test -x /usr/bin/objformat; then
15566     objformat=`/usr/bin/objformat`
15567   else
15568     case $host_os in
15569     freebsd[123]*) objformat=aout ;;
15570     *) objformat=elf ;;
15571     esac
15572   fi
15573   version_type=freebsd-$objformat
15574   case $version_type in
15575     freebsd-elf*)
15576       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15577       need_version=no
15578       need_lib_prefix=no
15579       ;;
15580     freebsd-*)
15581       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15582       need_version=yes
15583       ;;
15584   esac
15585   shlibpath_var=LD_LIBRARY_PATH
15586   case $host_os in
15587   freebsd2*)
15588     shlibpath_overrides_runpath=yes
15589     ;;
15590   freebsd3.[01]* | freebsdelf3.[01]*)
15591     shlibpath_overrides_runpath=yes
15592     hardcode_into_libs=yes
15593     ;;
15594   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15595   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15596     shlibpath_overrides_runpath=no
15597     hardcode_into_libs=yes
15598     ;;
15599   freebsd*) # from 4.6 on
15600     shlibpath_overrides_runpath=yes
15601     hardcode_into_libs=yes
15602     ;;
15603   esac
15604   ;;
15605
15606 gnu*)
15607   version_type=linux
15608   need_lib_prefix=no
15609   need_version=no
15610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15611   soname_spec='${libname}${release}${shared_ext}$major'
15612   shlibpath_var=LD_LIBRARY_PATH
15613   hardcode_into_libs=yes
15614   ;;
15615
15616 hpux9* | hpux10* | hpux11*)
15617   # Give a soname corresponding to the major version so that dld.sl refuses to
15618   # link against other versions.
15619   version_type=sunos
15620   need_lib_prefix=no
15621   need_version=no
15622   case $host_cpu in
15623   ia64*)
15624     shrext_cmds='.so'
15625     hardcode_into_libs=yes
15626     dynamic_linker="$host_os dld.so"
15627     shlibpath_var=LD_LIBRARY_PATH
15628     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15629     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15630     soname_spec='${libname}${release}${shared_ext}$major'
15631     if test "X$HPUX_IA64_MODE" = X32; then
15632       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15633     else
15634       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15635     fi
15636     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15637     ;;
15638    hppa*64*)
15639      shrext_cmds='.sl'
15640      hardcode_into_libs=yes
15641      dynamic_linker="$host_os dld.sl"
15642      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15643      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15644      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15645      soname_spec='${libname}${release}${shared_ext}$major'
15646      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15647      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15648      ;;
15649    *)
15650     shrext_cmds='.sl'
15651     dynamic_linker="$host_os dld.sl"
15652     shlibpath_var=SHLIB_PATH
15653     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15654     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15655     soname_spec='${libname}${release}${shared_ext}$major'
15656     ;;
15657   esac
15658   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15659   postinstall_cmds='chmod 555 $lib'
15660   ;;
15661
15662 interix3*)
15663   version_type=linux
15664   need_lib_prefix=no
15665   need_version=no
15666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15667   soname_spec='${libname}${release}${shared_ext}$major'
15668   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15669   shlibpath_var=LD_LIBRARY_PATH
15670   shlibpath_overrides_runpath=no
15671   hardcode_into_libs=yes
15672   ;;
15673
15674 irix5* | irix6* | nonstopux*)
15675   case $host_os in
15676     nonstopux*) version_type=nonstopux ;;
15677     *)
15678         if test "$lt_cv_prog_gnu_ld" = yes; then
15679                 version_type=linux
15680         else
15681                 version_type=irix
15682         fi ;;
15683   esac
15684   need_lib_prefix=no
15685   need_version=no
15686   soname_spec='${libname}${release}${shared_ext}$major'
15687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15688   case $host_os in
15689   irix5* | nonstopux*)
15690     libsuff= shlibsuff=
15691     ;;
15692   *)
15693     case $LD in # libtool.m4 will add one of these switches to LD
15694     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15695       libsuff= shlibsuff= libmagic=32-bit;;
15696     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15697       libsuff=32 shlibsuff=N32 libmagic=N32;;
15698     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15699       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15700     *) libsuff= shlibsuff= libmagic=never-match;;
15701     esac
15702     ;;
15703   esac
15704   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15705   shlibpath_overrides_runpath=no
15706   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15707   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15708   hardcode_into_libs=yes
15709   ;;
15710
15711 # No shared lib support for Linux oldld, aout, or coff.
15712 linux*oldld* | linux*aout* | linux*coff*)
15713   dynamic_linker=no
15714   ;;
15715
15716 # This must be Linux ELF.
15717 linux* | k*bsd*-gnu)
15718   version_type=linux
15719   need_lib_prefix=no
15720   need_version=no
15721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15722   soname_spec='${libname}${release}${shared_ext}$major'
15723   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15724   shlibpath_var=LD_LIBRARY_PATH
15725   shlibpath_overrides_runpath=no
15726   # This implies no fast_install, which is unacceptable.
15727   # Some rework will be needed to allow for fast_install
15728   # before this can be enabled.
15729   hardcode_into_libs=yes
15730
15731   # Append ld.so.conf contents to the search path
15732   if test -f /etc/ld.so.conf; then
15733     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15734     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15735   fi
15736
15737   # We used to test for /lib/ld.so.1 and disable shared libraries on
15738   # powerpc, because MkLinux only supported shared libraries with the
15739   # GNU dynamic linker.  Since this was broken with cross compilers,
15740   # most powerpc-linux boxes support dynamic linking these days and
15741   # people can always --disable-shared, the test was removed, and we
15742   # assume the GNU/Linux dynamic linker is in use.
15743   dynamic_linker='GNU/Linux ld.so'
15744   ;;
15745
15746 netbsdelf*-gnu)
15747   version_type=linux
15748   need_lib_prefix=no
15749   need_version=no
15750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15751   soname_spec='${libname}${release}${shared_ext}$major'
15752   shlibpath_var=LD_LIBRARY_PATH
15753   shlibpath_overrides_runpath=no
15754   hardcode_into_libs=yes
15755   dynamic_linker='NetBSD ld.elf_so'
15756   ;;
15757
15758 netbsd*)
15759   version_type=sunos
15760   need_lib_prefix=no
15761   need_version=no
15762   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15763     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15764     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15765     dynamic_linker='NetBSD (a.out) ld.so'
15766   else
15767     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15768     soname_spec='${libname}${release}${shared_ext}$major'
15769     dynamic_linker='NetBSD ld.elf_so'
15770   fi
15771   shlibpath_var=LD_LIBRARY_PATH
15772   shlibpath_overrides_runpath=yes
15773   hardcode_into_libs=yes
15774   ;;
15775
15776 newsos6)
15777   version_type=linux
15778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15779   shlibpath_var=LD_LIBRARY_PATH
15780   shlibpath_overrides_runpath=yes
15781   ;;
15782
15783 nto-qnx*)
15784   version_type=linux
15785   need_lib_prefix=no
15786   need_version=no
15787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15788   soname_spec='${libname}${release}${shared_ext}$major'
15789   shlibpath_var=LD_LIBRARY_PATH
15790   shlibpath_overrides_runpath=yes
15791   ;;
15792
15793 openbsd*)
15794   version_type=sunos
15795   sys_lib_dlsearch_path_spec="/usr/lib"
15796   need_lib_prefix=no
15797   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15798   case $host_os in
15799     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15800     *)                         need_version=no  ;;
15801   esac
15802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15803   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15804   shlibpath_var=LD_LIBRARY_PATH
15805   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15806     case $host_os in
15807       openbsd2.[89] | openbsd2.[89].*)
15808         shlibpath_overrides_runpath=no
15809         ;;
15810       *)
15811         shlibpath_overrides_runpath=yes
15812         ;;
15813       esac
15814   else
15815     shlibpath_overrides_runpath=yes
15816   fi
15817   ;;
15818
15819 os2*)
15820   libname_spec='$name'
15821   shrext_cmds=".dll"
15822   need_lib_prefix=no
15823   library_names_spec='$libname${shared_ext} $libname.a'
15824   dynamic_linker='OS/2 ld.exe'
15825   shlibpath_var=LIBPATH
15826   ;;
15827
15828 osf3* | osf4* | osf5*)
15829   version_type=osf
15830   need_lib_prefix=no
15831   need_version=no
15832   soname_spec='${libname}${release}${shared_ext}$major'
15833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15834   shlibpath_var=LD_LIBRARY_PATH
15835   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15836   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15837   ;;
15838
15839 solaris*)
15840   version_type=linux
15841   need_lib_prefix=no
15842   need_version=no
15843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15844   soname_spec='${libname}${release}${shared_ext}$major'
15845   shlibpath_var=LD_LIBRARY_PATH
15846   shlibpath_overrides_runpath=yes
15847   hardcode_into_libs=yes
15848   # ldd complains unless libraries are executable
15849   postinstall_cmds='chmod +x $lib'
15850   ;;
15851
15852 sunos4*)
15853   version_type=sunos
15854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15855   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15856   shlibpath_var=LD_LIBRARY_PATH
15857   shlibpath_overrides_runpath=yes
15858   if test "$with_gnu_ld" = yes; then
15859     need_lib_prefix=no
15860   fi
15861   need_version=yes
15862   ;;
15863
15864 sysv4 | sysv4.3*)
15865   version_type=linux
15866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15867   soname_spec='${libname}${release}${shared_ext}$major'
15868   shlibpath_var=LD_LIBRARY_PATH
15869   case $host_vendor in
15870     sni)
15871       shlibpath_overrides_runpath=no
15872       need_lib_prefix=no
15873       export_dynamic_flag_spec='${wl}-Blargedynsym'
15874       runpath_var=LD_RUN_PATH
15875       ;;
15876     siemens)
15877       need_lib_prefix=no
15878       ;;
15879     motorola)
15880       need_lib_prefix=no
15881       need_version=no
15882       shlibpath_overrides_runpath=no
15883       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15884       ;;
15885   esac
15886   ;;
15887
15888 sysv4*MP*)
15889   if test -d /usr/nec ;then
15890     version_type=linux
15891     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15892     soname_spec='$libname${shared_ext}.$major'
15893     shlibpath_var=LD_LIBRARY_PATH
15894   fi
15895   ;;
15896
15897 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15898   version_type=freebsd-elf
15899   need_lib_prefix=no
15900   need_version=no
15901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15902   soname_spec='${libname}${release}${shared_ext}$major'
15903   shlibpath_var=LD_LIBRARY_PATH
15904   hardcode_into_libs=yes
15905   if test "$with_gnu_ld" = yes; then
15906     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15907     shlibpath_overrides_runpath=no
15908   else
15909     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15910     shlibpath_overrides_runpath=yes
15911     case $host_os in
15912       sco3.2v5*)
15913         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15914         ;;
15915     esac
15916   fi
15917   sys_lib_dlsearch_path_spec='/usr/lib'
15918   ;;
15919
15920 uts4*)
15921   version_type=linux
15922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15923   soname_spec='${libname}${release}${shared_ext}$major'
15924   shlibpath_var=LD_LIBRARY_PATH
15925   ;;
15926
15927 *)
15928   dynamic_linker=no
15929   ;;
15930 esac
15931 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15932 echo "${ECHO_T}$dynamic_linker" >&6; }
15933 test "$dynamic_linker" = no && can_build_shared=no
15934
15935 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15936 if test "$GCC" = yes; then
15937   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15938 fi
15939
15940 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15941 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15942 hardcode_action_F77=
15943 if test -n "$hardcode_libdir_flag_spec_F77" || \
15944    test -n "$runpath_var_F77" || \
15945    test "X$hardcode_automatic_F77" = "Xyes" ; then
15946
15947   # We can hardcode non-existant directories.
15948   if test "$hardcode_direct_F77" != no &&
15949      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15950      # have to relink, otherwise we might link with an installed library
15951      # when we should be linking with a yet-to-be-installed one
15952      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15953      test "$hardcode_minus_L_F77" != no; then
15954     # Linking always hardcodes the temporary library directory.
15955     hardcode_action_F77=relink
15956   else
15957     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15958     hardcode_action_F77=immediate
15959   fi
15960 else
15961   # We cannot hardcode anything, or else we can only hardcode existing
15962   # directories.
15963   hardcode_action_F77=unsupported
15964 fi
15965 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15966 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15967
15968 if test "$hardcode_action_F77" = relink; then
15969   # Fast installation is not supported
15970   enable_fast_install=no
15971 elif test "$shlibpath_overrides_runpath" = yes ||
15972      test "$enable_shared" = no; then
15973   # Fast installation is not necessary
15974   enable_fast_install=needless
15975 fi
15976
15977
15978 # The else clause should only fire when bootstrapping the
15979 # libtool distribution, otherwise you forgot to ship ltmain.sh
15980 # with your package, and you will get complaints that there are
15981 # no rules to generate ltmain.sh.
15982 if test -f "$ltmain"; then
15983   # See if we are running on zsh, and set the options which allow our commands through
15984   # without removal of \ escapes.
15985   if test -n "${ZSH_VERSION+set}" ; then
15986     setopt NO_GLOB_SUBST
15987   fi
15988   # Now quote all the things that may contain metacharacters while being
15989   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15990   # variables and quote the copies for generation of the libtool script.
15991   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15992     SED SHELL STRIP \
15993     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15994     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15995     deplibs_check_method reload_flag reload_cmds need_locks \
15996     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15997     lt_cv_sys_global_symbol_to_c_name_address \
15998     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15999     old_postinstall_cmds old_postuninstall_cmds \
16000     compiler_F77 \
16001     CC_F77 \
16002     LD_F77 \
16003     lt_prog_compiler_wl_F77 \
16004     lt_prog_compiler_pic_F77 \
16005     lt_prog_compiler_static_F77 \
16006     lt_prog_compiler_no_builtin_flag_F77 \
16007     export_dynamic_flag_spec_F77 \
16008     thread_safe_flag_spec_F77 \
16009     whole_archive_flag_spec_F77 \
16010     enable_shared_with_static_runtimes_F77 \
16011     old_archive_cmds_F77 \
16012     old_archive_from_new_cmds_F77 \
16013     predep_objects_F77 \
16014     postdep_objects_F77 \
16015     predeps_F77 \
16016     postdeps_F77 \
16017     compiler_lib_search_path_F77 \
16018     archive_cmds_F77 \
16019     archive_expsym_cmds_F77 \
16020     postinstall_cmds_F77 \
16021     postuninstall_cmds_F77 \
16022     old_archive_from_expsyms_cmds_F77 \
16023     allow_undefined_flag_F77 \
16024     no_undefined_flag_F77 \
16025     export_symbols_cmds_F77 \
16026     hardcode_libdir_flag_spec_F77 \
16027     hardcode_libdir_flag_spec_ld_F77 \
16028     hardcode_libdir_separator_F77 \
16029     hardcode_automatic_F77 \
16030     module_cmds_F77 \
16031     module_expsym_cmds_F77 \
16032     lt_cv_prog_compiler_c_o_F77 \
16033     exclude_expsyms_F77 \
16034     include_expsyms_F77; do
16035
16036     case $var in
16037     old_archive_cmds_F77 | \
16038     old_archive_from_new_cmds_F77 | \
16039     archive_cmds_F77 | \
16040     archive_expsym_cmds_F77 | \
16041     module_cmds_F77 | \
16042     module_expsym_cmds_F77 | \
16043     old_archive_from_expsyms_cmds_F77 | \
16044     export_symbols_cmds_F77 | \
16045     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16046     postinstall_cmds | postuninstall_cmds | \
16047     old_postinstall_cmds | old_postuninstall_cmds | \
16048     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16049       # Double-quote double-evaled strings.
16050       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16051       ;;
16052     *)
16053       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16054       ;;
16055     esac
16056   done
16057
16058   case $lt_echo in
16059   *'\$0 --fallback-echo"')
16060     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16061     ;;
16062   esac
16063
16064 cfgfile="$ofile"
16065
16066   cat <<__EOF__ >> "$cfgfile"
16067 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16068
16069 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16070
16071 # Shell to use when invoking shell scripts.
16072 SHELL=$lt_SHELL
16073
16074 # Whether or not to build shared libraries.
16075 build_libtool_libs=$enable_shared
16076
16077 # Whether or not to build static libraries.
16078 build_old_libs=$enable_static
16079
16080 # Whether or not to add -lc for building shared libraries.
16081 build_libtool_need_lc=$archive_cmds_need_lc_F77
16082
16083 # Whether or not to disallow shared libs when runtime libs are static
16084 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16085
16086 # Whether or not to optimize for fast installation.
16087 fast_install=$enable_fast_install
16088
16089 # The host system.
16090 host_alias=$host_alias
16091 host=$host
16092 host_os=$host_os
16093
16094 # The build system.
16095 build_alias=$build_alias
16096 build=$build
16097 build_os=$build_os
16098
16099 # An echo program that does not interpret backslashes.
16100 echo=$lt_echo
16101
16102 # The archiver.
16103 AR=$lt_AR
16104 AR_FLAGS=$lt_AR_FLAGS
16105
16106 # A C compiler.
16107 LTCC=$lt_LTCC
16108
16109 # LTCC compiler flags.
16110 LTCFLAGS=$lt_LTCFLAGS
16111
16112 # A language-specific compiler.
16113 CC=$lt_compiler_F77
16114
16115 # Is the compiler the GNU C compiler?
16116 with_gcc=$GCC_F77
16117
16118 # An ERE matcher.
16119 EGREP=$lt_EGREP
16120
16121 # The linker used to build libraries.
16122 LD=$lt_LD_F77
16123
16124 # Whether we need hard or soft links.
16125 LN_S=$lt_LN_S
16126
16127 # A BSD-compatible nm program.
16128 NM=$lt_NM
16129
16130 # A symbol stripping program
16131 STRIP=$lt_STRIP
16132
16133 # Used to examine libraries when file_magic_cmd begins "file"
16134 MAGIC_CMD=$MAGIC_CMD
16135
16136 # Used on cygwin: DLL creation program.
16137 DLLTOOL="$DLLTOOL"
16138
16139 # Used on cygwin: object dumper.
16140 OBJDUMP="$OBJDUMP"
16141
16142 # Used on cygwin: assembler.
16143 AS="$AS"
16144
16145 # The name of the directory that contains temporary libtool files.
16146 objdir=$objdir
16147
16148 # How to create reloadable object files.
16149 reload_flag=$lt_reload_flag
16150 reload_cmds=$lt_reload_cmds
16151
16152 # How to pass a linker flag through the compiler.
16153 wl=$lt_lt_prog_compiler_wl_F77
16154
16155 # Object file suffix (normally "o").
16156 objext="$ac_objext"
16157
16158 # Old archive suffix (normally "a").
16159 libext="$libext"
16160
16161 # Shared library suffix (normally ".so").
16162 shrext_cmds='$shrext_cmds'
16163
16164 # Executable file suffix (normally "").
16165 exeext="$exeext"
16166
16167 # Additional compiler flags for building library objects.
16168 pic_flag=$lt_lt_prog_compiler_pic_F77
16169 pic_mode=$pic_mode
16170
16171 # What is the maximum length of a command?
16172 max_cmd_len=$lt_cv_sys_max_cmd_len
16173
16174 # Does compiler simultaneously support -c and -o options?
16175 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16176
16177 # Must we lock files when doing compilation?
16178 need_locks=$lt_need_locks
16179
16180 # Do we need the lib prefix for modules?
16181 need_lib_prefix=$need_lib_prefix
16182
16183 # Do we need a version for libraries?
16184 need_version=$need_version
16185
16186 # Whether dlopen is supported.
16187 dlopen_support=$enable_dlopen
16188
16189 # Whether dlopen of programs is supported.
16190 dlopen_self=$enable_dlopen_self
16191
16192 # Whether dlopen of statically linked programs is supported.
16193 dlopen_self_static=$enable_dlopen_self_static
16194
16195 # Compiler flag to prevent dynamic linking.
16196 link_static_flag=$lt_lt_prog_compiler_static_F77
16197
16198 # Compiler flag to turn off builtin functions.
16199 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16200
16201 # Compiler flag to allow reflexive dlopens.
16202 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16203
16204 # Compiler flag to generate shared objects directly from archives.
16205 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16206
16207 # Compiler flag to generate thread-safe objects.
16208 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16209
16210 # Library versioning type.
16211 version_type=$version_type
16212
16213 # Format of library name prefix.
16214 libname_spec=$lt_libname_spec
16215
16216 # List of archive names.  First name is the real one, the rest are links.
16217 # The last name is the one that the linker finds with -lNAME.
16218 library_names_spec=$lt_library_names_spec
16219
16220 # The coded name of the library, if different from the real name.
16221 soname_spec=$lt_soname_spec
16222
16223 # Commands used to build and install an old-style archive.
16224 RANLIB=$lt_RANLIB
16225 old_archive_cmds=$lt_old_archive_cmds_F77
16226 old_postinstall_cmds=$lt_old_postinstall_cmds
16227 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16228
16229 # Create an old-style archive from a shared archive.
16230 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16231
16232 # Create a temporary old-style archive to link instead of a shared archive.
16233 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16234
16235 # Commands used to build and install a shared archive.
16236 archive_cmds=$lt_archive_cmds_F77
16237 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16238 postinstall_cmds=$lt_postinstall_cmds
16239 postuninstall_cmds=$lt_postuninstall_cmds
16240
16241 # Commands used to build a loadable module (assumed same as above if empty)
16242 module_cmds=$lt_module_cmds_F77
16243 module_expsym_cmds=$lt_module_expsym_cmds_F77
16244
16245 # Commands to strip libraries.
16246 old_striplib=$lt_old_striplib
16247 striplib=$lt_striplib
16248
16249 # Dependencies to place before the objects being linked to create a
16250 # shared library.
16251 predep_objects=$lt_predep_objects_F77
16252
16253 # Dependencies to place after the objects being linked to create a
16254 # shared library.
16255 postdep_objects=$lt_postdep_objects_F77
16256
16257 # Dependencies to place before the objects being linked to create a
16258 # shared library.
16259 predeps=$lt_predeps_F77
16260
16261 # Dependencies to place after the objects being linked to create a
16262 # shared library.
16263 postdeps=$lt_postdeps_F77
16264
16265 # The library search path used internally by the compiler when linking
16266 # a shared library.
16267 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16268
16269 # Method to check whether dependent libraries are shared objects.
16270 deplibs_check_method=$lt_deplibs_check_method
16271
16272 # Command to use when deplibs_check_method == file_magic.
16273 file_magic_cmd=$lt_file_magic_cmd
16274
16275 # Flag that allows shared libraries with undefined symbols to be built.
16276 allow_undefined_flag=$lt_allow_undefined_flag_F77
16277
16278 # Flag that forces no undefined symbols.
16279 no_undefined_flag=$lt_no_undefined_flag_F77
16280
16281 # Commands used to finish a libtool library installation in a directory.
16282 finish_cmds=$lt_finish_cmds
16283
16284 # Same as above, but a single script fragment to be evaled but not shown.
16285 finish_eval=$lt_finish_eval
16286
16287 # Take the output of nm and produce a listing of raw symbols and C names.
16288 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16289
16290 # Transform the output of nm in a proper C declaration
16291 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16292
16293 # Transform the output of nm in a C name address pair
16294 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16295
16296 # This is the shared library runtime path variable.
16297 runpath_var=$runpath_var
16298
16299 # This is the shared library path variable.
16300 shlibpath_var=$shlibpath_var
16301
16302 # Is shlibpath searched before the hard-coded library search path?
16303 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16304
16305 # How to hardcode a shared library path into an executable.
16306 hardcode_action=$hardcode_action_F77
16307
16308 # Whether we should hardcode library paths into libraries.
16309 hardcode_into_libs=$hardcode_into_libs
16310
16311 # Flag to hardcode \$libdir into a binary during linking.
16312 # This must work even if \$libdir does not exist.
16313 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16314
16315 # If ld is used when linking, flag to hardcode \$libdir into
16316 # a binary during linking. This must work even if \$libdir does
16317 # not exist.
16318 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16319
16320 # Whether we need a single -rpath flag with a separated argument.
16321 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16322
16323 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16324 # resulting binary.
16325 hardcode_direct=$hardcode_direct_F77
16326
16327 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16328 # resulting binary.
16329 hardcode_minus_L=$hardcode_minus_L_F77
16330
16331 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16332 # the resulting binary.
16333 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16334
16335 # Set to yes if building a shared library automatically hardcodes DIR into the library
16336 # and all subsequent libraries and executables linked against it.
16337 hardcode_automatic=$hardcode_automatic_F77
16338
16339 # Variables whose values should be saved in libtool wrapper scripts and
16340 # restored at relink time.
16341 variables_saved_for_relink="$variables_saved_for_relink"
16342
16343 # Whether libtool must link a program against all its dependency libraries.
16344 link_all_deplibs=$link_all_deplibs_F77
16345
16346 # Compile-time system search path for libraries
16347 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16348
16349 # Run-time system search path for libraries
16350 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16351
16352 # Fix the shell variable \$srcfile for the compiler.
16353 fix_srcfile_path="$fix_srcfile_path_F77"
16354
16355 # Set to yes if exported symbols are required.
16356 always_export_symbols=$always_export_symbols_F77
16357
16358 # The commands to list exported symbols.
16359 export_symbols_cmds=$lt_export_symbols_cmds_F77
16360
16361 # The commands to extract the exported symbol list from a shared archive.
16362 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16363
16364 # Symbols that should not be listed in the preloaded symbols.
16365 exclude_expsyms=$lt_exclude_expsyms_F77
16366
16367 # Symbols that must always be exported.
16368 include_expsyms=$lt_include_expsyms_F77
16369
16370 # ### END LIBTOOL TAG CONFIG: $tagname
16371
16372 __EOF__
16373
16374
16375 else
16376   # If there is no Makefile yet, we rely on a make rule to execute
16377   # `config.status --recheck' to rerun these tests and create the
16378   # libtool script then.
16379   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16380   if test -f "$ltmain_in"; then
16381     test -f Makefile && make "$ltmain"
16382   fi
16383 fi
16384
16385
16386 ac_ext=c
16387 ac_cpp='$CPP $CPPFLAGS'
16388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16391
16392 CC="$lt_save_CC"
16393
16394         else
16395           tagname=""
16396         fi
16397         ;;
16398
16399       GCJ)
16400         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16401
16402
16403 # Source file extension for Java test sources.
16404 ac_ext=java
16405
16406 # Object file extension for compiled Java test sources.
16407 objext=o
16408 objext_GCJ=$objext
16409
16410 # Code to be used in simple compile tests
16411 lt_simple_compile_test_code="class foo {}\n"
16412
16413 # Code to be used in simple link tests
16414 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16415
16416 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16417
16418 # If no C compiler was specified, use CC.
16419 LTCC=${LTCC-"$CC"}
16420
16421 # If no C compiler flags were specified, use CFLAGS.
16422 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16423
16424 # Allow CC to be a program name with arguments.
16425 compiler=$CC
16426
16427
16428 # save warnings/boilerplate of simple test code
16429 ac_outfile=conftest.$ac_objext
16430 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16431 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16432 _lt_compiler_boilerplate=`cat conftest.err`
16433 $rm conftest*
16434
16435 ac_outfile=conftest.$ac_objext
16436 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16437 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16438 _lt_linker_boilerplate=`cat conftest.err`
16439 $rm conftest*
16440
16441
16442 # Allow CC to be a program name with arguments.
16443 lt_save_CC="$CC"
16444 CC=${GCJ-"gcj"}
16445 compiler=$CC
16446 compiler_GCJ=$CC
16447 for cc_temp in $compiler""; do
16448   case $cc_temp in
16449     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16450     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16451     \-*) ;;
16452     *) break;;
16453   esac
16454 done
16455 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16456
16457
16458 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16459 archive_cmds_need_lc_GCJ=no
16460
16461 old_archive_cmds_GCJ=$old_archive_cmds
16462
16463
16464 lt_prog_compiler_no_builtin_flag_GCJ=
16465
16466 if test "$GCC" = yes; then
16467   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16468
16469
16470 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16471 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16472 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16473   echo $ECHO_N "(cached) $ECHO_C" >&6
16474 else
16475   lt_cv_prog_compiler_rtti_exceptions=no
16476   ac_outfile=conftest.$ac_objext
16477    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16478    lt_compiler_flag="-fno-rtti -fno-exceptions"
16479    # Insert the option either (1) after the last *FLAGS variable, or
16480    # (2) before a word containing "conftest.", or (3) at the end.
16481    # Note that $ac_compile itself does not contain backslashes and begins
16482    # with a dollar sign (not a hyphen), so the echo should work correctly.
16483    # The option is referenced via a variable to avoid confusing sed.
16484    lt_compile=`echo "$ac_compile" | $SED \
16485    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16486    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16487    -e 's:$: $lt_compiler_flag:'`
16488    (eval echo "\"\$as_me:16488: $lt_compile\"" >&5)
16489    (eval "$lt_compile" 2>conftest.err)
16490    ac_status=$?
16491    cat conftest.err >&5
16492    echo "$as_me:16492: \$? = $ac_status" >&5
16493    if (exit $ac_status) && test -s "$ac_outfile"; then
16494      # The compiler can only warn and ignore the option if not recognized
16495      # So say no if there are warnings other than the usual output.
16496      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16497      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16498      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16499        lt_cv_prog_compiler_rtti_exceptions=yes
16500      fi
16501    fi
16502    $rm conftest*
16503
16504 fi
16505 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16506 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16507
16508 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16509     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16510 else
16511     :
16512 fi
16513
16514 fi
16515
16516 lt_prog_compiler_wl_GCJ=
16517 lt_prog_compiler_pic_GCJ=
16518 lt_prog_compiler_static_GCJ=
16519
16520 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16521 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16522
16523   if test "$GCC" = yes; then
16524     lt_prog_compiler_wl_GCJ='-Wl,'
16525     lt_prog_compiler_static_GCJ='-static'
16526
16527     case $host_os in
16528       aix*)
16529       # All AIX code is PIC.
16530       if test "$host_cpu" = ia64; then
16531         # AIX 5 now supports IA64 processor
16532         lt_prog_compiler_static_GCJ='-Bstatic'
16533       fi
16534       ;;
16535
16536     amigaos*)
16537       # FIXME: we need at least 68020 code to build shared libraries, but
16538       # adding the `-m68020' flag to GCC prevents building anything better,
16539       # like `-m68040'.
16540       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16541       ;;
16542
16543     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16544       # PIC is the default for these OSes.
16545       ;;
16546
16547     mingw* | pw32* | os2*)
16548       # This hack is so that the source file can tell whether it is being
16549       # built for inclusion in a dll (and should export symbols for example).
16550       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16551       ;;
16552
16553     darwin* | rhapsody*)
16554       # PIC is the default on this platform
16555       # Common symbols not allowed in MH_DYLIB files
16556       lt_prog_compiler_pic_GCJ='-fno-common'
16557       ;;
16558
16559     interix3*)
16560       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16561       # Instead, we relocate shared libraries at runtime.
16562       ;;
16563
16564     msdosdjgpp*)
16565       # Just because we use GCC doesn't mean we suddenly get shared libraries
16566       # on systems that don't support them.
16567       lt_prog_compiler_can_build_shared_GCJ=no
16568       enable_shared=no
16569       ;;
16570
16571     sysv4*MP*)
16572       if test -d /usr/nec; then
16573         lt_prog_compiler_pic_GCJ=-Kconform_pic
16574       fi
16575       ;;
16576
16577     hpux*)
16578       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16579       # not for PA HP-UX.
16580       case $host_cpu in
16581       hppa*64*|ia64*)
16582         # +Z the default
16583         ;;
16584       *)
16585         lt_prog_compiler_pic_GCJ='-fPIC'
16586         ;;
16587       esac
16588       ;;
16589
16590     *)
16591       lt_prog_compiler_pic_GCJ='-fPIC'
16592       ;;
16593     esac
16594   else
16595     # PORTME Check for flag to pass linker flags through the system compiler.
16596     case $host_os in
16597     aix*)
16598       lt_prog_compiler_wl_GCJ='-Wl,'
16599       if test "$host_cpu" = ia64; then
16600         # AIX 5 now supports IA64 processor
16601         lt_prog_compiler_static_GCJ='-Bstatic'
16602       else
16603         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16604       fi
16605       ;;
16606       darwin*)
16607         # PIC is the default on this platform
16608         # Common symbols not allowed in MH_DYLIB files
16609        case $cc_basename in
16610          xlc*)
16611          lt_prog_compiler_pic_GCJ='-qnocommon'
16612          lt_prog_compiler_wl_GCJ='-Wl,'
16613          ;;
16614        esac
16615        ;;
16616
16617     mingw* | pw32* | os2*)
16618       # This hack is so that the source file can tell whether it is being
16619       # built for inclusion in a dll (and should export symbols for example).
16620       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16621       ;;
16622
16623     hpux9* | hpux10* | hpux11*)
16624       lt_prog_compiler_wl_GCJ='-Wl,'
16625       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16626       # not for PA HP-UX.
16627       case $host_cpu in
16628       hppa*64*|ia64*)
16629         # +Z the default
16630         ;;
16631       *)
16632         lt_prog_compiler_pic_GCJ='+Z'
16633         ;;
16634       esac
16635       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16636       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16637       ;;
16638
16639     irix5* | irix6* | nonstopux*)
16640       lt_prog_compiler_wl_GCJ='-Wl,'
16641       # PIC (with -KPIC) is the default.
16642       lt_prog_compiler_static_GCJ='-non_shared'
16643       ;;
16644
16645     newsos6)
16646       lt_prog_compiler_pic_GCJ='-KPIC'
16647       lt_prog_compiler_static_GCJ='-Bstatic'
16648       ;;
16649
16650     linux* | k*bsd*-gnu)
16651       case $cc_basename in
16652       icc* | ecc*)
16653         lt_prog_compiler_wl_GCJ='-Wl,'
16654         lt_prog_compiler_pic_GCJ='-KPIC'
16655         lt_prog_compiler_static_GCJ='-static'
16656         ;;
16657       pgcc* | pgf77* | pgf90* | pgf95*)
16658         # Portland Group compilers (*not* the Pentium gcc compiler,
16659         # which looks to be a dead project)
16660         lt_prog_compiler_wl_GCJ='-Wl,'
16661         lt_prog_compiler_pic_GCJ='-fpic'
16662         lt_prog_compiler_static_GCJ='-Bstatic'
16663         ;;
16664       ccc*)
16665         lt_prog_compiler_wl_GCJ='-Wl,'
16666         # All Alpha code is PIC.
16667         lt_prog_compiler_static_GCJ='-non_shared'
16668         ;;
16669       esac
16670       ;;
16671
16672     osf3* | osf4* | osf5*)
16673       lt_prog_compiler_wl_GCJ='-Wl,'
16674       # All OSF/1 code is PIC.
16675       lt_prog_compiler_static_GCJ='-non_shared'
16676       ;;
16677
16678     solaris*)
16679       lt_prog_compiler_pic_GCJ='-KPIC'
16680       lt_prog_compiler_static_GCJ='-Bstatic'
16681       case $cc_basename in
16682       f77* | f90* | f95*)
16683         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16684       *)
16685         lt_prog_compiler_wl_GCJ='-Wl,';;
16686       esac
16687       ;;
16688
16689     sunos4*)
16690       lt_prog_compiler_wl_GCJ='-Qoption ld '
16691       lt_prog_compiler_pic_GCJ='-PIC'
16692       lt_prog_compiler_static_GCJ='-Bstatic'
16693       ;;
16694
16695     sysv4 | sysv4.2uw2* | sysv4.3*)
16696       lt_prog_compiler_wl_GCJ='-Wl,'
16697       lt_prog_compiler_pic_GCJ='-KPIC'
16698       lt_prog_compiler_static_GCJ='-Bstatic'
16699       ;;
16700
16701     sysv4*MP*)
16702       if test -d /usr/nec ;then
16703         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16704         lt_prog_compiler_static_GCJ='-Bstatic'
16705       fi
16706       ;;
16707
16708     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16709       lt_prog_compiler_wl_GCJ='-Wl,'
16710       lt_prog_compiler_pic_GCJ='-KPIC'
16711       lt_prog_compiler_static_GCJ='-Bstatic'
16712       ;;
16713
16714     unicos*)
16715       lt_prog_compiler_wl_GCJ='-Wl,'
16716       lt_prog_compiler_can_build_shared_GCJ=no
16717       ;;
16718
16719     uts4*)
16720       lt_prog_compiler_pic_GCJ='-pic'
16721       lt_prog_compiler_static_GCJ='-Bstatic'
16722       ;;
16723
16724     *)
16725       lt_prog_compiler_can_build_shared_GCJ=no
16726       ;;
16727     esac
16728   fi
16729
16730 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16731 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16732
16733 #
16734 # Check to make sure the PIC flag actually works.
16735 #
16736 if test -n "$lt_prog_compiler_pic_GCJ"; then
16737
16738 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16739 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16740 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16741   echo $ECHO_N "(cached) $ECHO_C" >&6
16742 else
16743   lt_prog_compiler_pic_works_GCJ=no
16744   ac_outfile=conftest.$ac_objext
16745    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16746    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16747    # Insert the option either (1) after the last *FLAGS variable, or
16748    # (2) before a word containing "conftest.", or (3) at the end.
16749    # Note that $ac_compile itself does not contain backslashes and begins
16750    # with a dollar sign (not a hyphen), so the echo should work correctly.
16751    # The option is referenced via a variable to avoid confusing sed.
16752    lt_compile=`echo "$ac_compile" | $SED \
16753    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16754    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16755    -e 's:$: $lt_compiler_flag:'`
16756    (eval echo "\"\$as_me:16756: $lt_compile\"" >&5)
16757    (eval "$lt_compile" 2>conftest.err)
16758    ac_status=$?
16759    cat conftest.err >&5
16760    echo "$as_me:16760: \$? = $ac_status" >&5
16761    if (exit $ac_status) && test -s "$ac_outfile"; then
16762      # The compiler can only warn and ignore the option if not recognized
16763      # So say no if there are warnings other than the usual output.
16764      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16765      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16766      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16767        lt_prog_compiler_pic_works_GCJ=yes
16768      fi
16769    fi
16770    $rm conftest*
16771
16772 fi
16773 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16774 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16775
16776 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16777     case $lt_prog_compiler_pic_GCJ in
16778      "" | " "*) ;;
16779      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16780      esac
16781 else
16782     lt_prog_compiler_pic_GCJ=
16783      lt_prog_compiler_can_build_shared_GCJ=no
16784 fi
16785
16786 fi
16787 case $host_os in
16788   # For platforms which do not support PIC, -DPIC is meaningless:
16789   *djgpp*)
16790     lt_prog_compiler_pic_GCJ=
16791     ;;
16792   *)
16793     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16794     ;;
16795 esac
16796
16797 #
16798 # Check to make sure the static flag actually works.
16799 #
16800 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16801 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16802 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16803 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16804   echo $ECHO_N "(cached) $ECHO_C" >&6
16805 else
16806   lt_prog_compiler_static_works_GCJ=no
16807    save_LDFLAGS="$LDFLAGS"
16808    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16809    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16810    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16811      # The linker can only warn and ignore the option if not recognized
16812      # So say no if there are warnings
16813      if test -s conftest.err; then
16814        # Append any errors to the config.log.
16815        cat conftest.err 1>&5
16816        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16817        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16818        if diff conftest.exp conftest.er2 >/dev/null; then
16819          lt_prog_compiler_static_works_GCJ=yes
16820        fi
16821      else
16822        lt_prog_compiler_static_works_GCJ=yes
16823      fi
16824    fi
16825    $rm conftest*
16826    LDFLAGS="$save_LDFLAGS"
16827
16828 fi
16829 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16830 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16831
16832 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16833     :
16834 else
16835     lt_prog_compiler_static_GCJ=
16836 fi
16837
16838
16839 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16840 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16841 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16842   echo $ECHO_N "(cached) $ECHO_C" >&6
16843 else
16844   lt_cv_prog_compiler_c_o_GCJ=no
16845    $rm -r conftest 2>/dev/null
16846    mkdir conftest
16847    cd conftest
16848    mkdir out
16849    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16850
16851    lt_compiler_flag="-o out/conftest2.$ac_objext"
16852    # Insert the option either (1) after the last *FLAGS variable, or
16853    # (2) before a word containing "conftest.", or (3) at the end.
16854    # Note that $ac_compile itself does not contain backslashes and begins
16855    # with a dollar sign (not a hyphen), so the echo should work correctly.
16856    lt_compile=`echo "$ac_compile" | $SED \
16857    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16858    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16859    -e 's:$: $lt_compiler_flag:'`
16860    (eval echo "\"\$as_me:16860: $lt_compile\"" >&5)
16861    (eval "$lt_compile" 2>out/conftest.err)
16862    ac_status=$?
16863    cat out/conftest.err >&5
16864    echo "$as_me:16864: \$? = $ac_status" >&5
16865    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16866    then
16867      # The compiler can only warn and ignore the option if not recognized
16868      # So say no if there are warnings
16869      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16870      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16871      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16872        lt_cv_prog_compiler_c_o_GCJ=yes
16873      fi
16874    fi
16875    chmod u+w . 2>&5
16876    $rm conftest*
16877    # SGI C++ compiler will create directory out/ii_files/ for
16878    # template instantiation
16879    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16880    $rm out/* && rmdir out
16881    cd ..
16882    rmdir conftest
16883    $rm conftest*
16884
16885 fi
16886 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16887 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16888
16889
16890 hard_links="nottested"
16891 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16892   # do not overwrite the value of need_locks provided by the user
16893   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16894 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16895   hard_links=yes
16896   $rm conftest*
16897   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16898   touch conftest.a
16899   ln conftest.a conftest.b 2>&5 || hard_links=no
16900   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16901   { echo "$as_me:$LINENO: result: $hard_links" >&5
16902 echo "${ECHO_T}$hard_links" >&6; }
16903   if test "$hard_links" = no; then
16904     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16905 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16906     need_locks=warn
16907   fi
16908 else
16909   need_locks=no
16910 fi
16911
16912 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16913 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16914
16915   runpath_var=
16916   allow_undefined_flag_GCJ=
16917   enable_shared_with_static_runtimes_GCJ=no
16918   archive_cmds_GCJ=
16919   archive_expsym_cmds_GCJ=
16920   old_archive_From_new_cmds_GCJ=
16921   old_archive_from_expsyms_cmds_GCJ=
16922   export_dynamic_flag_spec_GCJ=
16923   whole_archive_flag_spec_GCJ=
16924   thread_safe_flag_spec_GCJ=
16925   hardcode_libdir_flag_spec_GCJ=
16926   hardcode_libdir_flag_spec_ld_GCJ=
16927   hardcode_libdir_separator_GCJ=
16928   hardcode_direct_GCJ=no
16929   hardcode_minus_L_GCJ=no
16930   hardcode_shlibpath_var_GCJ=unsupported
16931   link_all_deplibs_GCJ=unknown
16932   hardcode_automatic_GCJ=no
16933   module_cmds_GCJ=
16934   module_expsym_cmds_GCJ=
16935   always_export_symbols_GCJ=no
16936   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16937   # include_expsyms should be a list of space-separated symbols to be *always*
16938   # included in the symbol list
16939   include_expsyms_GCJ=
16940   # exclude_expsyms can be an extended regexp of symbols to exclude
16941   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16942   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16943   # as well as any symbol that contains `d'.
16944   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16945   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16946   # platforms (ab)use it in PIC code, but their linkers get confused if
16947   # the symbol is explicitly referenced.  Since portable code cannot
16948   # rely on this symbol name, it's probably fine to never include it in
16949   # preloaded symbol tables.
16950   extract_expsyms_cmds=
16951   # Just being paranoid about ensuring that cc_basename is set.
16952   for cc_temp in $compiler""; do
16953   case $cc_temp in
16954     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16955     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16956     \-*) ;;
16957     *) break;;
16958   esac
16959 done
16960 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16961
16962   case $host_os in
16963   cygwin* | mingw* | pw32*)
16964     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16965     # When not using gcc, we currently assume that we are using
16966     # Microsoft Visual C++.
16967     if test "$GCC" != yes; then
16968       with_gnu_ld=no
16969     fi
16970     ;;
16971   interix*)
16972     # we just hope/assume this is gcc and not c89 (= MSVC++)
16973     with_gnu_ld=yes
16974     ;;
16975   openbsd*)
16976     with_gnu_ld=no
16977     ;;
16978   esac
16979
16980   ld_shlibs_GCJ=yes
16981   if test "$with_gnu_ld" = yes; then
16982     # If archive_cmds runs LD, not CC, wlarc should be empty
16983     wlarc='${wl}'
16984
16985     # Set some defaults for GNU ld with shared library support. These
16986     # are reset later if shared libraries are not supported. Putting them
16987     # here allows them to be overridden if necessary.
16988     runpath_var=LD_RUN_PATH
16989     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16990     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16991     # ancient GNU ld didn't support --whole-archive et. al.
16992     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16993         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16994       else
16995         whole_archive_flag_spec_GCJ=
16996     fi
16997     supports_anon_versioning=no
16998     case `$LD -v 2>/dev/null` in
16999       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17000       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17001       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17002       *\ 2.11.*) ;; # other 2.11 versions
17003       *) supports_anon_versioning=yes ;;
17004     esac
17005
17006     # See if GNU ld supports shared libraries.
17007     case $host_os in
17008     aix3* | aix4* | aix5*)
17009       # On AIX/PPC, the GNU linker is very broken
17010       if test "$host_cpu" != ia64; then
17011         ld_shlibs_GCJ=no
17012         cat <<EOF 1>&2
17013
17014 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17015 *** to be unable to reliably create shared libraries on AIX.
17016 *** Therefore, libtool is disabling shared libraries support.  If you
17017 *** really care for shared libraries, you may want to modify your PATH
17018 *** so that a non-GNU linker is found, and then restart.
17019
17020 EOF
17021       fi
17022       ;;
17023
17024     amigaos*)
17025       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)'
17026       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17027       hardcode_minus_L_GCJ=yes
17028
17029       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17030       # that the semantics of dynamic libraries on AmigaOS, at least up
17031       # to version 4, is to share data among multiple programs linked
17032       # with the same dynamic library.  Since this doesn't match the
17033       # behavior of shared libraries on other platforms, we can't use
17034       # them.
17035       ld_shlibs_GCJ=no
17036       ;;
17037
17038     beos*)
17039       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17040         allow_undefined_flag_GCJ=unsupported
17041         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17042         # support --undefined.  This deserves some investigation.  FIXME
17043         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17044       else
17045         ld_shlibs_GCJ=no
17046       fi
17047       ;;
17048
17049     cygwin* | mingw* | pw32*)
17050       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17051       # as there is no search path for DLLs.
17052       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17053       allow_undefined_flag_GCJ=unsupported
17054       always_export_symbols_GCJ=no
17055       enable_shared_with_static_runtimes_GCJ=yes
17056       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17057
17058       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17059         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17060         # If the export-symbols file already is a .def file (1st line
17061         # is EXPORTS), use it as is; otherwise, prepend...
17062         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17063           cp $export_symbols $output_objdir/$soname.def;
17064         else
17065           echo EXPORTS > $output_objdir/$soname.def;
17066           cat $export_symbols >> $output_objdir/$soname.def;
17067         fi~
17068         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17069       else
17070         ld_shlibs_GCJ=no
17071       fi
17072       ;;
17073
17074     interix3*)
17075       hardcode_direct_GCJ=no
17076       hardcode_shlibpath_var_GCJ=no
17077       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17078       export_dynamic_flag_spec_GCJ='${wl}-E'
17079       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17080       # Instead, shared libraries are loaded at an image base (0x10000000 by
17081       # default) and relocated if they conflict, which is a slow very memory
17082       # consuming and fragmenting process.  To avoid this, we pick a random,
17083       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17084       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17085       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'
17086       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'
17087       ;;
17088
17089     linux* | k*bsd*-gnu)
17090       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17091         tmp_addflag=
17092         case $cc_basename,$host_cpu in
17093         pgcc*)                          # Portland Group C compiler
17094           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'
17095           tmp_addflag=' $pic_flag'
17096           ;;
17097         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17098           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'
17099           tmp_addflag=' $pic_flag -Mnomain' ;;
17100         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17101           tmp_addflag=' -i_dynamic' ;;
17102         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17103           tmp_addflag=' -i_dynamic -nofor_main' ;;
17104         ifc* | ifort*)                  # Intel Fortran compiler
17105           tmp_addflag=' -nofor_main' ;;
17106         esac
17107         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17108
17109         if test $supports_anon_versioning = yes; then
17110           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17111   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17112   $echo "local: *; };" >> $output_objdir/$libname.ver~
17113           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17114         fi
17115         link_all_deplibs_GCJ=no
17116       else
17117         ld_shlibs_GCJ=no
17118       fi
17119       ;;
17120
17121     netbsd* | netbsdelf*-gnu)
17122       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17123         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17124         wlarc=
17125       else
17126         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17127         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17128       fi
17129       ;;
17130
17131     solaris*)
17132       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17133         ld_shlibs_GCJ=no
17134         cat <<EOF 1>&2
17135
17136 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17137 *** create shared libraries on Solaris systems.  Therefore, libtool
17138 *** is disabling shared libraries support.  We urge you to upgrade GNU
17139 *** binutils to release 2.9.1 or newer.  Another option is to modify
17140 *** your PATH or compiler configuration so that the native linker is
17141 *** used, and then restart.
17142
17143 EOF
17144       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17145         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17146         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17147       else
17148         ld_shlibs_GCJ=no
17149       fi
17150       ;;
17151
17152     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17153       case `$LD -v 2>&1` in
17154         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17155         ld_shlibs_GCJ=no
17156         cat <<_LT_EOF 1>&2
17157
17158 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17159 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17160 *** is disabling shared libraries support.  We urge you to upgrade GNU
17161 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17162 *** your PATH or compiler configuration so that the native linker is
17163 *** used, and then restart.
17164
17165 _LT_EOF
17166         ;;
17167         *)
17168           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17169             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17170             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17171             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17172           else
17173             ld_shlibs_GCJ=no
17174           fi
17175         ;;
17176       esac
17177       ;;
17178
17179     sunos4*)
17180       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17181       wlarc=
17182       hardcode_direct_GCJ=yes
17183       hardcode_shlibpath_var_GCJ=no
17184       ;;
17185
17186     *)
17187       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17188         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17189         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17190       else
17191         ld_shlibs_GCJ=no
17192       fi
17193       ;;
17194     esac
17195
17196     if test "$ld_shlibs_GCJ" = no; then
17197       runpath_var=
17198       hardcode_libdir_flag_spec_GCJ=
17199       export_dynamic_flag_spec_GCJ=
17200       whole_archive_flag_spec_GCJ=
17201     fi
17202   else
17203     # PORTME fill in a description of your system's linker (not GNU ld)
17204     case $host_os in
17205     aix3*)
17206       allow_undefined_flag_GCJ=unsupported
17207       always_export_symbols_GCJ=yes
17208       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'
17209       # Note: this linker hardcodes the directories in LIBPATH if there
17210       # are no directories specified by -L.
17211       hardcode_minus_L_GCJ=yes
17212       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17213         # Neither direct hardcoding nor static linking is supported with a
17214         # broken collect2.
17215         hardcode_direct_GCJ=unsupported
17216       fi
17217       ;;
17218
17219     aix4* | aix5*)
17220       if test "$host_cpu" = ia64; then
17221         # On IA64, the linker does run time linking by default, so we don't
17222         # have to do anything special.
17223         aix_use_runtimelinking=no
17224         exp_sym_flag='-Bexport'
17225         no_entry_flag=""
17226       else
17227         # If we're using GNU nm, then we don't want the "-C" option.
17228         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17229         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17230           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'
17231         else
17232           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'
17233         fi
17234         aix_use_runtimelinking=no
17235
17236         # Test if we are trying to use run time linking or normal
17237         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17238         # need to do runtime linking.
17239         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17240           for ld_flag in $LDFLAGS; do
17241           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17242             aix_use_runtimelinking=yes
17243             break
17244           fi
17245           done
17246           ;;
17247         esac
17248
17249         exp_sym_flag='-bexport'
17250         no_entry_flag='-bnoentry'
17251       fi
17252
17253       # When large executables or shared objects are built, AIX ld can
17254       # have problems creating the table of contents.  If linking a library
17255       # or program results in "error TOC overflow" add -mminimal-toc to
17256       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17257       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17258
17259       archive_cmds_GCJ=''
17260       hardcode_direct_GCJ=yes
17261       hardcode_libdir_separator_GCJ=':'
17262       link_all_deplibs_GCJ=yes
17263
17264       if test "$GCC" = yes; then
17265         case $host_os in aix4.[012]|aix4.[012].*)
17266         # We only want to do this on AIX 4.2 and lower, the check
17267         # below for broken collect2 doesn't work under 4.3+
17268           collect2name=`${CC} -print-prog-name=collect2`
17269           if test -f "$collect2name" && \
17270            strings "$collect2name" | grep resolve_lib_name >/dev/null
17271           then
17272           # We have reworked collect2
17273           hardcode_direct_GCJ=yes
17274           else
17275           # We have old collect2
17276           hardcode_direct_GCJ=unsupported
17277           # It fails to find uninstalled libraries when the uninstalled
17278           # path is not listed in the libpath.  Setting hardcode_minus_L
17279           # to unsupported forces relinking
17280           hardcode_minus_L_GCJ=yes
17281           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17282           hardcode_libdir_separator_GCJ=
17283           fi
17284           ;;
17285         esac
17286         shared_flag='-shared'
17287         if test "$aix_use_runtimelinking" = yes; then
17288           shared_flag="$shared_flag "'${wl}-G'
17289         fi
17290       else
17291         # not using gcc
17292         if test "$host_cpu" = ia64; then
17293         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17294         # chokes on -Wl,-G. The following line is correct:
17295           shared_flag='-G'
17296         else
17297           if test "$aix_use_runtimelinking" = yes; then
17298             shared_flag='${wl}-G'
17299           else
17300             shared_flag='${wl}-bM:SRE'
17301           fi
17302         fi
17303       fi
17304
17305       # It seems that -bexpall does not export symbols beginning with
17306       # underscore (_), so it is better to generate a list of symbols to export.
17307       always_export_symbols_GCJ=yes
17308       if test "$aix_use_runtimelinking" = yes; then
17309         # Warning - without using the other runtime loading flags (-brtl),
17310         # -berok will link without error, but may produce a broken library.
17311         allow_undefined_flag_GCJ='-berok'
17312        # Determine the default libpath from the value encoded in an empty executable.
17313        cat >conftest.$ac_ext <<_ACEOF
17314 /* confdefs.h.  */
17315 _ACEOF
17316 cat confdefs.h >>conftest.$ac_ext
17317 cat >>conftest.$ac_ext <<_ACEOF
17318 /* end confdefs.h.  */
17319
17320 int
17321 main ()
17322 {
17323
17324   ;
17325   return 0;
17326 }
17327 _ACEOF
17328 rm -f conftest.$ac_objext conftest$ac_exeext
17329 if { (ac_try="$ac_link"
17330 case "(($ac_try" in
17331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17332   *) ac_try_echo=$ac_try;;
17333 esac
17334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17335   (eval "$ac_link") 2>conftest.er1
17336   ac_status=$?
17337   grep -v '^ *+' conftest.er1 >conftest.err
17338   rm -f conftest.er1
17339   cat conftest.err >&5
17340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341   (exit $ac_status); } && {
17342          test -z "$ac_c_werror_flag" ||
17343          test ! -s conftest.err
17344        } && test -s conftest$ac_exeext &&
17345        $as_test_x conftest$ac_exeext; then
17346
17347 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17348 }'`
17349 # Check for a 64-bit object if we didn't find anything.
17350 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17351 }'`; fi
17352 else
17353   echo "$as_me: failed program was:" >&5
17354 sed 's/^/| /' conftest.$ac_ext >&5
17355
17356
17357 fi
17358
17359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17360       conftest$ac_exeext conftest.$ac_ext
17361 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17362
17363        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17364         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"
17365        else
17366         if test "$host_cpu" = ia64; then
17367           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17368           allow_undefined_flag_GCJ="-z nodefs"
17369           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"
17370         else
17371          # Determine the default libpath from the value encoded in an empty executable.
17372          cat >conftest.$ac_ext <<_ACEOF
17373 /* confdefs.h.  */
17374 _ACEOF
17375 cat confdefs.h >>conftest.$ac_ext
17376 cat >>conftest.$ac_ext <<_ACEOF
17377 /* end confdefs.h.  */
17378
17379 int
17380 main ()
17381 {
17382
17383   ;
17384   return 0;
17385 }
17386 _ACEOF
17387 rm -f conftest.$ac_objext conftest$ac_exeext
17388 if { (ac_try="$ac_link"
17389 case "(($ac_try" in
17390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17391   *) ac_try_echo=$ac_try;;
17392 esac
17393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17394   (eval "$ac_link") 2>conftest.er1
17395   ac_status=$?
17396   grep -v '^ *+' conftest.er1 >conftest.err
17397   rm -f conftest.er1
17398   cat conftest.err >&5
17399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400   (exit $ac_status); } && {
17401          test -z "$ac_c_werror_flag" ||
17402          test ! -s conftest.err
17403        } && test -s conftest$ac_exeext &&
17404        $as_test_x conftest$ac_exeext; then
17405
17406 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17407 }'`
17408 # Check for a 64-bit object if we didn't find anything.
17409 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17410 }'`; fi
17411 else
17412   echo "$as_me: failed program was:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17414
17415
17416 fi
17417
17418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17419       conftest$ac_exeext conftest.$ac_ext
17420 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17421
17422          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17423           # Warning - without using the other run time loading flags,
17424           # -berok will link without error, but may produce a broken library.
17425           no_undefined_flag_GCJ=' ${wl}-bernotok'
17426           allow_undefined_flag_GCJ=' ${wl}-berok'
17427           # Exported symbols can be pulled into shared objects from archives
17428           whole_archive_flag_spec_GCJ='$convenience'
17429           archive_cmds_need_lc_GCJ=yes
17430           # This is similar to how AIX traditionally builds its shared libraries.
17431           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'
17432         fi
17433       fi
17434       ;;
17435
17436     amigaos*)
17437       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)'
17438       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17439       hardcode_minus_L_GCJ=yes
17440       # see comment about different semantics on the GNU ld section
17441       ld_shlibs_GCJ=no
17442       ;;
17443
17444     bsdi[45]*)
17445       export_dynamic_flag_spec_GCJ=-rdynamic
17446       ;;
17447
17448     cygwin* | mingw* | pw32*)
17449       # When not using gcc, we currently assume that we are using
17450       # Microsoft Visual C++.
17451       # hardcode_libdir_flag_spec is actually meaningless, as there is
17452       # no search path for DLLs.
17453       hardcode_libdir_flag_spec_GCJ=' '
17454       allow_undefined_flag_GCJ=unsupported
17455       # Tell ltmain to make .lib files, not .a files.
17456       libext=lib
17457       # Tell ltmain to make .dll files, not .so files.
17458       shrext_cmds=".dll"
17459       # FIXME: Setting linknames here is a bad hack.
17460       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17461       # The linker will automatically build a .lib file if we build a DLL.
17462       old_archive_From_new_cmds_GCJ='true'
17463       # FIXME: Should let the user specify the lib program.
17464       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17465       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17466       enable_shared_with_static_runtimes_GCJ=yes
17467       ;;
17468
17469     darwin* | rhapsody*)
17470       case $host_os in
17471         rhapsody* | darwin1.[012])
17472          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17473          ;;
17474        *) # Darwin 1.3 on
17475          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17476            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17477          else
17478            case ${MACOSX_DEPLOYMENT_TARGET} in
17479              10.[012])
17480                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17481                ;;
17482              10.*)
17483                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17484                ;;
17485            esac
17486          fi
17487          ;;
17488       esac
17489       archive_cmds_need_lc_GCJ=no
17490       hardcode_direct_GCJ=no
17491       hardcode_automatic_GCJ=yes
17492       hardcode_shlibpath_var_GCJ=unsupported
17493       whole_archive_flag_spec_GCJ=''
17494       link_all_deplibs_GCJ=yes
17495     if test "$GCC" = yes ; then
17496         output_verbose_link_cmd='echo'
17497         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17498       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17499       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17500       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17501       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}'
17502     else
17503       case $cc_basename in
17504         xlc*)
17505          output_verbose_link_cmd='echo'
17506          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17507          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17508           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17509          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17510           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}'
17511           ;;
17512        *)
17513          ld_shlibs_GCJ=no
17514           ;;
17515       esac
17516     fi
17517       ;;
17518
17519     dgux*)
17520       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17521       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17522       hardcode_shlibpath_var_GCJ=no
17523       ;;
17524
17525     freebsd1*)
17526       ld_shlibs_GCJ=no
17527       ;;
17528
17529     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17530     # support.  Future versions do this automatically, but an explicit c++rt0.o
17531     # does not break anything, and helps significantly (at the cost of a little
17532     # extra space).
17533     freebsd2.2*)
17534       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17535       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17536       hardcode_direct_GCJ=yes
17537       hardcode_shlibpath_var_GCJ=no
17538       ;;
17539
17540     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17541     freebsd2*)
17542       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17543       hardcode_direct_GCJ=yes
17544       hardcode_minus_L_GCJ=yes
17545       hardcode_shlibpath_var_GCJ=no
17546       ;;
17547
17548     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17549     freebsd* | dragonfly*)
17550       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17551       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17552       hardcode_direct_GCJ=yes
17553       hardcode_shlibpath_var_GCJ=no
17554       ;;
17555
17556     hpux9*)
17557       if test "$GCC" = yes; then
17558         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'
17559       else
17560         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'
17561       fi
17562       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17563       hardcode_libdir_separator_GCJ=:
17564       hardcode_direct_GCJ=yes
17565
17566       # hardcode_minus_L: Not really in the search PATH,
17567       # but as the default location of the library.
17568       hardcode_minus_L_GCJ=yes
17569       export_dynamic_flag_spec_GCJ='${wl}-E'
17570       ;;
17571
17572     hpux10*)
17573       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17574         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17575       else
17576         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17577       fi
17578       if test "$with_gnu_ld" = no; then
17579         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17580         hardcode_libdir_separator_GCJ=:
17581
17582         hardcode_direct_GCJ=yes
17583         export_dynamic_flag_spec_GCJ='${wl}-E'
17584
17585         # hardcode_minus_L: Not really in the search PATH,
17586         # but as the default location of the library.
17587         hardcode_minus_L_GCJ=yes
17588       fi
17589       ;;
17590
17591     hpux11*)
17592       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17593         case $host_cpu in
17594         hppa*64*)
17595           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17596           ;;
17597         ia64*)
17598           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17599           ;;
17600         *)
17601           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17602           ;;
17603         esac
17604       else
17605         case $host_cpu in
17606         hppa*64*)
17607           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17608           ;;
17609         ia64*)
17610           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17611           ;;
17612         *)
17613           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17614           ;;
17615         esac
17616       fi
17617       if test "$with_gnu_ld" = no; then
17618         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17619         hardcode_libdir_separator_GCJ=:
17620
17621         case $host_cpu in
17622         hppa*64*|ia64*)
17623           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17624           hardcode_direct_GCJ=no
17625           hardcode_shlibpath_var_GCJ=no
17626           ;;
17627         *)
17628           hardcode_direct_GCJ=yes
17629           export_dynamic_flag_spec_GCJ='${wl}-E'
17630
17631           # hardcode_minus_L: Not really in the search PATH,
17632           # but as the default location of the library.
17633           hardcode_minus_L_GCJ=yes
17634           ;;
17635         esac
17636       fi
17637       ;;
17638
17639     irix5* | irix6* | nonstopux*)
17640       if test "$GCC" = yes; then
17641         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'
17642       else
17643         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'
17644         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17645       fi
17646       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17647       hardcode_libdir_separator_GCJ=:
17648       link_all_deplibs_GCJ=yes
17649       ;;
17650
17651     netbsd* | netbsdelf*-gnu)
17652       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17653         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17654       else
17655         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17656       fi
17657       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17658       hardcode_direct_GCJ=yes
17659       hardcode_shlibpath_var_GCJ=no
17660       ;;
17661
17662     newsos6)
17663       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17664       hardcode_direct_GCJ=yes
17665       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17666       hardcode_libdir_separator_GCJ=:
17667       hardcode_shlibpath_var_GCJ=no
17668       ;;
17669
17670     openbsd*)
17671       hardcode_direct_GCJ=yes
17672       hardcode_shlibpath_var_GCJ=no
17673       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17674         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17675         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17676         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17677         export_dynamic_flag_spec_GCJ='${wl}-E'
17678       else
17679        case $host_os in
17680          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17681            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17682            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17683            ;;
17684          *)
17685            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17686            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17687            ;;
17688        esac
17689       fi
17690       ;;
17691
17692     os2*)
17693       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17694       hardcode_minus_L_GCJ=yes
17695       allow_undefined_flag_GCJ=unsupported
17696       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'
17697       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17698       ;;
17699
17700     osf3*)
17701       if test "$GCC" = yes; then
17702         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17703         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'
17704       else
17705         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17706         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'
17707       fi
17708       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17709       hardcode_libdir_separator_GCJ=:
17710       ;;
17711
17712     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17713       if test "$GCC" = yes; then
17714         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17715         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'
17716         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17717       else
17718         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17719         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'
17720         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~
17721         $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'
17722
17723         # Both c and cxx compiler support -rpath directly
17724         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17725       fi
17726       hardcode_libdir_separator_GCJ=:
17727       ;;
17728
17729     solaris*)
17730       no_undefined_flag_GCJ=' -z text'
17731       if test "$GCC" = yes; then
17732         wlarc='${wl}'
17733         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17734         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17735           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17736       else
17737         wlarc=''
17738         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17739         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17740         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17741       fi
17742       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17743       hardcode_shlibpath_var_GCJ=no
17744       case $host_os in
17745       solaris2.[0-5] | solaris2.[0-5].*) ;;
17746       *)
17747         # The compiler driver will combine linker options so we
17748         # cannot just pass the convience library names through
17749         # without $wl, iff we do not link with $LD.
17750         # Luckily, gcc supports the same syntax we need for Sun Studio.
17751         # Supported since Solaris 2.6 (maybe 2.5.1?)
17752         case $wlarc in
17753         '')
17754           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17755         *)
17756           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17757         esac ;;
17758       esac
17759       link_all_deplibs_GCJ=yes
17760       ;;
17761
17762     sunos4*)
17763       if test "x$host_vendor" = xsequent; then
17764         # Use $CC to link under sequent, because it throws in some extra .o
17765         # files that make .init and .fini sections work.
17766         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17767       else
17768         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17769       fi
17770       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17771       hardcode_direct_GCJ=yes
17772       hardcode_minus_L_GCJ=yes
17773       hardcode_shlibpath_var_GCJ=no
17774       ;;
17775
17776     sysv4)
17777       case $host_vendor in
17778         sni)
17779           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17780           hardcode_direct_GCJ=yes # is this really true???
17781         ;;
17782         siemens)
17783           ## LD is ld it makes a PLAMLIB
17784           ## CC just makes a GrossModule.
17785           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17786           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17787           hardcode_direct_GCJ=no
17788         ;;
17789         motorola)
17790           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17791           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17792         ;;
17793       esac
17794       runpath_var='LD_RUN_PATH'
17795       hardcode_shlibpath_var_GCJ=no
17796       ;;
17797
17798     sysv4.3*)
17799       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17800       hardcode_shlibpath_var_GCJ=no
17801       export_dynamic_flag_spec_GCJ='-Bexport'
17802       ;;
17803
17804     sysv4*MP*)
17805       if test -d /usr/nec; then
17806         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17807         hardcode_shlibpath_var_GCJ=no
17808         runpath_var=LD_RUN_PATH
17809         hardcode_runpath_var=yes
17810         ld_shlibs_GCJ=yes
17811       fi
17812       ;;
17813
17814     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17815       no_undefined_flag_GCJ='${wl}-z,text'
17816       archive_cmds_need_lc_GCJ=no
17817       hardcode_shlibpath_var_GCJ=no
17818       runpath_var='LD_RUN_PATH'
17819
17820       if test "$GCC" = yes; then
17821         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17822         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17823       else
17824         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17825         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17826       fi
17827       ;;
17828
17829     sysv5* | sco3.2v5* | sco5v6*)
17830       # Note: We can NOT use -z defs as we might desire, because we do not
17831       # link with -lc, and that would cause any symbols used from libc to
17832       # always be unresolved, which means just about no library would
17833       # ever link correctly.  If we're not using GNU ld we use -z text
17834       # though, which does catch some bad symbols but isn't as heavy-handed
17835       # as -z defs.
17836       no_undefined_flag_GCJ='${wl}-z,text'
17837       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17838       archive_cmds_need_lc_GCJ=no
17839       hardcode_shlibpath_var_GCJ=no
17840       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17841       hardcode_libdir_separator_GCJ=':'
17842       link_all_deplibs_GCJ=yes
17843       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17844       runpath_var='LD_RUN_PATH'
17845
17846       if test "$GCC" = yes; then
17847         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17848         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17849       else
17850         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17851         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17852       fi
17853       ;;
17854
17855     uts4*)
17856       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17857       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17858       hardcode_shlibpath_var_GCJ=no
17859       ;;
17860
17861     *)
17862       ld_shlibs_GCJ=no
17863       ;;
17864     esac
17865   fi
17866
17867 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17868 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17869 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17870
17871 #
17872 # Do we need to explicitly link libc?
17873 #
17874 case "x$archive_cmds_need_lc_GCJ" in
17875 x|xyes)
17876   # Assume -lc should be added
17877   archive_cmds_need_lc_GCJ=yes
17878
17879   if test "$enable_shared" = yes && test "$GCC" = yes; then
17880     case $archive_cmds_GCJ in
17881     *'~'*)
17882       # FIXME: we may have to deal with multi-command sequences.
17883       ;;
17884     '$CC '*)
17885       # Test whether the compiler implicitly links with -lc since on some
17886       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17887       # to ld, don't add -lc before -lgcc.
17888       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17889 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17890       $rm conftest*
17891       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17892
17893       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17894   (eval $ac_compile) 2>&5
17895   ac_status=$?
17896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897   (exit $ac_status); } 2>conftest.err; then
17898         soname=conftest
17899         lib=conftest
17900         libobjs=conftest.$ac_objext
17901         deplibs=
17902         wl=$lt_prog_compiler_wl_GCJ
17903         pic_flag=$lt_prog_compiler_pic_GCJ
17904         compiler_flags=-v
17905         linker_flags=-v
17906         verstring=
17907         output_objdir=.
17908         libname=conftest
17909         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17910         allow_undefined_flag_GCJ=
17911         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17912   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17913   ac_status=$?
17914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915   (exit $ac_status); }
17916         then
17917           archive_cmds_need_lc_GCJ=no
17918         else
17919           archive_cmds_need_lc_GCJ=yes
17920         fi
17921         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17922       else
17923         cat conftest.err 1>&5
17924       fi
17925       $rm conftest*
17926       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17927 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17928       ;;
17929     esac
17930   fi
17931   ;;
17932 esac
17933
17934 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17935 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17936 library_names_spec=
17937 libname_spec='lib$name'
17938 soname_spec=
17939 shrext_cmds=".so"
17940 postinstall_cmds=
17941 postuninstall_cmds=
17942 finish_cmds=
17943 finish_eval=
17944 shlibpath_var=
17945 shlibpath_overrides_runpath=unknown
17946 version_type=none
17947 dynamic_linker="$host_os ld.so"
17948 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17949 if test "$GCC" = yes; then
17950   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17951   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17952     # if the path contains ";" then we assume it to be the separator
17953     # otherwise default to the standard path separator (i.e. ":") - it is
17954     # assumed that no part of a normal pathname contains ";" but that should
17955     # okay in the real world where ";" in dirpaths is itself problematic.
17956     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17957   else
17958     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17959   fi
17960 else
17961   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17962 fi
17963 need_lib_prefix=unknown
17964 hardcode_into_libs=no
17965
17966 # when you set need_version to no, make sure it does not cause -set_version
17967 # flags to be left without arguments
17968 need_version=unknown
17969
17970 case $host_os in
17971 aix3*)
17972   version_type=linux
17973   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17974   shlibpath_var=LIBPATH
17975
17976   # AIX 3 has no versioning support, so we append a major version to the name.
17977   soname_spec='${libname}${release}${shared_ext}$major'
17978   ;;
17979
17980 aix4* | aix5*)
17981   version_type=linux
17982   need_lib_prefix=no
17983   need_version=no
17984   hardcode_into_libs=yes
17985   if test "$host_cpu" = ia64; then
17986     # AIX 5 supports IA64
17987     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17988     shlibpath_var=LD_LIBRARY_PATH
17989   else
17990     # With GCC up to 2.95.x, collect2 would create an import file
17991     # for dependence libraries.  The import file would start with
17992     # the line `#! .'.  This would cause the generated library to
17993     # depend on `.', always an invalid library.  This was fixed in
17994     # development snapshots of GCC prior to 3.0.
17995     case $host_os in
17996       aix4 | aix4.[01] | aix4.[01].*)
17997       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17998            echo ' yes '
17999            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18000         :
18001       else
18002         can_build_shared=no
18003       fi
18004       ;;
18005     esac
18006     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18007     # soname into executable. Probably we can add versioning support to
18008     # collect2, so additional links can be useful in future.
18009     if test "$aix_use_runtimelinking" = yes; then
18010       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18011       # instead of lib<name>.a to let people know that these are not
18012       # typical AIX shared libraries.
18013       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18014     else
18015       # We preserve .a as extension for shared libraries through AIX4.2
18016       # and later when we are not doing run time linking.
18017       library_names_spec='${libname}${release}.a $libname.a'
18018       soname_spec='${libname}${release}${shared_ext}$major'
18019     fi
18020     shlibpath_var=LIBPATH
18021   fi
18022   ;;
18023
18024 amigaos*)
18025   library_names_spec='$libname.ixlibrary $libname.a'
18026   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18027   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'
18028   ;;
18029
18030 beos*)
18031   library_names_spec='${libname}${shared_ext}'
18032   dynamic_linker="$host_os ld.so"
18033   shlibpath_var=LIBRARY_PATH
18034   ;;
18035
18036 bsdi[45]*)
18037   version_type=linux
18038   need_version=no
18039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18040   soname_spec='${libname}${release}${shared_ext}$major'
18041   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18042   shlibpath_var=LD_LIBRARY_PATH
18043   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18044   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18045   # the default ld.so.conf also contains /usr/contrib/lib and
18046   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18047   # libtool to hard-code these into programs
18048   ;;
18049
18050 cygwin* | mingw* | pw32*)
18051   version_type=windows
18052   shrext_cmds=".dll"
18053   need_version=no
18054   need_lib_prefix=no
18055
18056   case $GCC,$host_os in
18057   yes,cygwin* | yes,mingw* | yes,pw32*)
18058     library_names_spec='$libname.dll.a'
18059     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18060     postinstall_cmds='base_file=`basename \${file}`~
18061       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18062       dldir=$destdir/`dirname \$dlpath`~
18063       test -d \$dldir || mkdir -p \$dldir~
18064       $install_prog $dir/$dlname \$dldir/$dlname~
18065       chmod a+x \$dldir/$dlname'
18066     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18067       dlpath=$dir/\$dldll~
18068        $rm \$dlpath'
18069     shlibpath_overrides_runpath=yes
18070
18071     case $host_os in
18072     cygwin*)
18073       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18074       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18075       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18076       ;;
18077     mingw*)
18078       # MinGW DLLs use traditional 'lib' prefix
18079       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18080       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18081       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18082         # It is most probably a Windows format PATH printed by
18083         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18084         # path with ; separators, and with drive letters. We can handle the
18085         # drive letters (cygwin fileutils understands them), so leave them,
18086         # especially as we might pass files found there to a mingw objdump,
18087         # which wouldn't understand a cygwinified path. Ahh.
18088         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18089       else
18090         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18091       fi
18092       ;;
18093     pw32*)
18094       # pw32 DLLs use 'pw' prefix rather than 'lib'
18095       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18096       ;;
18097     esac
18098     ;;
18099
18100   *)
18101     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18102     ;;
18103   esac
18104   dynamic_linker='Win32 ld.exe'
18105   # FIXME: first we should search . and the directory the executable is in
18106   shlibpath_var=PATH
18107   ;;
18108
18109 darwin* | rhapsody*)
18110   dynamic_linker="$host_os dyld"
18111   version_type=darwin
18112   need_lib_prefix=no
18113   need_version=no
18114   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18115   soname_spec='${libname}${release}${major}$shared_ext'
18116   shlibpath_overrides_runpath=yes
18117   shlibpath_var=DYLD_LIBRARY_PATH
18118   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18119   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18120   if test "$GCC" = yes; then
18121     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18122   else
18123     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18124   fi
18125   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18126   ;;
18127
18128 dgux*)
18129   version_type=linux
18130   need_lib_prefix=no
18131   need_version=no
18132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18133   soname_spec='${libname}${release}${shared_ext}$major'
18134   shlibpath_var=LD_LIBRARY_PATH
18135   ;;
18136
18137 freebsd1*)
18138   dynamic_linker=no
18139   ;;
18140
18141 freebsd* | dragonfly*)
18142   # DragonFly does not have aout.  When/if they implement a new
18143   # versioning mechanism, adjust this.
18144   if test -x /usr/bin/objformat; then
18145     objformat=`/usr/bin/objformat`
18146   else
18147     case $host_os in
18148     freebsd[123]*) objformat=aout ;;
18149     *) objformat=elf ;;
18150     esac
18151   fi
18152   version_type=freebsd-$objformat
18153   case $version_type in
18154     freebsd-elf*)
18155       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18156       need_version=no
18157       need_lib_prefix=no
18158       ;;
18159     freebsd-*)
18160       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18161       need_version=yes
18162       ;;
18163   esac
18164   shlibpath_var=LD_LIBRARY_PATH
18165   case $host_os in
18166   freebsd2*)
18167     shlibpath_overrides_runpath=yes
18168     ;;
18169   freebsd3.[01]* | freebsdelf3.[01]*)
18170     shlibpath_overrides_runpath=yes
18171     hardcode_into_libs=yes
18172     ;;
18173   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18174   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18175     shlibpath_overrides_runpath=no
18176     hardcode_into_libs=yes
18177     ;;
18178   freebsd*) # from 4.6 on
18179     shlibpath_overrides_runpath=yes
18180     hardcode_into_libs=yes
18181     ;;
18182   esac
18183   ;;
18184
18185 gnu*)
18186   version_type=linux
18187   need_lib_prefix=no
18188   need_version=no
18189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18190   soname_spec='${libname}${release}${shared_ext}$major'
18191   shlibpath_var=LD_LIBRARY_PATH
18192   hardcode_into_libs=yes
18193   ;;
18194
18195 hpux9* | hpux10* | hpux11*)
18196   # Give a soname corresponding to the major version so that dld.sl refuses to
18197   # link against other versions.
18198   version_type=sunos
18199   need_lib_prefix=no
18200   need_version=no
18201   case $host_cpu in
18202   ia64*)
18203     shrext_cmds='.so'
18204     hardcode_into_libs=yes
18205     dynamic_linker="$host_os dld.so"
18206     shlibpath_var=LD_LIBRARY_PATH
18207     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18208     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18209     soname_spec='${libname}${release}${shared_ext}$major'
18210     if test "X$HPUX_IA64_MODE" = X32; then
18211       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18212     else
18213       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18214     fi
18215     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18216     ;;
18217    hppa*64*)
18218      shrext_cmds='.sl'
18219      hardcode_into_libs=yes
18220      dynamic_linker="$host_os dld.sl"
18221      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18222      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18223      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18224      soname_spec='${libname}${release}${shared_ext}$major'
18225      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18226      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18227      ;;
18228    *)
18229     shrext_cmds='.sl'
18230     dynamic_linker="$host_os dld.sl"
18231     shlibpath_var=SHLIB_PATH
18232     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18233     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18234     soname_spec='${libname}${release}${shared_ext}$major'
18235     ;;
18236   esac
18237   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18238   postinstall_cmds='chmod 555 $lib'
18239   ;;
18240
18241 interix3*)
18242   version_type=linux
18243   need_lib_prefix=no
18244   need_version=no
18245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18246   soname_spec='${libname}${release}${shared_ext}$major'
18247   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18248   shlibpath_var=LD_LIBRARY_PATH
18249   shlibpath_overrides_runpath=no
18250   hardcode_into_libs=yes
18251   ;;
18252
18253 irix5* | irix6* | nonstopux*)
18254   case $host_os in
18255     nonstopux*) version_type=nonstopux ;;
18256     *)
18257         if test "$lt_cv_prog_gnu_ld" = yes; then
18258                 version_type=linux
18259         else
18260                 version_type=irix
18261         fi ;;
18262   esac
18263   need_lib_prefix=no
18264   need_version=no
18265   soname_spec='${libname}${release}${shared_ext}$major'
18266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18267   case $host_os in
18268   irix5* | nonstopux*)
18269     libsuff= shlibsuff=
18270     ;;
18271   *)
18272     case $LD in # libtool.m4 will add one of these switches to LD
18273     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18274       libsuff= shlibsuff= libmagic=32-bit;;
18275     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18276       libsuff=32 shlibsuff=N32 libmagic=N32;;
18277     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18278       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18279     *) libsuff= shlibsuff= libmagic=never-match;;
18280     esac
18281     ;;
18282   esac
18283   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18284   shlibpath_overrides_runpath=no
18285   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18286   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18287   hardcode_into_libs=yes
18288   ;;
18289
18290 # No shared lib support for Linux oldld, aout, or coff.
18291 linux*oldld* | linux*aout* | linux*coff*)
18292   dynamic_linker=no
18293   ;;
18294
18295 # This must be Linux ELF.
18296 linux* | k*bsd*-gnu)
18297   version_type=linux
18298   need_lib_prefix=no
18299   need_version=no
18300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18301   soname_spec='${libname}${release}${shared_ext}$major'
18302   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18303   shlibpath_var=LD_LIBRARY_PATH
18304   shlibpath_overrides_runpath=no
18305   # This implies no fast_install, which is unacceptable.
18306   # Some rework will be needed to allow for fast_install
18307   # before this can be enabled.
18308   hardcode_into_libs=yes
18309
18310   # Append ld.so.conf contents to the search path
18311   if test -f /etc/ld.so.conf; then
18312     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18313     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18314   fi
18315
18316   # We used to test for /lib/ld.so.1 and disable shared libraries on
18317   # powerpc, because MkLinux only supported shared libraries with the
18318   # GNU dynamic linker.  Since this was broken with cross compilers,
18319   # most powerpc-linux boxes support dynamic linking these days and
18320   # people can always --disable-shared, the test was removed, and we
18321   # assume the GNU/Linux dynamic linker is in use.
18322   dynamic_linker='GNU/Linux ld.so'
18323   ;;
18324
18325 netbsdelf*-gnu)
18326   version_type=linux
18327   need_lib_prefix=no
18328   need_version=no
18329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18330   soname_spec='${libname}${release}${shared_ext}$major'
18331   shlibpath_var=LD_LIBRARY_PATH
18332   shlibpath_overrides_runpath=no
18333   hardcode_into_libs=yes
18334   dynamic_linker='NetBSD ld.elf_so'
18335   ;;
18336
18337 netbsd*)
18338   version_type=sunos
18339   need_lib_prefix=no
18340   need_version=no
18341   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18342     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18343     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18344     dynamic_linker='NetBSD (a.out) ld.so'
18345   else
18346     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18347     soname_spec='${libname}${release}${shared_ext}$major'
18348     dynamic_linker='NetBSD ld.elf_so'
18349   fi
18350   shlibpath_var=LD_LIBRARY_PATH
18351   shlibpath_overrides_runpath=yes
18352   hardcode_into_libs=yes
18353   ;;
18354
18355 newsos6)
18356   version_type=linux
18357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18358   shlibpath_var=LD_LIBRARY_PATH
18359   shlibpath_overrides_runpath=yes
18360   ;;
18361
18362 nto-qnx*)
18363   version_type=linux
18364   need_lib_prefix=no
18365   need_version=no
18366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18367   soname_spec='${libname}${release}${shared_ext}$major'
18368   shlibpath_var=LD_LIBRARY_PATH
18369   shlibpath_overrides_runpath=yes
18370   ;;
18371
18372 openbsd*)
18373   version_type=sunos
18374   sys_lib_dlsearch_path_spec="/usr/lib"
18375   need_lib_prefix=no
18376   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18377   case $host_os in
18378     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18379     *)                         need_version=no  ;;
18380   esac
18381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18382   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18383   shlibpath_var=LD_LIBRARY_PATH
18384   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18385     case $host_os in
18386       openbsd2.[89] | openbsd2.[89].*)
18387         shlibpath_overrides_runpath=no
18388         ;;
18389       *)
18390         shlibpath_overrides_runpath=yes
18391         ;;
18392       esac
18393   else
18394     shlibpath_overrides_runpath=yes
18395   fi
18396   ;;
18397
18398 os2*)
18399   libname_spec='$name'
18400   shrext_cmds=".dll"
18401   need_lib_prefix=no
18402   library_names_spec='$libname${shared_ext} $libname.a'
18403   dynamic_linker='OS/2 ld.exe'
18404   shlibpath_var=LIBPATH
18405   ;;
18406
18407 osf3* | osf4* | osf5*)
18408   version_type=osf
18409   need_lib_prefix=no
18410   need_version=no
18411   soname_spec='${libname}${release}${shared_ext}$major'
18412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18413   shlibpath_var=LD_LIBRARY_PATH
18414   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18415   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18416   ;;
18417
18418 solaris*)
18419   version_type=linux
18420   need_lib_prefix=no
18421   need_version=no
18422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18423   soname_spec='${libname}${release}${shared_ext}$major'
18424   shlibpath_var=LD_LIBRARY_PATH
18425   shlibpath_overrides_runpath=yes
18426   hardcode_into_libs=yes
18427   # ldd complains unless libraries are executable
18428   postinstall_cmds='chmod +x $lib'
18429   ;;
18430
18431 sunos4*)
18432   version_type=sunos
18433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18434   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18435   shlibpath_var=LD_LIBRARY_PATH
18436   shlibpath_overrides_runpath=yes
18437   if test "$with_gnu_ld" = yes; then
18438     need_lib_prefix=no
18439   fi
18440   need_version=yes
18441   ;;
18442
18443 sysv4 | sysv4.3*)
18444   version_type=linux
18445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18446   soname_spec='${libname}${release}${shared_ext}$major'
18447   shlibpath_var=LD_LIBRARY_PATH
18448   case $host_vendor in
18449     sni)
18450       shlibpath_overrides_runpath=no
18451       need_lib_prefix=no
18452       export_dynamic_flag_spec='${wl}-Blargedynsym'
18453       runpath_var=LD_RUN_PATH
18454       ;;
18455     siemens)
18456       need_lib_prefix=no
18457       ;;
18458     motorola)
18459       need_lib_prefix=no
18460       need_version=no
18461       shlibpath_overrides_runpath=no
18462       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18463       ;;
18464   esac
18465   ;;
18466
18467 sysv4*MP*)
18468   if test -d /usr/nec ;then
18469     version_type=linux
18470     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18471     soname_spec='$libname${shared_ext}.$major'
18472     shlibpath_var=LD_LIBRARY_PATH
18473   fi
18474   ;;
18475
18476 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18477   version_type=freebsd-elf
18478   need_lib_prefix=no
18479   need_version=no
18480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18481   soname_spec='${libname}${release}${shared_ext}$major'
18482   shlibpath_var=LD_LIBRARY_PATH
18483   hardcode_into_libs=yes
18484   if test "$with_gnu_ld" = yes; then
18485     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18486     shlibpath_overrides_runpath=no
18487   else
18488     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18489     shlibpath_overrides_runpath=yes
18490     case $host_os in
18491       sco3.2v5*)
18492         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18493         ;;
18494     esac
18495   fi
18496   sys_lib_dlsearch_path_spec='/usr/lib'
18497   ;;
18498
18499 uts4*)
18500   version_type=linux
18501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18502   soname_spec='${libname}${release}${shared_ext}$major'
18503   shlibpath_var=LD_LIBRARY_PATH
18504   ;;
18505
18506 *)
18507   dynamic_linker=no
18508   ;;
18509 esac
18510 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18511 echo "${ECHO_T}$dynamic_linker" >&6; }
18512 test "$dynamic_linker" = no && can_build_shared=no
18513
18514 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18515 if test "$GCC" = yes; then
18516   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18517 fi
18518
18519 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18520 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18521 hardcode_action_GCJ=
18522 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18523    test -n "$runpath_var_GCJ" || \
18524    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18525
18526   # We can hardcode non-existant directories.
18527   if test "$hardcode_direct_GCJ" != no &&
18528      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18529      # have to relink, otherwise we might link with an installed library
18530      # when we should be linking with a yet-to-be-installed one
18531      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18532      test "$hardcode_minus_L_GCJ" != no; then
18533     # Linking always hardcodes the temporary library directory.
18534     hardcode_action_GCJ=relink
18535   else
18536     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18537     hardcode_action_GCJ=immediate
18538   fi
18539 else
18540   # We cannot hardcode anything, or else we can only hardcode existing
18541   # directories.
18542   hardcode_action_GCJ=unsupported
18543 fi
18544 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18545 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18546
18547 if test "$hardcode_action_GCJ" = relink; then
18548   # Fast installation is not supported
18549   enable_fast_install=no
18550 elif test "$shlibpath_overrides_runpath" = yes ||
18551      test "$enable_shared" = no; then
18552   # Fast installation is not necessary
18553   enable_fast_install=needless
18554 fi
18555
18556
18557 # The else clause should only fire when bootstrapping the
18558 # libtool distribution, otherwise you forgot to ship ltmain.sh
18559 # with your package, and you will get complaints that there are
18560 # no rules to generate ltmain.sh.
18561 if test -f "$ltmain"; then
18562   # See if we are running on zsh, and set the options which allow our commands through
18563   # without removal of \ escapes.
18564   if test -n "${ZSH_VERSION+set}" ; then
18565     setopt NO_GLOB_SUBST
18566   fi
18567   # Now quote all the things that may contain metacharacters while being
18568   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18569   # variables and quote the copies for generation of the libtool script.
18570   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18571     SED SHELL STRIP \
18572     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18573     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18574     deplibs_check_method reload_flag reload_cmds need_locks \
18575     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18576     lt_cv_sys_global_symbol_to_c_name_address \
18577     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18578     old_postinstall_cmds old_postuninstall_cmds \
18579     compiler_GCJ \
18580     CC_GCJ \
18581     LD_GCJ \
18582     lt_prog_compiler_wl_GCJ \
18583     lt_prog_compiler_pic_GCJ \
18584     lt_prog_compiler_static_GCJ \
18585     lt_prog_compiler_no_builtin_flag_GCJ \
18586     export_dynamic_flag_spec_GCJ \
18587     thread_safe_flag_spec_GCJ \
18588     whole_archive_flag_spec_GCJ \
18589     enable_shared_with_static_runtimes_GCJ \
18590     old_archive_cmds_GCJ \
18591     old_archive_from_new_cmds_GCJ \
18592     predep_objects_GCJ \
18593     postdep_objects_GCJ \
18594     predeps_GCJ \
18595     postdeps_GCJ \
18596     compiler_lib_search_path_GCJ \
18597     archive_cmds_GCJ \
18598     archive_expsym_cmds_GCJ \
18599     postinstall_cmds_GCJ \
18600     postuninstall_cmds_GCJ \
18601     old_archive_from_expsyms_cmds_GCJ \
18602     allow_undefined_flag_GCJ \
18603     no_undefined_flag_GCJ \
18604     export_symbols_cmds_GCJ \
18605     hardcode_libdir_flag_spec_GCJ \
18606     hardcode_libdir_flag_spec_ld_GCJ \
18607     hardcode_libdir_separator_GCJ \
18608     hardcode_automatic_GCJ \
18609     module_cmds_GCJ \
18610     module_expsym_cmds_GCJ \
18611     lt_cv_prog_compiler_c_o_GCJ \
18612     exclude_expsyms_GCJ \
18613     include_expsyms_GCJ; do
18614
18615     case $var in
18616     old_archive_cmds_GCJ | \
18617     old_archive_from_new_cmds_GCJ | \
18618     archive_cmds_GCJ | \
18619     archive_expsym_cmds_GCJ | \
18620     module_cmds_GCJ | \
18621     module_expsym_cmds_GCJ | \
18622     old_archive_from_expsyms_cmds_GCJ | \
18623     export_symbols_cmds_GCJ | \
18624     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18625     postinstall_cmds | postuninstall_cmds | \
18626     old_postinstall_cmds | old_postuninstall_cmds | \
18627     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18628       # Double-quote double-evaled strings.
18629       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18630       ;;
18631     *)
18632       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18633       ;;
18634     esac
18635   done
18636
18637   case $lt_echo in
18638   *'\$0 --fallback-echo"')
18639     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18640     ;;
18641   esac
18642
18643 cfgfile="$ofile"
18644
18645   cat <<__EOF__ >> "$cfgfile"
18646 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18647
18648 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18649
18650 # Shell to use when invoking shell scripts.
18651 SHELL=$lt_SHELL
18652
18653 # Whether or not to build shared libraries.
18654 build_libtool_libs=$enable_shared
18655
18656 # Whether or not to build static libraries.
18657 build_old_libs=$enable_static
18658
18659 # Whether or not to add -lc for building shared libraries.
18660 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18661
18662 # Whether or not to disallow shared libs when runtime libs are static
18663 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18664
18665 # Whether or not to optimize for fast installation.
18666 fast_install=$enable_fast_install
18667
18668 # The host system.
18669 host_alias=$host_alias
18670 host=$host
18671 host_os=$host_os
18672
18673 # The build system.
18674 build_alias=$build_alias
18675 build=$build
18676 build_os=$build_os
18677
18678 # An echo program that does not interpret backslashes.
18679 echo=$lt_echo
18680
18681 # The archiver.
18682 AR=$lt_AR
18683 AR_FLAGS=$lt_AR_FLAGS
18684
18685 # A C compiler.
18686 LTCC=$lt_LTCC
18687
18688 # LTCC compiler flags.
18689 LTCFLAGS=$lt_LTCFLAGS
18690
18691 # A language-specific compiler.
18692 CC=$lt_compiler_GCJ
18693
18694 # Is the compiler the GNU C compiler?
18695 with_gcc=$GCC_GCJ
18696
18697 # An ERE matcher.
18698 EGREP=$lt_EGREP
18699
18700 # The linker used to build libraries.
18701 LD=$lt_LD_GCJ
18702
18703 # Whether we need hard or soft links.
18704 LN_S=$lt_LN_S
18705
18706 # A BSD-compatible nm program.
18707 NM=$lt_NM
18708
18709 # A symbol stripping program
18710 STRIP=$lt_STRIP
18711
18712 # Used to examine libraries when file_magic_cmd begins "file"
18713 MAGIC_CMD=$MAGIC_CMD
18714
18715 # Used on cygwin: DLL creation program.
18716 DLLTOOL="$DLLTOOL"
18717
18718 # Used on cygwin: object dumper.
18719 OBJDUMP="$OBJDUMP"
18720
18721 # Used on cygwin: assembler.
18722 AS="$AS"
18723
18724 # The name of the directory that contains temporary libtool files.
18725 objdir=$objdir
18726
18727 # How to create reloadable object files.
18728 reload_flag=$lt_reload_flag
18729 reload_cmds=$lt_reload_cmds
18730
18731 # How to pass a linker flag through the compiler.
18732 wl=$lt_lt_prog_compiler_wl_GCJ
18733
18734 # Object file suffix (normally "o").
18735 objext="$ac_objext"
18736
18737 # Old archive suffix (normally "a").
18738 libext="$libext"
18739
18740 # Shared library suffix (normally ".so").
18741 shrext_cmds='$shrext_cmds'
18742
18743 # Executable file suffix (normally "").
18744 exeext="$exeext"
18745
18746 # Additional compiler flags for building library objects.
18747 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18748 pic_mode=$pic_mode
18749
18750 # What is the maximum length of a command?
18751 max_cmd_len=$lt_cv_sys_max_cmd_len
18752
18753 # Does compiler simultaneously support -c and -o options?
18754 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18755
18756 # Must we lock files when doing compilation?
18757 need_locks=$lt_need_locks
18758
18759 # Do we need the lib prefix for modules?
18760 need_lib_prefix=$need_lib_prefix
18761
18762 # Do we need a version for libraries?
18763 need_version=$need_version
18764
18765 # Whether dlopen is supported.
18766 dlopen_support=$enable_dlopen
18767
18768 # Whether dlopen of programs is supported.
18769 dlopen_self=$enable_dlopen_self
18770
18771 # Whether dlopen of statically linked programs is supported.
18772 dlopen_self_static=$enable_dlopen_self_static
18773
18774 # Compiler flag to prevent dynamic linking.
18775 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18776
18777 # Compiler flag to turn off builtin functions.
18778 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18779
18780 # Compiler flag to allow reflexive dlopens.
18781 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18782
18783 # Compiler flag to generate shared objects directly from archives.
18784 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18785
18786 # Compiler flag to generate thread-safe objects.
18787 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18788
18789 # Library versioning type.
18790 version_type=$version_type
18791
18792 # Format of library name prefix.
18793 libname_spec=$lt_libname_spec
18794
18795 # List of archive names.  First name is the real one, the rest are links.
18796 # The last name is the one that the linker finds with -lNAME.
18797 library_names_spec=$lt_library_names_spec
18798
18799 # The coded name of the library, if different from the real name.
18800 soname_spec=$lt_soname_spec
18801
18802 # Commands used to build and install an old-style archive.
18803 RANLIB=$lt_RANLIB
18804 old_archive_cmds=$lt_old_archive_cmds_GCJ
18805 old_postinstall_cmds=$lt_old_postinstall_cmds
18806 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18807
18808 # Create an old-style archive from a shared archive.
18809 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18810
18811 # Create a temporary old-style archive to link instead of a shared archive.
18812 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18813
18814 # Commands used to build and install a shared archive.
18815 archive_cmds=$lt_archive_cmds_GCJ
18816 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18817 postinstall_cmds=$lt_postinstall_cmds
18818 postuninstall_cmds=$lt_postuninstall_cmds
18819
18820 # Commands used to build a loadable module (assumed same as above if empty)
18821 module_cmds=$lt_module_cmds_GCJ
18822 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18823
18824 # Commands to strip libraries.
18825 old_striplib=$lt_old_striplib
18826 striplib=$lt_striplib
18827
18828 # Dependencies to place before the objects being linked to create a
18829 # shared library.
18830 predep_objects=$lt_predep_objects_GCJ
18831
18832 # Dependencies to place after the objects being linked to create a
18833 # shared library.
18834 postdep_objects=$lt_postdep_objects_GCJ
18835
18836 # Dependencies to place before the objects being linked to create a
18837 # shared library.
18838 predeps=$lt_predeps_GCJ
18839
18840 # Dependencies to place after the objects being linked to create a
18841 # shared library.
18842 postdeps=$lt_postdeps_GCJ
18843
18844 # The library search path used internally by the compiler when linking
18845 # a shared library.
18846 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18847
18848 # Method to check whether dependent libraries are shared objects.
18849 deplibs_check_method=$lt_deplibs_check_method
18850
18851 # Command to use when deplibs_check_method == file_magic.
18852 file_magic_cmd=$lt_file_magic_cmd
18853
18854 # Flag that allows shared libraries with undefined symbols to be built.
18855 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18856
18857 # Flag that forces no undefined symbols.
18858 no_undefined_flag=$lt_no_undefined_flag_GCJ
18859
18860 # Commands used to finish a libtool library installation in a directory.
18861 finish_cmds=$lt_finish_cmds
18862
18863 # Same as above, but a single script fragment to be evaled but not shown.
18864 finish_eval=$lt_finish_eval
18865
18866 # Take the output of nm and produce a listing of raw symbols and C names.
18867 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18868
18869 # Transform the output of nm in a proper C declaration
18870 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18871
18872 # Transform the output of nm in a C name address pair
18873 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18874
18875 # This is the shared library runtime path variable.
18876 runpath_var=$runpath_var
18877
18878 # This is the shared library path variable.
18879 shlibpath_var=$shlibpath_var
18880
18881 # Is shlibpath searched before the hard-coded library search path?
18882 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18883
18884 # How to hardcode a shared library path into an executable.
18885 hardcode_action=$hardcode_action_GCJ
18886
18887 # Whether we should hardcode library paths into libraries.
18888 hardcode_into_libs=$hardcode_into_libs
18889
18890 # Flag to hardcode \$libdir into a binary during linking.
18891 # This must work even if \$libdir does not exist.
18892 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18893
18894 # If ld is used when linking, flag to hardcode \$libdir into
18895 # a binary during linking. This must work even if \$libdir does
18896 # not exist.
18897 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18898
18899 # Whether we need a single -rpath flag with a separated argument.
18900 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18901
18902 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18903 # resulting binary.
18904 hardcode_direct=$hardcode_direct_GCJ
18905
18906 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18907 # resulting binary.
18908 hardcode_minus_L=$hardcode_minus_L_GCJ
18909
18910 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18911 # the resulting binary.
18912 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18913
18914 # Set to yes if building a shared library automatically hardcodes DIR into the library
18915 # and all subsequent libraries and executables linked against it.
18916 hardcode_automatic=$hardcode_automatic_GCJ
18917
18918 # Variables whose values should be saved in libtool wrapper scripts and
18919 # restored at relink time.
18920 variables_saved_for_relink="$variables_saved_for_relink"
18921
18922 # Whether libtool must link a program against all its dependency libraries.
18923 link_all_deplibs=$link_all_deplibs_GCJ
18924
18925 # Compile-time system search path for libraries
18926 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18927
18928 # Run-time system search path for libraries
18929 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18930
18931 # Fix the shell variable \$srcfile for the compiler.
18932 fix_srcfile_path="$fix_srcfile_path_GCJ"
18933
18934 # Set to yes if exported symbols are required.
18935 always_export_symbols=$always_export_symbols_GCJ
18936
18937 # The commands to list exported symbols.
18938 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18939
18940 # The commands to extract the exported symbol list from a shared archive.
18941 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18942
18943 # Symbols that should not be listed in the preloaded symbols.
18944 exclude_expsyms=$lt_exclude_expsyms_GCJ
18945
18946 # Symbols that must always be exported.
18947 include_expsyms=$lt_include_expsyms_GCJ
18948
18949 # ### END LIBTOOL TAG CONFIG: $tagname
18950
18951 __EOF__
18952
18953
18954 else
18955   # If there is no Makefile yet, we rely on a make rule to execute
18956   # `config.status --recheck' to rerun these tests and create the
18957   # libtool script then.
18958   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18959   if test -f "$ltmain_in"; then
18960     test -f Makefile && make "$ltmain"
18961   fi
18962 fi
18963
18964
18965 ac_ext=c
18966 ac_cpp='$CPP $CPPFLAGS'
18967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18970
18971 CC="$lt_save_CC"
18972
18973         else
18974           tagname=""
18975         fi
18976         ;;
18977
18978       RC)
18979
18980
18981 # Source file extension for RC test sources.
18982 ac_ext=rc
18983
18984 # Object file extension for compiled RC test sources.
18985 objext=o
18986 objext_RC=$objext
18987
18988 # Code to be used in simple compile tests
18989 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18990
18991 # Code to be used in simple link tests
18992 lt_simple_link_test_code="$lt_simple_compile_test_code"
18993
18994 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18995
18996 # If no C compiler was specified, use CC.
18997 LTCC=${LTCC-"$CC"}
18998
18999 # If no C compiler flags were specified, use CFLAGS.
19000 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19001
19002 # Allow CC to be a program name with arguments.
19003 compiler=$CC
19004
19005
19006 # save warnings/boilerplate of simple test code
19007 ac_outfile=conftest.$ac_objext
19008 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19009 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19010 _lt_compiler_boilerplate=`cat conftest.err`
19011 $rm conftest*
19012
19013 ac_outfile=conftest.$ac_objext
19014 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19015 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19016 _lt_linker_boilerplate=`cat conftest.err`
19017 $rm conftest*
19018
19019
19020 # Allow CC to be a program name with arguments.
19021 lt_save_CC="$CC"
19022 CC=${RC-"windres"}
19023 compiler=$CC
19024 compiler_RC=$CC
19025 for cc_temp in $compiler""; do
19026   case $cc_temp in
19027     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19028     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19029     \-*) ;;
19030     *) break;;
19031   esac
19032 done
19033 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19034
19035 lt_cv_prog_compiler_c_o_RC=yes
19036
19037 # The else clause should only fire when bootstrapping the
19038 # libtool distribution, otherwise you forgot to ship ltmain.sh
19039 # with your package, and you will get complaints that there are
19040 # no rules to generate ltmain.sh.
19041 if test -f "$ltmain"; then
19042   # See if we are running on zsh, and set the options which allow our commands through
19043   # without removal of \ escapes.
19044   if test -n "${ZSH_VERSION+set}" ; then
19045     setopt NO_GLOB_SUBST
19046   fi
19047   # Now quote all the things that may contain metacharacters while being
19048   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19049   # variables and quote the copies for generation of the libtool script.
19050   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19051     SED SHELL STRIP \
19052     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19053     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19054     deplibs_check_method reload_flag reload_cmds need_locks \
19055     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19056     lt_cv_sys_global_symbol_to_c_name_address \
19057     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19058     old_postinstall_cmds old_postuninstall_cmds \
19059     compiler_RC \
19060     CC_RC \
19061     LD_RC \
19062     lt_prog_compiler_wl_RC \
19063     lt_prog_compiler_pic_RC \
19064     lt_prog_compiler_static_RC \
19065     lt_prog_compiler_no_builtin_flag_RC \
19066     export_dynamic_flag_spec_RC \
19067     thread_safe_flag_spec_RC \
19068     whole_archive_flag_spec_RC \
19069     enable_shared_with_static_runtimes_RC \
19070     old_archive_cmds_RC \
19071     old_archive_from_new_cmds_RC \
19072     predep_objects_RC \
19073     postdep_objects_RC \
19074     predeps_RC \
19075     postdeps_RC \
19076     compiler_lib_search_path_RC \
19077     archive_cmds_RC \
19078     archive_expsym_cmds_RC \
19079     postinstall_cmds_RC \
19080     postuninstall_cmds_RC \
19081     old_archive_from_expsyms_cmds_RC \
19082     allow_undefined_flag_RC \
19083     no_undefined_flag_RC \
19084     export_symbols_cmds_RC \
19085     hardcode_libdir_flag_spec_RC \
19086     hardcode_libdir_flag_spec_ld_RC \
19087     hardcode_libdir_separator_RC \
19088     hardcode_automatic_RC \
19089     module_cmds_RC \
19090     module_expsym_cmds_RC \
19091     lt_cv_prog_compiler_c_o_RC \
19092     exclude_expsyms_RC \
19093     include_expsyms_RC; do
19094
19095     case $var in
19096     old_archive_cmds_RC | \
19097     old_archive_from_new_cmds_RC | \
19098     archive_cmds_RC | \
19099     archive_expsym_cmds_RC | \
19100     module_cmds_RC | \
19101     module_expsym_cmds_RC | \
19102     old_archive_from_expsyms_cmds_RC | \
19103     export_symbols_cmds_RC | \
19104     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19105     postinstall_cmds | postuninstall_cmds | \
19106     old_postinstall_cmds | old_postuninstall_cmds | \
19107     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19108       # Double-quote double-evaled strings.
19109       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19110       ;;
19111     *)
19112       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19113       ;;
19114     esac
19115   done
19116
19117   case $lt_echo in
19118   *'\$0 --fallback-echo"')
19119     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19120     ;;
19121   esac
19122
19123 cfgfile="$ofile"
19124
19125   cat <<__EOF__ >> "$cfgfile"
19126 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19127
19128 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19129
19130 # Shell to use when invoking shell scripts.
19131 SHELL=$lt_SHELL
19132
19133 # Whether or not to build shared libraries.
19134 build_libtool_libs=$enable_shared
19135
19136 # Whether or not to build static libraries.
19137 build_old_libs=$enable_static
19138
19139 # Whether or not to add -lc for building shared libraries.
19140 build_libtool_need_lc=$archive_cmds_need_lc_RC
19141
19142 # Whether or not to disallow shared libs when runtime libs are static
19143 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19144
19145 # Whether or not to optimize for fast installation.
19146 fast_install=$enable_fast_install
19147
19148 # The host system.
19149 host_alias=$host_alias
19150 host=$host
19151 host_os=$host_os
19152
19153 # The build system.
19154 build_alias=$build_alias
19155 build=$build
19156 build_os=$build_os
19157
19158 # An echo program that does not interpret backslashes.
19159 echo=$lt_echo
19160
19161 # The archiver.
19162 AR=$lt_AR
19163 AR_FLAGS=$lt_AR_FLAGS
19164
19165 # A C compiler.
19166 LTCC=$lt_LTCC
19167
19168 # LTCC compiler flags.
19169 LTCFLAGS=$lt_LTCFLAGS
19170
19171 # A language-specific compiler.
19172 CC=$lt_compiler_RC
19173
19174 # Is the compiler the GNU C compiler?
19175 with_gcc=$GCC_RC
19176
19177 # An ERE matcher.
19178 EGREP=$lt_EGREP
19179
19180 # The linker used to build libraries.
19181 LD=$lt_LD_RC
19182
19183 # Whether we need hard or soft links.
19184 LN_S=$lt_LN_S
19185
19186 # A BSD-compatible nm program.
19187 NM=$lt_NM
19188
19189 # A symbol stripping program
19190 STRIP=$lt_STRIP
19191
19192 # Used to examine libraries when file_magic_cmd begins "file"
19193 MAGIC_CMD=$MAGIC_CMD
19194
19195 # Used on cygwin: DLL creation program.
19196 DLLTOOL="$DLLTOOL"
19197
19198 # Used on cygwin: object dumper.
19199 OBJDUMP="$OBJDUMP"
19200
19201 # Used on cygwin: assembler.
19202 AS="$AS"
19203
19204 # The name of the directory that contains temporary libtool files.
19205 objdir=$objdir
19206
19207 # How to create reloadable object files.
19208 reload_flag=$lt_reload_flag
19209 reload_cmds=$lt_reload_cmds
19210
19211 # How to pass a linker flag through the compiler.
19212 wl=$lt_lt_prog_compiler_wl_RC
19213
19214 # Object file suffix (normally "o").
19215 objext="$ac_objext"
19216
19217 # Old archive suffix (normally "a").
19218 libext="$libext"
19219
19220 # Shared library suffix (normally ".so").
19221 shrext_cmds='$shrext_cmds'
19222
19223 # Executable file suffix (normally "").
19224 exeext="$exeext"
19225
19226 # Additional compiler flags for building library objects.
19227 pic_flag=$lt_lt_prog_compiler_pic_RC
19228 pic_mode=$pic_mode
19229
19230 # What is the maximum length of a command?
19231 max_cmd_len=$lt_cv_sys_max_cmd_len
19232
19233 # Does compiler simultaneously support -c and -o options?
19234 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19235
19236 # Must we lock files when doing compilation?
19237 need_locks=$lt_need_locks
19238
19239 # Do we need the lib prefix for modules?
19240 need_lib_prefix=$need_lib_prefix
19241
19242 # Do we need a version for libraries?
19243 need_version=$need_version
19244
19245 # Whether dlopen is supported.
19246 dlopen_support=$enable_dlopen
19247
19248 # Whether dlopen of programs is supported.
19249 dlopen_self=$enable_dlopen_self
19250
19251 # Whether dlopen of statically linked programs is supported.
19252 dlopen_self_static=$enable_dlopen_self_static
19253
19254 # Compiler flag to prevent dynamic linking.
19255 link_static_flag=$lt_lt_prog_compiler_static_RC
19256
19257 # Compiler flag to turn off builtin functions.
19258 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19259
19260 # Compiler flag to allow reflexive dlopens.
19261 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19262
19263 # Compiler flag to generate shared objects directly from archives.
19264 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19265
19266 # Compiler flag to generate thread-safe objects.
19267 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19268
19269 # Library versioning type.
19270 version_type=$version_type
19271
19272 # Format of library name prefix.
19273 libname_spec=$lt_libname_spec
19274
19275 # List of archive names.  First name is the real one, the rest are links.
19276 # The last name is the one that the linker finds with -lNAME.
19277 library_names_spec=$lt_library_names_spec
19278
19279 # The coded name of the library, if different from the real name.
19280 soname_spec=$lt_soname_spec
19281
19282 # Commands used to build and install an old-style archive.
19283 RANLIB=$lt_RANLIB
19284 old_archive_cmds=$lt_old_archive_cmds_RC
19285 old_postinstall_cmds=$lt_old_postinstall_cmds
19286 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19287
19288 # Create an old-style archive from a shared archive.
19289 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19290
19291 # Create a temporary old-style archive to link instead of a shared archive.
19292 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19293
19294 # Commands used to build and install a shared archive.
19295 archive_cmds=$lt_archive_cmds_RC
19296 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19297 postinstall_cmds=$lt_postinstall_cmds
19298 postuninstall_cmds=$lt_postuninstall_cmds
19299
19300 # Commands used to build a loadable module (assumed same as above if empty)
19301 module_cmds=$lt_module_cmds_RC
19302 module_expsym_cmds=$lt_module_expsym_cmds_RC
19303
19304 # Commands to strip libraries.
19305 old_striplib=$lt_old_striplib
19306 striplib=$lt_striplib
19307
19308 # Dependencies to place before the objects being linked to create a
19309 # shared library.
19310 predep_objects=$lt_predep_objects_RC
19311
19312 # Dependencies to place after the objects being linked to create a
19313 # shared library.
19314 postdep_objects=$lt_postdep_objects_RC
19315
19316 # Dependencies to place before the objects being linked to create a
19317 # shared library.
19318 predeps=$lt_predeps_RC
19319
19320 # Dependencies to place after the objects being linked to create a
19321 # shared library.
19322 postdeps=$lt_postdeps_RC
19323
19324 # The library search path used internally by the compiler when linking
19325 # a shared library.
19326 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19327
19328 # Method to check whether dependent libraries are shared objects.
19329 deplibs_check_method=$lt_deplibs_check_method
19330
19331 # Command to use when deplibs_check_method == file_magic.
19332 file_magic_cmd=$lt_file_magic_cmd
19333
19334 # Flag that allows shared libraries with undefined symbols to be built.
19335 allow_undefined_flag=$lt_allow_undefined_flag_RC
19336
19337 # Flag that forces no undefined symbols.
19338 no_undefined_flag=$lt_no_undefined_flag_RC
19339
19340 # Commands used to finish a libtool library installation in a directory.
19341 finish_cmds=$lt_finish_cmds
19342
19343 # Same as above, but a single script fragment to be evaled but not shown.
19344 finish_eval=$lt_finish_eval
19345
19346 # Take the output of nm and produce a listing of raw symbols and C names.
19347 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19348
19349 # Transform the output of nm in a proper C declaration
19350 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19351
19352 # Transform the output of nm in a C name address pair
19353 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19354
19355 # This is the shared library runtime path variable.
19356 runpath_var=$runpath_var
19357
19358 # This is the shared library path variable.
19359 shlibpath_var=$shlibpath_var
19360
19361 # Is shlibpath searched before the hard-coded library search path?
19362 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19363
19364 # How to hardcode a shared library path into an executable.
19365 hardcode_action=$hardcode_action_RC
19366
19367 # Whether we should hardcode library paths into libraries.
19368 hardcode_into_libs=$hardcode_into_libs
19369
19370 # Flag to hardcode \$libdir into a binary during linking.
19371 # This must work even if \$libdir does not exist.
19372 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19373
19374 # If ld is used when linking, flag to hardcode \$libdir into
19375 # a binary during linking. This must work even if \$libdir does
19376 # not exist.
19377 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19378
19379 # Whether we need a single -rpath flag with a separated argument.
19380 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19381
19382 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19383 # resulting binary.
19384 hardcode_direct=$hardcode_direct_RC
19385
19386 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19387 # resulting binary.
19388 hardcode_minus_L=$hardcode_minus_L_RC
19389
19390 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19391 # the resulting binary.
19392 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19393
19394 # Set to yes if building a shared library automatically hardcodes DIR into the library
19395 # and all subsequent libraries and executables linked against it.
19396 hardcode_automatic=$hardcode_automatic_RC
19397
19398 # Variables whose values should be saved in libtool wrapper scripts and
19399 # restored at relink time.
19400 variables_saved_for_relink="$variables_saved_for_relink"
19401
19402 # Whether libtool must link a program against all its dependency libraries.
19403 link_all_deplibs=$link_all_deplibs_RC
19404
19405 # Compile-time system search path for libraries
19406 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19407
19408 # Run-time system search path for libraries
19409 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19410
19411 # Fix the shell variable \$srcfile for the compiler.
19412 fix_srcfile_path="$fix_srcfile_path_RC"
19413
19414 # Set to yes if exported symbols are required.
19415 always_export_symbols=$always_export_symbols_RC
19416
19417 # The commands to list exported symbols.
19418 export_symbols_cmds=$lt_export_symbols_cmds_RC
19419
19420 # The commands to extract the exported symbol list from a shared archive.
19421 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19422
19423 # Symbols that should not be listed in the preloaded symbols.
19424 exclude_expsyms=$lt_exclude_expsyms_RC
19425
19426 # Symbols that must always be exported.
19427 include_expsyms=$lt_include_expsyms_RC
19428
19429 # ### END LIBTOOL TAG CONFIG: $tagname
19430
19431 __EOF__
19432
19433
19434 else
19435   # If there is no Makefile yet, we rely on a make rule to execute
19436   # `config.status --recheck' to rerun these tests and create the
19437   # libtool script then.
19438   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19439   if test -f "$ltmain_in"; then
19440     test -f Makefile && make "$ltmain"
19441   fi
19442 fi
19443
19444
19445 ac_ext=c
19446 ac_cpp='$CPP $CPPFLAGS'
19447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19450
19451 CC="$lt_save_CC"
19452
19453         ;;
19454
19455       *)
19456         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19457 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19458    { (exit 1); exit 1; }; }
19459         ;;
19460       esac
19461
19462       # Append the new tag name to the list of available tags.
19463       if test -n "$tagname" ; then
19464       available_tags="$available_tags $tagname"
19465     fi
19466     fi
19467   done
19468   IFS="$lt_save_ifs"
19469
19470   # Now substitute the updated list of available tags.
19471   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19472     mv "${ofile}T" "$ofile"
19473     chmod +x "$ofile"
19474   else
19475     rm -f "${ofile}T"
19476     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19477 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19478    { (exit 1); exit 1; }; }
19479   fi
19480 fi
19481
19482
19483
19484 # This can be used to rebuild libtool when needed
19485 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19486
19487 # Always use our own libtool.
19488 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19489
19490 # Prevent multiple expansion
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512 ###############
19513 ## System checks
19514 ##
19515
19516   { echo "$as_me:$LINENO: result: " >&5
19517 echo "${ECHO_T}" >&6; }
19518   { echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
19519 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6; }
19520
19521 ac_ext=c
19522 ac_cpp='$CPP $CPPFLAGS'
19523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19526 if test -n "$ac_tool_prefix"; then
19527   for ac_prog in xlC gcc cc
19528   do
19529     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19530 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19533 if test "${ac_cv_prog_CC+set}" = set; then
19534   echo $ECHO_N "(cached) $ECHO_C" >&6
19535 else
19536   if test -n "$CC"; then
19537   ac_cv_prog_CC="$CC" # Let the user override the test.
19538 else
19539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19540 for as_dir in $PATH
19541 do
19542   IFS=$as_save_IFS
19543   test -z "$as_dir" && as_dir=.
19544   for ac_exec_ext in '' $ac_executable_extensions; do
19545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19546     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19548     break 2
19549   fi
19550 done
19551 done
19552 IFS=$as_save_IFS
19553
19554 fi
19555 fi
19556 CC=$ac_cv_prog_CC
19557 if test -n "$CC"; then
19558   { echo "$as_me:$LINENO: result: $CC" >&5
19559 echo "${ECHO_T}$CC" >&6; }
19560 else
19561   { echo "$as_me:$LINENO: result: no" >&5
19562 echo "${ECHO_T}no" >&6; }
19563 fi
19564
19565
19566     test -n "$CC" && break
19567   done
19568 fi
19569 if test -z "$CC"; then
19570   ac_ct_CC=$CC
19571   for ac_prog in xlC gcc cc
19572 do
19573   # Extract the first word of "$ac_prog", so it can be a program name with args.
19574 set dummy $ac_prog; ac_word=$2
19575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19577 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19578   echo $ECHO_N "(cached) $ECHO_C" >&6
19579 else
19580   if test -n "$ac_ct_CC"; then
19581   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19582 else
19583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19584 for as_dir in $PATH
19585 do
19586   IFS=$as_save_IFS
19587   test -z "$as_dir" && as_dir=.
19588   for ac_exec_ext in '' $ac_executable_extensions; do
19589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19590     ac_cv_prog_ac_ct_CC="$ac_prog"
19591     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19592     break 2
19593   fi
19594 done
19595 done
19596 IFS=$as_save_IFS
19597
19598 fi
19599 fi
19600 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19601 if test -n "$ac_ct_CC"; then
19602   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19603 echo "${ECHO_T}$ac_ct_CC" >&6; }
19604 else
19605   { echo "$as_me:$LINENO: result: no" >&5
19606 echo "${ECHO_T}no" >&6; }
19607 fi
19608
19609
19610   test -n "$ac_ct_CC" && break
19611 done
19612
19613   if test "x$ac_ct_CC" = x; then
19614     CC=""
19615   else
19616     case $cross_compiling:$ac_tool_warned in
19617 yes:)
19618 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19619 whose name does not start with the host triplet.  If you think this
19620 configuration is useful to you, please write to autoconf@gnu.org." >&5
19621 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19622 whose name does not start with the host triplet.  If you think this
19623 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19624 ac_tool_warned=yes ;;
19625 esac
19626     CC=$ac_ct_CC
19627   fi
19628 fi
19629
19630
19631 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19632 See \`config.log' for more details." >&5
19633 echo "$as_me: error: no acceptable C compiler found in \$PATH
19634 See \`config.log' for more details." >&2;}
19635    { (exit 1); exit 1; }; }
19636
19637 # Provide some information about the compiler.
19638 echo "$as_me:$LINENO: checking for C compiler version" >&5
19639 ac_compiler=`set X $ac_compile; echo $2`
19640 { (ac_try="$ac_compiler --version >&5"
19641 case "(($ac_try" in
19642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643   *) ac_try_echo=$ac_try;;
19644 esac
19645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646   (eval "$ac_compiler --version >&5") 2>&5
19647   ac_status=$?
19648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649   (exit $ac_status); }
19650 { (ac_try="$ac_compiler -v >&5"
19651 case "(($ac_try" in
19652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19653   *) ac_try_echo=$ac_try;;
19654 esac
19655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19656   (eval "$ac_compiler -v >&5") 2>&5
19657   ac_status=$?
19658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659   (exit $ac_status); }
19660 { (ac_try="$ac_compiler -V >&5"
19661 case "(($ac_try" in
19662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19663   *) ac_try_echo=$ac_try;;
19664 esac
19665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19666   (eval "$ac_compiler -V >&5") 2>&5
19667   ac_status=$?
19668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669   (exit $ac_status); }
19670
19671 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19672 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19673 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19674   echo $ECHO_N "(cached) $ECHO_C" >&6
19675 else
19676   cat >conftest.$ac_ext <<_ACEOF
19677 /* confdefs.h.  */
19678 _ACEOF
19679 cat confdefs.h >>conftest.$ac_ext
19680 cat >>conftest.$ac_ext <<_ACEOF
19681 /* end confdefs.h.  */
19682
19683 int
19684 main ()
19685 {
19686 #ifndef __GNUC__
19687        choke me
19688 #endif
19689
19690   ;
19691   return 0;
19692 }
19693 _ACEOF
19694 rm -f conftest.$ac_objext
19695 if { (ac_try="$ac_compile"
19696 case "(($ac_try" in
19697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698   *) ac_try_echo=$ac_try;;
19699 esac
19700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701   (eval "$ac_compile") 2>conftest.er1
19702   ac_status=$?
19703   grep -v '^ *+' conftest.er1 >conftest.err
19704   rm -f conftest.er1
19705   cat conftest.err >&5
19706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707   (exit $ac_status); } && {
19708          test -z "$ac_c_werror_flag" ||
19709          test ! -s conftest.err
19710        } && test -s conftest.$ac_objext; then
19711   ac_compiler_gnu=yes
19712 else
19713   echo "$as_me: failed program was:" >&5
19714 sed 's/^/| /' conftest.$ac_ext >&5
19715
19716         ac_compiler_gnu=no
19717 fi
19718
19719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19720 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19721
19722 fi
19723 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19724 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19725 GCC=`test $ac_compiler_gnu = yes && echo yes`
19726 ac_test_CFLAGS=${CFLAGS+set}
19727 ac_save_CFLAGS=$CFLAGS
19728 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19729 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19730 if test "${ac_cv_prog_cc_g+set}" = set; then
19731   echo $ECHO_N "(cached) $ECHO_C" >&6
19732 else
19733   ac_save_c_werror_flag=$ac_c_werror_flag
19734    ac_c_werror_flag=yes
19735    ac_cv_prog_cc_g=no
19736    CFLAGS="-g"
19737    cat >conftest.$ac_ext <<_ACEOF
19738 /* confdefs.h.  */
19739 _ACEOF
19740 cat confdefs.h >>conftest.$ac_ext
19741 cat >>conftest.$ac_ext <<_ACEOF
19742 /* end confdefs.h.  */
19743
19744 int
19745 main ()
19746 {
19747
19748   ;
19749   return 0;
19750 }
19751 _ACEOF
19752 rm -f conftest.$ac_objext
19753 if { (ac_try="$ac_compile"
19754 case "(($ac_try" in
19755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19756   *) ac_try_echo=$ac_try;;
19757 esac
19758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19759   (eval "$ac_compile") 2>conftest.er1
19760   ac_status=$?
19761   grep -v '^ *+' conftest.er1 >conftest.err
19762   rm -f conftest.er1
19763   cat conftest.err >&5
19764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765   (exit $ac_status); } && {
19766          test -z "$ac_c_werror_flag" ||
19767          test ! -s conftest.err
19768        } && test -s conftest.$ac_objext; then
19769   ac_cv_prog_cc_g=yes
19770 else
19771   echo "$as_me: failed program was:" >&5
19772 sed 's/^/| /' conftest.$ac_ext >&5
19773
19774         CFLAGS=""
19775       cat >conftest.$ac_ext <<_ACEOF
19776 /* confdefs.h.  */
19777 _ACEOF
19778 cat confdefs.h >>conftest.$ac_ext
19779 cat >>conftest.$ac_ext <<_ACEOF
19780 /* end confdefs.h.  */
19781
19782 int
19783 main ()
19784 {
19785
19786   ;
19787   return 0;
19788 }
19789 _ACEOF
19790 rm -f conftest.$ac_objext
19791 if { (ac_try="$ac_compile"
19792 case "(($ac_try" in
19793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794   *) ac_try_echo=$ac_try;;
19795 esac
19796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797   (eval "$ac_compile") 2>conftest.er1
19798   ac_status=$?
19799   grep -v '^ *+' conftest.er1 >conftest.err
19800   rm -f conftest.er1
19801   cat conftest.err >&5
19802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803   (exit $ac_status); } && {
19804          test -z "$ac_c_werror_flag" ||
19805          test ! -s conftest.err
19806        } && test -s conftest.$ac_objext; then
19807   :
19808 else
19809   echo "$as_me: failed program was:" >&5
19810 sed 's/^/| /' conftest.$ac_ext >&5
19811
19812         ac_c_werror_flag=$ac_save_c_werror_flag
19813          CFLAGS="-g"
19814          cat >conftest.$ac_ext <<_ACEOF
19815 /* confdefs.h.  */
19816 _ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h.  */
19820
19821 int
19822 main ()
19823 {
19824
19825   ;
19826   return 0;
19827 }
19828 _ACEOF
19829 rm -f conftest.$ac_objext
19830 if { (ac_try="$ac_compile"
19831 case "(($ac_try" in
19832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19833   *) ac_try_echo=$ac_try;;
19834 esac
19835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19836   (eval "$ac_compile") 2>conftest.er1
19837   ac_status=$?
19838   grep -v '^ *+' conftest.er1 >conftest.err
19839   rm -f conftest.er1
19840   cat conftest.err >&5
19841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842   (exit $ac_status); } && {
19843          test -z "$ac_c_werror_flag" ||
19844          test ! -s conftest.err
19845        } && test -s conftest.$ac_objext; then
19846   ac_cv_prog_cc_g=yes
19847 else
19848   echo "$as_me: failed program was:" >&5
19849 sed 's/^/| /' conftest.$ac_ext >&5
19850
19851
19852 fi
19853
19854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19855 fi
19856
19857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19858 fi
19859
19860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19861    ac_c_werror_flag=$ac_save_c_werror_flag
19862 fi
19863 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19864 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19865 if test "$ac_test_CFLAGS" = set; then
19866   CFLAGS=$ac_save_CFLAGS
19867 elif test $ac_cv_prog_cc_g = yes; then
19868   if test "$GCC" = yes; then
19869     CFLAGS="-g -O2"
19870   else
19871     CFLAGS="-g"
19872   fi
19873 else
19874   if test "$GCC" = yes; then
19875     CFLAGS="-O2"
19876   else
19877     CFLAGS=
19878   fi
19879 fi
19880 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19881 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19882 if test "${ac_cv_prog_cc_c89+set}" = set; then
19883   echo $ECHO_N "(cached) $ECHO_C" >&6
19884 else
19885   ac_cv_prog_cc_c89=no
19886 ac_save_CC=$CC
19887 cat >conftest.$ac_ext <<_ACEOF
19888 /* confdefs.h.  */
19889 _ACEOF
19890 cat confdefs.h >>conftest.$ac_ext
19891 cat >>conftest.$ac_ext <<_ACEOF
19892 /* end confdefs.h.  */
19893 #include <stdarg.h>
19894 #include <stdio.h>
19895 #include <sys/types.h>
19896 #include <sys/stat.h>
19897 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19898 struct buf { int x; };
19899 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19900 static char *e (p, i)
19901      char **p;
19902      int i;
19903 {
19904   return p[i];
19905 }
19906 static char *f (char * (*g) (char **, int), char **p, ...)
19907 {
19908   char *s;
19909   va_list v;
19910   va_start (v,p);
19911   s = g (p, va_arg (v,int));
19912   va_end (v);
19913   return s;
19914 }
19915
19916 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19917    function prototypes and stuff, but not '\xHH' hex character constants.
19918    These don't provoke an error unfortunately, instead are silently treated
19919    as 'x'.  The following induces an error, until -std is added to get
19920    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19921    array size at least.  It's necessary to write '\x00'==0 to get something
19922    that's true only with -std.  */
19923 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19924
19925 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19926    inside strings and character constants.  */
19927 #define FOO(x) 'x'
19928 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19929
19930 int test (int i, double x);
19931 struct s1 {int (*f) (int a);};
19932 struct s2 {int (*f) (double a);};
19933 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19934 int argc;
19935 char **argv;
19936 int
19937 main ()
19938 {
19939 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19940   ;
19941   return 0;
19942 }
19943 _ACEOF
19944 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19945         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19946 do
19947   CC="$ac_save_CC $ac_arg"
19948   rm -f conftest.$ac_objext
19949 if { (ac_try="$ac_compile"
19950 case "(($ac_try" in
19951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19952   *) ac_try_echo=$ac_try;;
19953 esac
19954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19955   (eval "$ac_compile") 2>conftest.er1
19956   ac_status=$?
19957   grep -v '^ *+' conftest.er1 >conftest.err
19958   rm -f conftest.er1
19959   cat conftest.err >&5
19960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961   (exit $ac_status); } && {
19962          test -z "$ac_c_werror_flag" ||
19963          test ! -s conftest.err
19964        } && test -s conftest.$ac_objext; then
19965   ac_cv_prog_cc_c89=$ac_arg
19966 else
19967   echo "$as_me: failed program was:" >&5
19968 sed 's/^/| /' conftest.$ac_ext >&5
19969
19970
19971 fi
19972
19973 rm -f core conftest.err conftest.$ac_objext
19974   test "x$ac_cv_prog_cc_c89" != "xno" && break
19975 done
19976 rm -f conftest.$ac_ext
19977 CC=$ac_save_CC
19978
19979 fi
19980 # AC_CACHE_VAL
19981 case "x$ac_cv_prog_cc_c89" in
19982   x)
19983     { echo "$as_me:$LINENO: result: none needed" >&5
19984 echo "${ECHO_T}none needed" >&6; } ;;
19985   xno)
19986     { echo "$as_me:$LINENO: result: unsupported" >&5
19987 echo "${ECHO_T}unsupported" >&6; } ;;
19988   *)
19989     CC="$CC $ac_cv_prog_cc_c89"
19990     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19991 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19992 esac
19993
19994
19995 ac_ext=c
19996 ac_cpp='$CPP $CPPFLAGS'
19997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20000
20001 depcc="$CC"   am_compiler_list=
20002
20003 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20004 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20005 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20006   echo $ECHO_N "(cached) $ECHO_C" >&6
20007 else
20008   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20009   # We make a subdir and do the tests there.  Otherwise we can end up
20010   # making bogus files that we don't know about and never remove.  For
20011   # instance it was reported that on HP-UX the gcc test will end up
20012   # making a dummy file named `D' -- because `-MD' means `put the output
20013   # in D'.
20014   mkdir conftest.dir
20015   # Copy depcomp to subdir because otherwise we won't find it if we're
20016   # using a relative directory.
20017   cp "$am_depcomp" conftest.dir
20018   cd conftest.dir
20019   # We will build objects and dependencies in a subdirectory because
20020   # it helps to detect inapplicable dependency modes.  For instance
20021   # both Tru64's cc and ICC support -MD to output dependencies as a
20022   # side effect of compilation, but ICC will put the dependencies in
20023   # the current directory while Tru64 will put them in the object
20024   # directory.
20025   mkdir sub
20026
20027   am_cv_CC_dependencies_compiler_type=none
20028   if test "$am_compiler_list" = ""; then
20029      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20030   fi
20031   for depmode in $am_compiler_list; do
20032     # Setup a source with many dependencies, because some compilers
20033     # like to wrap large dependency lists on column 80 (with \), and
20034     # we should not choose a depcomp mode which is confused by this.
20035     #
20036     # We need to recreate these files for each test, as the compiler may
20037     # overwrite some of them when testing with obscure command lines.
20038     # This happens at least with the AIX C compiler.
20039     : > sub/conftest.c
20040     for i in 1 2 3 4 5 6; do
20041       echo '#include "conftst'$i'.h"' >> sub/conftest.c
20042       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20043       # Solaris 8's {/usr,}/bin/sh.
20044       touch sub/conftst$i.h
20045     done
20046     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20047
20048     case $depmode in
20049     nosideeffect)
20050       # after this tag, mechanisms are not by side-effect, so they'll
20051       # only be used when explicitly requested
20052       if test "x$enable_dependency_tracking" = xyes; then
20053         continue
20054       else
20055         break
20056       fi
20057       ;;
20058     none) break ;;
20059     esac
20060     # We check with `-c' and `-o' for the sake of the "dashmstdout"
20061     # mode.  It turns out that the SunPro C++ compiler does not properly
20062     # handle `-M -o', and we need to detect this.
20063     if depmode=$depmode \
20064        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20065        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20066        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20067          >/dev/null 2>conftest.err &&
20068        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20069        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20070        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20071       # icc doesn't choke on unknown options, it will just issue warnings
20072       # or remarks (even with -Werror).  So we grep stderr for any message
20073       # that says an option was ignored or not supported.
20074       # When given -MP, icc 7.0 and 7.1 complain thusly:
20075       #   icc: Command line warning: ignoring option '-M'; no argument required
20076       # The diagnosis changed in icc 8.0:
20077       #   icc: Command line remark: option '-MP' not supported
20078       if (grep 'ignoring option' conftest.err ||
20079           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20080         am_cv_CC_dependencies_compiler_type=$depmode
20081         break
20082       fi
20083     fi
20084   done
20085
20086   cd ..
20087   rm -rf conftest.dir
20088 else
20089   am_cv_CC_dependencies_compiler_type=none
20090 fi
20091
20092 fi
20093 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20094 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20095 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20096
20097
20098
20099 if
20100   test "x$enable_dependency_tracking" != xno \
20101   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20102   am__fastdepCC_TRUE=
20103   am__fastdepCC_FALSE='#'
20104 else
20105   am__fastdepCC_TRUE='#'
20106   am__fastdepCC_FALSE=
20107 fi
20108
20109
20110 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20111 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
20112 # Just in case
20113 sleep 1
20114 echo timestamp > conftest.file
20115 # Do `set' in a subshell so we don't clobber the current shell's
20116 # arguments.  Must try -L first in case configure is actually a
20117 # symlink; some systems play weird games with the mod time of symlinks
20118 # (eg FreeBSD returns the mod time of the symlink's containing
20119 # directory).
20120 if (
20121    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20122    if test "$*" = "X"; then
20123       # -L didn't work.
20124       set X `ls -t $srcdir/configure conftest.file`
20125    fi
20126    rm -f conftest.file
20127    if test "$*" != "X $srcdir/configure conftest.file" \
20128       && test "$*" != "X conftest.file $srcdir/configure"; then
20129
20130       # If neither matched, then we have a broken ls.  This can happen
20131       # if, for instance, CONFIG_SHELL is bash and it inherits a
20132       # broken ls alias from the environment.  This has actually
20133       # happened.  Such a system could not be considered "sane".
20134       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
20135 alias in your environment" >&5
20136 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
20137 alias in your environment" >&2;}
20138    { (exit 1); exit 1; }; }
20139    fi
20140
20141    test "$2" = conftest.file
20142    )
20143 then
20144    # Ok.
20145    :
20146 else
20147    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20148 Check your system clock" >&5
20149 echo "$as_me: error: newly created file is older than distributed files!
20150 Check your system clock" >&2;}
20151    { (exit 1); exit 1; }; }
20152 fi
20153 { echo "$as_me:$LINENO: result: yes" >&5
20154 echo "${ECHO_T}yes" >&6; }
20155 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20156 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20157 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20158 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20159   echo $ECHO_N "(cached) $ECHO_C" >&6
20160 else
20161   cat >conftest.make <<\_ACEOF
20162 SHELL = /bin/sh
20163 all:
20164         @echo '@@@%%%=$(MAKE)=@@@%%%'
20165 _ACEOF
20166 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20167 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20168   *@@@%%%=?*=@@@%%%*)
20169     eval ac_cv_prog_make_${ac_make}_set=yes;;
20170   *)
20171     eval ac_cv_prog_make_${ac_make}_set=no;;
20172 esac
20173 rm -f conftest.make
20174 fi
20175 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20176   { echo "$as_me:$LINENO: result: yes" >&5
20177 echo "${ECHO_T}yes" >&6; }
20178   SET_MAKE=
20179 else
20180   { echo "$as_me:$LINENO: result: no" >&5
20181 echo "${ECHO_T}no" >&6; }
20182   SET_MAKE="MAKE=${MAKE-make}"
20183 fi
20184
20185
20186 { echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
20187 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6; }
20188 if test "$cross_compiling" = yes; then
20189   { echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
20190 echo "${ECHO_T}assuming the worse in cross-compilation" >&6; }
20191 else
20192   cat >conftest.$ac_ext <<_ACEOF
20193 /* confdefs.h.  */
20194 _ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h.  */
20198 #include <stdio.h>
20199 int
20200 main ()
20201 {
20202 printf("%s",NULL);
20203   ;
20204   return 0;
20205 }
20206 _ACEOF
20207 rm -f conftest$ac_exeext
20208 if { (ac_try="$ac_link"
20209 case "(($ac_try" in
20210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20211   *) ac_try_echo=$ac_try;;
20212 esac
20213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20214   (eval "$ac_link") 2>&5
20215   ac_status=$?
20216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20218   { (case "(($ac_try" in
20219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20220   *) ac_try_echo=$ac_try;;
20221 esac
20222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20223   (eval "$ac_try") 2>&5
20224   ac_status=$?
20225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226   (exit $ac_status); }; }; then
20227
20228 cat >>confdefs.h <<\_ACEOF
20229 #define PRINTF_NULL_WORKING 1
20230 _ACEOF
20231
20232               { echo "$as_me:$LINENO: result: yes" >&5
20233 echo "${ECHO_T}yes" >&6; }
20234 else
20235   echo "$as_me: program exited with status $ac_status" >&5
20236 echo "$as_me: failed program was:" >&5
20237 sed 's/^/| /' conftest.$ac_ext >&5
20238
20239 ( exit $ac_status )
20240 { echo "$as_me:$LINENO: result: no" >&5
20241 echo "${ECHO_T}no" >&6; }
20242 fi
20243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20244 fi
20245
20246
20247
20248
20249     { echo "$as_me:$LINENO: checking for va_copy() function" >&5
20250 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; }
20251     if test "${ac_cv_va_copy+set}" = set; then
20252   echo $ECHO_N "(cached) $ECHO_C" >&6
20253 else
20254
20255     ac_cv_va_copy=""
20256
20257
20258
20259     if test ".$ac_cv_va_copy" = .; then
20260         if test "$cross_compiling" = yes; then
20261   ac_cv_va_copy="C99"
20262 else
20263   cat >conftest.$ac_ext <<_ACEOF
20264 /* confdefs.h.  */
20265 _ACEOF
20266 cat confdefs.h >>conftest.$ac_ext
20267 cat >>conftest.$ac_ext <<_ACEOF
20268 /* end confdefs.h.  */
20269
20270 #include <stdlib.h>
20271 #include <stdarg.h>
20272 #include <string.h>
20273 #define DO_VA_COPY(d, s) va_copy((d), (s))
20274 void test(char *str, ...)
20275 {
20276     va_list ap, ap2;
20277     int i;
20278     va_start(ap, str);
20279     DO_VA_COPY(ap2, ap);
20280     for (i = 1; i <= 9; i++) {
20281         int k = (int)va_arg(ap, int);
20282         if (k != i)
20283             abort();
20284     }
20285     DO_VA_COPY(ap, ap2);
20286     for (i = 1; i <= 9; i++) {
20287         int k = (int)va_arg(ap, int);
20288         if (k != i)
20289             abort();
20290     }
20291     va_end(ap);
20292 }
20293 int main(int argc, char *argv[])
20294 {
20295     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20296     exit(0);
20297 }
20298
20299 _ACEOF
20300 rm -f conftest$ac_exeext
20301 if { (ac_try="$ac_link"
20302 case "(($ac_try" in
20303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20304   *) ac_try_echo=$ac_try;;
20305 esac
20306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20307   (eval "$ac_link") 2>&5
20308   ac_status=$?
20309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20311   { (case "(($ac_try" in
20312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20313   *) ac_try_echo=$ac_try;;
20314 esac
20315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20316   (eval "$ac_try") 2>&5
20317   ac_status=$?
20318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319   (exit $ac_status); }; }; then
20320   ac_cv_va_copy="C99"
20321 else
20322   echo "$as_me: program exited with status $ac_status" >&5
20323 echo "$as_me: failed program was:" >&5
20324 sed 's/^/| /' conftest.$ac_ext >&5
20325
20326 fi
20327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20328 fi
20329
20330
20331             fi
20332
20333
20334
20335
20336     if test ".$ac_cv_va_copy" = .; then
20337         if test "$cross_compiling" = yes; then
20338   ac_cv_va_copy="GCM"
20339 else
20340   cat >conftest.$ac_ext <<_ACEOF
20341 /* confdefs.h.  */
20342 _ACEOF
20343 cat confdefs.h >>conftest.$ac_ext
20344 cat >>conftest.$ac_ext <<_ACEOF
20345 /* end confdefs.h.  */
20346
20347 #include <stdlib.h>
20348 #include <stdarg.h>
20349 #include <string.h>
20350 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
20351 void test(char *str, ...)
20352 {
20353     va_list ap, ap2;
20354     int i;
20355     va_start(ap, str);
20356     DO_VA_COPY(ap2, ap);
20357     for (i = 1; i <= 9; i++) {
20358         int k = (int)va_arg(ap, int);
20359         if (k != i)
20360             abort();
20361     }
20362     DO_VA_COPY(ap, ap2);
20363     for (i = 1; i <= 9; i++) {
20364         int k = (int)va_arg(ap, int);
20365         if (k != i)
20366             abort();
20367     }
20368     va_end(ap);
20369 }
20370 int main(int argc, char *argv[])
20371 {
20372     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20373     exit(0);
20374 }
20375
20376 _ACEOF
20377 rm -f conftest$ac_exeext
20378 if { (ac_try="$ac_link"
20379 case "(($ac_try" in
20380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20381   *) ac_try_echo=$ac_try;;
20382 esac
20383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20384   (eval "$ac_link") 2>&5
20385   ac_status=$?
20386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20388   { (case "(($ac_try" in
20389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20390   *) ac_try_echo=$ac_try;;
20391 esac
20392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20393   (eval "$ac_try") 2>&5
20394   ac_status=$?
20395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396   (exit $ac_status); }; }; then
20397   ac_cv_va_copy="GCM"
20398 else
20399   echo "$as_me: program exited with status $ac_status" >&5
20400 echo "$as_me: failed program was:" >&5
20401 sed 's/^/| /' conftest.$ac_ext >&5
20402
20403 fi
20404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20405 fi
20406
20407
20408             fi
20409
20410
20411
20412
20413     if test ".$ac_cv_va_copy" = .; then
20414         if test "$cross_compiling" = yes; then
20415   ac_cv_va_copy="GCH"
20416 else
20417   cat >conftest.$ac_ext <<_ACEOF
20418 /* confdefs.h.  */
20419 _ACEOF
20420 cat confdefs.h >>conftest.$ac_ext
20421 cat >>conftest.$ac_ext <<_ACEOF
20422 /* end confdefs.h.  */
20423
20424 #include <stdlib.h>
20425 #include <stdarg.h>
20426 #include <string.h>
20427 #define DO_VA_COPY(d, s) __va_copy((d), (s))
20428 void test(char *str, ...)
20429 {
20430     va_list ap, ap2;
20431     int i;
20432     va_start(ap, str);
20433     DO_VA_COPY(ap2, ap);
20434     for (i = 1; i <= 9; i++) {
20435         int k = (int)va_arg(ap, int);
20436         if (k != i)
20437             abort();
20438     }
20439     DO_VA_COPY(ap, ap2);
20440     for (i = 1; i <= 9; i++) {
20441         int k = (int)va_arg(ap, int);
20442         if (k != i)
20443             abort();
20444     }
20445     va_end(ap);
20446 }
20447 int main(int argc, char *argv[])
20448 {
20449     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20450     exit(0);
20451 }
20452
20453 _ACEOF
20454 rm -f conftest$ac_exeext
20455 if { (ac_try="$ac_link"
20456 case "(($ac_try" in
20457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20458   *) ac_try_echo=$ac_try;;
20459 esac
20460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20461   (eval "$ac_link") 2>&5
20462   ac_status=$?
20463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20465   { (case "(($ac_try" in
20466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20467   *) ac_try_echo=$ac_try;;
20468 esac
20469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20470   (eval "$ac_try") 2>&5
20471   ac_status=$?
20472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473   (exit $ac_status); }; }; then
20474   ac_cv_va_copy="GCH"
20475 else
20476   echo "$as_me: program exited with status $ac_status" >&5
20477 echo "$as_me: failed program was:" >&5
20478 sed 's/^/| /' conftest.$ac_ext >&5
20479
20480 fi
20481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20482 fi
20483
20484
20485             fi
20486
20487
20488
20489
20490     if test ".$ac_cv_va_copy" = .; then
20491         if test "$cross_compiling" = yes; then
20492   ac_cv_va_copy="GCB"
20493 else
20494   cat >conftest.$ac_ext <<_ACEOF
20495 /* confdefs.h.  */
20496 _ACEOF
20497 cat confdefs.h >>conftest.$ac_ext
20498 cat >>conftest.$ac_ext <<_ACEOF
20499 /* end confdefs.h.  */
20500
20501 #include <stdlib.h>
20502 #include <stdarg.h>
20503 #include <string.h>
20504 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
20505 void test(char *str, ...)
20506 {
20507     va_list ap, ap2;
20508     int i;
20509     va_start(ap, str);
20510     DO_VA_COPY(ap2, ap);
20511     for (i = 1; i <= 9; i++) {
20512         int k = (int)va_arg(ap, int);
20513         if (k != i)
20514             abort();
20515     }
20516     DO_VA_COPY(ap, ap2);
20517     for (i = 1; i <= 9; i++) {
20518         int k = (int)va_arg(ap, int);
20519         if (k != i)
20520             abort();
20521     }
20522     va_end(ap);
20523 }
20524 int main(int argc, char *argv[])
20525 {
20526     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20527     exit(0);
20528 }
20529
20530 _ACEOF
20531 rm -f conftest$ac_exeext
20532 if { (ac_try="$ac_link"
20533 case "(($ac_try" in
20534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20535   *) ac_try_echo=$ac_try;;
20536 esac
20537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20538   (eval "$ac_link") 2>&5
20539   ac_status=$?
20540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20542   { (case "(($ac_try" in
20543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20544   *) ac_try_echo=$ac_try;;
20545 esac
20546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20547   (eval "$ac_try") 2>&5
20548   ac_status=$?
20549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550   (exit $ac_status); }; }; then
20551   ac_cv_va_copy="GCB"
20552 else
20553   echo "$as_me: program exited with status $ac_status" >&5
20554 echo "$as_me: failed program was:" >&5
20555 sed 's/^/| /' conftest.$ac_ext >&5
20556
20557 fi
20558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20559 fi
20560
20561
20562             fi
20563
20564
20565
20566
20567     if test ".$ac_cv_va_copy" = .; then
20568         if test "$cross_compiling" = yes; then
20569   ac_cv_va_copy="ASS"
20570 else
20571   cat >conftest.$ac_ext <<_ACEOF
20572 /* confdefs.h.  */
20573 _ACEOF
20574 cat confdefs.h >>conftest.$ac_ext
20575 cat >>conftest.$ac_ext <<_ACEOF
20576 /* end confdefs.h.  */
20577
20578 #include <stdlib.h>
20579 #include <stdarg.h>
20580 #include <string.h>
20581 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
20582 void test(char *str, ...)
20583 {
20584     va_list ap, ap2;
20585     int i;
20586     va_start(ap, str);
20587     DO_VA_COPY(ap2, ap);
20588     for (i = 1; i <= 9; i++) {
20589         int k = (int)va_arg(ap, int);
20590         if (k != i)
20591             abort();
20592     }
20593     DO_VA_COPY(ap, ap2);
20594     for (i = 1; i <= 9; i++) {
20595         int k = (int)va_arg(ap, int);
20596         if (k != i)
20597             abort();
20598     }
20599     va_end(ap);
20600 }
20601 int main(int argc, char *argv[])
20602 {
20603     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20604     exit(0);
20605 }
20606
20607 _ACEOF
20608 rm -f conftest$ac_exeext
20609 if { (ac_try="$ac_link"
20610 case "(($ac_try" in
20611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20612   *) ac_try_echo=$ac_try;;
20613 esac
20614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20615   (eval "$ac_link") 2>&5
20616   ac_status=$?
20617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20619   { (case "(($ac_try" in
20620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20621   *) ac_try_echo=$ac_try;;
20622 esac
20623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20624   (eval "$ac_try") 2>&5
20625   ac_status=$?
20626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627   (exit $ac_status); }; }; then
20628   ac_cv_va_copy="ASS"
20629 else
20630   echo "$as_me: program exited with status $ac_status" >&5
20631 echo "$as_me: failed program was:" >&5
20632 sed 's/^/| /' conftest.$ac_ext >&5
20633
20634 fi
20635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20636 fi
20637
20638
20639             fi
20640
20641
20642
20643
20644     if test ".$ac_cv_va_copy" = .; then
20645         if test "$cross_compiling" = yes; then
20646   ac_cv_va_copy="ASP"
20647 else
20648   cat >conftest.$ac_ext <<_ACEOF
20649 /* confdefs.h.  */
20650 _ACEOF
20651 cat confdefs.h >>conftest.$ac_ext
20652 cat >>conftest.$ac_ext <<_ACEOF
20653 /* end confdefs.h.  */
20654
20655 #include <stdlib.h>
20656 #include <stdarg.h>
20657 #include <string.h>
20658 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
20659 void test(char *str, ...)
20660 {
20661     va_list ap, ap2;
20662     int i;
20663     va_start(ap, str);
20664     DO_VA_COPY(ap2, ap);
20665     for (i = 1; i <= 9; i++) {
20666         int k = (int)va_arg(ap, int);
20667         if (k != i)
20668             abort();
20669     }
20670     DO_VA_COPY(ap, ap2);
20671     for (i = 1; i <= 9; i++) {
20672         int k = (int)va_arg(ap, int);
20673         if (k != i)
20674             abort();
20675     }
20676     va_end(ap);
20677 }
20678 int main(int argc, char *argv[])
20679 {
20680     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20681     exit(0);
20682 }
20683
20684 _ACEOF
20685 rm -f conftest$ac_exeext
20686 if { (ac_try="$ac_link"
20687 case "(($ac_try" in
20688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20689   *) ac_try_echo=$ac_try;;
20690 esac
20691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20692   (eval "$ac_link") 2>&5
20693   ac_status=$?
20694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20696   { (case "(($ac_try" in
20697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20698   *) ac_try_echo=$ac_try;;
20699 esac
20700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20701   (eval "$ac_try") 2>&5
20702   ac_status=$?
20703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704   (exit $ac_status); }; }; then
20705   ac_cv_va_copy="ASP"
20706 else
20707   echo "$as_me: program exited with status $ac_status" >&5
20708 echo "$as_me: failed program was:" >&5
20709 sed 's/^/| /' conftest.$ac_ext >&5
20710
20711 fi
20712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20713 fi
20714
20715
20716             fi
20717
20718
20719
20720
20721     if test ".$ac_cv_va_copy" = .; then
20722         if test "$cross_compiling" = yes; then
20723   ac_cv_va_copy="CPS"
20724 else
20725   cat >conftest.$ac_ext <<_ACEOF
20726 /* confdefs.h.  */
20727 _ACEOF
20728 cat confdefs.h >>conftest.$ac_ext
20729 cat >>conftest.$ac_ext <<_ACEOF
20730 /* end confdefs.h.  */
20731
20732 #include <stdlib.h>
20733 #include <stdarg.h>
20734 #include <string.h>
20735 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20736 void test(char *str, ...)
20737 {
20738     va_list ap, ap2;
20739     int i;
20740     va_start(ap, str);
20741     DO_VA_COPY(ap2, ap);
20742     for (i = 1; i <= 9; i++) {
20743         int k = (int)va_arg(ap, int);
20744         if (k != i)
20745             abort();
20746     }
20747     DO_VA_COPY(ap, ap2);
20748     for (i = 1; i <= 9; i++) {
20749         int k = (int)va_arg(ap, int);
20750         if (k != i)
20751             abort();
20752     }
20753     va_end(ap);
20754 }
20755 int main(int argc, char *argv[])
20756 {
20757     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20758     exit(0);
20759 }
20760
20761 _ACEOF
20762 rm -f conftest$ac_exeext
20763 if { (ac_try="$ac_link"
20764 case "(($ac_try" in
20765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20766   *) ac_try_echo=$ac_try;;
20767 esac
20768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20769   (eval "$ac_link") 2>&5
20770   ac_status=$?
20771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20773   { (case "(($ac_try" in
20774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20775   *) ac_try_echo=$ac_try;;
20776 esac
20777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20778   (eval "$ac_try") 2>&5
20779   ac_status=$?
20780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781   (exit $ac_status); }; }; then
20782   ac_cv_va_copy="CPS"
20783 else
20784   echo "$as_me: program exited with status $ac_status" >&5
20785 echo "$as_me: failed program was:" >&5
20786 sed 's/^/| /' conftest.$ac_ext >&5
20787
20788 fi
20789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20790 fi
20791
20792
20793             fi
20794
20795
20796
20797
20798     if test ".$ac_cv_va_copy" = .; then
20799         if test "$cross_compiling" = yes; then
20800   ac_cv_va_copy="CPP"
20801 else
20802   cat >conftest.$ac_ext <<_ACEOF
20803 /* confdefs.h.  */
20804 _ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h.  */
20808
20809 #include <stdlib.h>
20810 #include <stdarg.h>
20811 #include <string.h>
20812 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
20813 void test(char *str, ...)
20814 {
20815     va_list ap, ap2;
20816     int i;
20817     va_start(ap, str);
20818     DO_VA_COPY(ap2, ap);
20819     for (i = 1; i <= 9; i++) {
20820         int k = (int)va_arg(ap, int);
20821         if (k != i)
20822             abort();
20823     }
20824     DO_VA_COPY(ap, ap2);
20825     for (i = 1; i <= 9; i++) {
20826         int k = (int)va_arg(ap, int);
20827         if (k != i)
20828             abort();
20829     }
20830     va_end(ap);
20831 }
20832 int main(int argc, char *argv[])
20833 {
20834     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20835     exit(0);
20836 }
20837
20838 _ACEOF
20839 rm -f conftest$ac_exeext
20840 if { (ac_try="$ac_link"
20841 case "(($ac_try" in
20842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843   *) ac_try_echo=$ac_try;;
20844 esac
20845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20846   (eval "$ac_link") 2>&5
20847   ac_status=$?
20848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20850   { (case "(($ac_try" in
20851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20852   *) ac_try_echo=$ac_try;;
20853 esac
20854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20855   (eval "$ac_try") 2>&5
20856   ac_status=$?
20857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858   (exit $ac_status); }; }; then
20859   ac_cv_va_copy="CPP"
20860 else
20861   echo "$as_me: program exited with status $ac_status" >&5
20862 echo "$as_me: failed program was:" >&5
20863 sed 's/^/| /' conftest.$ac_ext >&5
20864
20865 fi
20866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20867 fi
20868
20869
20870             fi
20871
20872     if test ".$ac_cv_va_copy" = .; then
20873         { { echo "$as_me:$LINENO: error: no working implementation found" >&5
20874 echo "$as_me: error: no working implementation found" >&2;}
20875    { (exit 1); exit 1; }; }
20876     fi
20877
20878 fi
20879
20880     if test ".$ac_cv_va_copy" = ".C99"; then
20881
20882 cat >>confdefs.h <<\_ACEOF
20883 #define HAVE_VA_COPY 1
20884 _ACEOF
20885
20886   fi
20887
20888 cat >>confdefs.h <<_ACEOF
20889 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
20890 _ACEOF
20891
20892
20893
20894     if test ".$ac_cv_va_copy" = ".C99"; then
20895       { echo "$as_me:$LINENO: result: yes" >&5
20896 echo "${ECHO_T}yes" >&6; }
20897   else
20898       { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
20899 echo "${ECHO_T}no (using fallback implementation)" >&6; }
20900   fi
20901
20902
20903 # Checks for header files.
20904 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20905 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20906 if test "${ac_cv_header_stdc+set}" = set; then
20907   echo $ECHO_N "(cached) $ECHO_C" >&6
20908 else
20909   cat >conftest.$ac_ext <<_ACEOF
20910 /* confdefs.h.  */
20911 _ACEOF
20912 cat confdefs.h >>conftest.$ac_ext
20913 cat >>conftest.$ac_ext <<_ACEOF
20914 /* end confdefs.h.  */
20915 #include <stdlib.h>
20916 #include <stdarg.h>
20917 #include <string.h>
20918 #include <float.h>
20919
20920 int
20921 main ()
20922 {
20923
20924   ;
20925   return 0;
20926 }
20927 _ACEOF
20928 rm -f conftest.$ac_objext
20929 if { (ac_try="$ac_compile"
20930 case "(($ac_try" in
20931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20932   *) ac_try_echo=$ac_try;;
20933 esac
20934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20935   (eval "$ac_compile") 2>conftest.er1
20936   ac_status=$?
20937   grep -v '^ *+' conftest.er1 >conftest.err
20938   rm -f conftest.er1
20939   cat conftest.err >&5
20940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941   (exit $ac_status); } && {
20942          test -z "$ac_c_werror_flag" ||
20943          test ! -s conftest.err
20944        } && test -s conftest.$ac_objext; then
20945   ac_cv_header_stdc=yes
20946 else
20947   echo "$as_me: failed program was:" >&5
20948 sed 's/^/| /' conftest.$ac_ext >&5
20949
20950         ac_cv_header_stdc=no
20951 fi
20952
20953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20954
20955 if test $ac_cv_header_stdc = yes; then
20956   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20957   cat >conftest.$ac_ext <<_ACEOF
20958 /* confdefs.h.  */
20959 _ACEOF
20960 cat confdefs.h >>conftest.$ac_ext
20961 cat >>conftest.$ac_ext <<_ACEOF
20962 /* end confdefs.h.  */
20963 #include <string.h>
20964
20965 _ACEOF
20966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20967   $EGREP "memchr" >/dev/null 2>&1; then
20968   :
20969 else
20970   ac_cv_header_stdc=no
20971 fi
20972 rm -f conftest*
20973
20974 fi
20975
20976 if test $ac_cv_header_stdc = yes; then
20977   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20978   cat >conftest.$ac_ext <<_ACEOF
20979 /* confdefs.h.  */
20980 _ACEOF
20981 cat confdefs.h >>conftest.$ac_ext
20982 cat >>conftest.$ac_ext <<_ACEOF
20983 /* end confdefs.h.  */
20984 #include <stdlib.h>
20985
20986 _ACEOF
20987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20988   $EGREP "free" >/dev/null 2>&1; then
20989   :
20990 else
20991   ac_cv_header_stdc=no
20992 fi
20993 rm -f conftest*
20994
20995 fi
20996
20997 if test $ac_cv_header_stdc = yes; then
20998   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20999   if test "$cross_compiling" = yes; then
21000   :
21001 else
21002   cat >conftest.$ac_ext <<_ACEOF
21003 /* confdefs.h.  */
21004 _ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h.  */
21008 #include <ctype.h>
21009 #include <stdlib.h>
21010 #if ((' ' & 0x0FF) == 0x020)
21011 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21012 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21013 #else
21014 # define ISLOWER(c) \
21015                    (('a' <= (c) && (c) <= 'i') \
21016                      || ('j' <= (c) && (c) <= 'r') \
21017                      || ('s' <= (c) && (c) <= 'z'))
21018 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21019 #endif
21020
21021 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21022 int
21023 main ()
21024 {
21025   int i;
21026   for (i = 0; i < 256; i++)
21027     if (XOR (islower (i), ISLOWER (i))
21028         || toupper (i) != TOUPPER (i))
21029       return 2;
21030   return 0;
21031 }
21032 _ACEOF
21033 rm -f conftest$ac_exeext
21034 if { (ac_try="$ac_link"
21035 case "(($ac_try" in
21036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21037   *) ac_try_echo=$ac_try;;
21038 esac
21039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21040   (eval "$ac_link") 2>&5
21041   ac_status=$?
21042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21044   { (case "(($ac_try" in
21045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21046   *) ac_try_echo=$ac_try;;
21047 esac
21048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21049   (eval "$ac_try") 2>&5
21050   ac_status=$?
21051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052   (exit $ac_status); }; }; then
21053   :
21054 else
21055   echo "$as_me: program exited with status $ac_status" >&5
21056 echo "$as_me: failed program was:" >&5
21057 sed 's/^/| /' conftest.$ac_ext >&5
21058
21059 ( exit $ac_status )
21060 ac_cv_header_stdc=no
21061 fi
21062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21063 fi
21064
21065
21066 fi
21067 fi
21068 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21069 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21070 if test $ac_cv_header_stdc = yes; then
21071
21072 cat >>confdefs.h <<\_ACEOF
21073 #define STDC_HEADERS 1
21074 _ACEOF
21075
21076 fi
21077
21078 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21079 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21080 if test "${ac_cv_header_time+set}" = set; then
21081   echo $ECHO_N "(cached) $ECHO_C" >&6
21082 else
21083   cat >conftest.$ac_ext <<_ACEOF
21084 /* confdefs.h.  */
21085 _ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h.  */
21089 #include <sys/types.h>
21090 #include <sys/time.h>
21091 #include <time.h>
21092
21093 int
21094 main ()
21095 {
21096 if ((struct tm *) 0)
21097 return 0;
21098   ;
21099   return 0;
21100 }
21101 _ACEOF
21102 rm -f conftest.$ac_objext
21103 if { (ac_try="$ac_compile"
21104 case "(($ac_try" in
21105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21106   *) ac_try_echo=$ac_try;;
21107 esac
21108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21109   (eval "$ac_compile") 2>conftest.er1
21110   ac_status=$?
21111   grep -v '^ *+' conftest.er1 >conftest.err
21112   rm -f conftest.er1
21113   cat conftest.err >&5
21114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115   (exit $ac_status); } && {
21116          test -z "$ac_c_werror_flag" ||
21117          test ! -s conftest.err
21118        } && test -s conftest.$ac_objext; then
21119   ac_cv_header_time=yes
21120 else
21121   echo "$as_me: failed program was:" >&5
21122 sed 's/^/| /' conftest.$ac_ext >&5
21123
21124         ac_cv_header_time=no
21125 fi
21126
21127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21128 fi
21129 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21130 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21131 if test $ac_cv_header_time = yes; then
21132
21133 cat >>confdefs.h <<\_ACEOF
21134 #define TIME_WITH_SYS_TIME 1
21135 _ACEOF
21136
21137 fi
21138
21139
21140
21141
21142
21143
21144
21145
21146
21147
21148
21149 for ac_header in sys/socket.h \
21150                   sys/stat.h \
21151                   windows.h winsock.h winsock2.h \
21152                   sys/time.h \
21153                   errno.h unistd.h \
21154                   execinfo.h\
21155                   signal.h
21156 do
21157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21159   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21162   echo $ECHO_N "(cached) $ECHO_C" >&6
21163 fi
21164 ac_res=`eval echo '${'$as_ac_Header'}'`
21165                { echo "$as_me:$LINENO: result: $ac_res" >&5
21166 echo "${ECHO_T}$ac_res" >&6; }
21167 else
21168   # Is the header compilable?
21169 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21171 cat >conftest.$ac_ext <<_ACEOF
21172 /* confdefs.h.  */
21173 _ACEOF
21174 cat confdefs.h >>conftest.$ac_ext
21175 cat >>conftest.$ac_ext <<_ACEOF
21176 /* end confdefs.h.  */
21177 $ac_includes_default
21178 #include <$ac_header>
21179 _ACEOF
21180 rm -f conftest.$ac_objext
21181 if { (ac_try="$ac_compile"
21182 case "(($ac_try" in
21183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21184   *) ac_try_echo=$ac_try;;
21185 esac
21186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21187   (eval "$ac_compile") 2>conftest.er1
21188   ac_status=$?
21189   grep -v '^ *+' conftest.er1 >conftest.err
21190   rm -f conftest.er1
21191   cat conftest.err >&5
21192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193   (exit $ac_status); } && {
21194          test -z "$ac_c_werror_flag" ||
21195          test ! -s conftest.err
21196        } && test -s conftest.$ac_objext; then
21197   ac_header_compiler=yes
21198 else
21199   echo "$as_me: failed program was:" >&5
21200 sed 's/^/| /' conftest.$ac_ext >&5
21201
21202         ac_header_compiler=no
21203 fi
21204
21205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21207 echo "${ECHO_T}$ac_header_compiler" >&6; }
21208
21209 # Is the header present?
21210 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21212 cat >conftest.$ac_ext <<_ACEOF
21213 /* confdefs.h.  */
21214 _ACEOF
21215 cat confdefs.h >>conftest.$ac_ext
21216 cat >>conftest.$ac_ext <<_ACEOF
21217 /* end confdefs.h.  */
21218 #include <$ac_header>
21219 _ACEOF
21220 if { (ac_try="$ac_cpp conftest.$ac_ext"
21221 case "(($ac_try" in
21222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21223   *) ac_try_echo=$ac_try;;
21224 esac
21225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21226   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21227   ac_status=$?
21228   grep -v '^ *+' conftest.er1 >conftest.err
21229   rm -f conftest.er1
21230   cat conftest.err >&5
21231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232   (exit $ac_status); } >/dev/null && {
21233          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21234          test ! -s conftest.err
21235        }; then
21236   ac_header_preproc=yes
21237 else
21238   echo "$as_me: failed program was:" >&5
21239 sed 's/^/| /' conftest.$ac_ext >&5
21240
21241   ac_header_preproc=no
21242 fi
21243
21244 rm -f conftest.err conftest.$ac_ext
21245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21246 echo "${ECHO_T}$ac_header_preproc" >&6; }
21247
21248 # So?  What about this header?
21249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21250   yes:no: )
21251     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21253     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21255     ac_header_preproc=yes
21256     ;;
21257   no:yes:* )
21258     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21260     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21261 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21262     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21264     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21265 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21266     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21268     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21270     ( cat <<\_ASBOX
21271 ## -------------------------------------------------- ##
21272 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
21273 ## -------------------------------------------------- ##
21274 _ASBOX
21275      ) | sed "s/^/$as_me: WARNING:     /" >&2
21276     ;;
21277 esac
21278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21281   echo $ECHO_N "(cached) $ECHO_C" >&6
21282 else
21283   eval "$as_ac_Header=\$ac_header_preproc"
21284 fi
21285 ac_res=`eval echo '${'$as_ac_Header'}'`
21286                { echo "$as_me:$LINENO: result: $ac_res" >&5
21287 echo "${ECHO_T}$ac_res" >&6; }
21288
21289 fi
21290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21291   cat >>confdefs.h <<_ACEOF
21292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21293 _ACEOF
21294
21295 fi
21296
21297 done
21298
21299
21300
21301
21302
21303
21304
21305
21306
21307 for ac_func in gettimeofday usleep \
21308                 getdtablesize \
21309                 sysconf\
21310                 readv\
21311                 popen\
21312                 signal\
21313                 getline
21314 do
21315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21316 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21318 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21319   echo $ECHO_N "(cached) $ECHO_C" >&6
21320 else
21321   cat >conftest.$ac_ext <<_ACEOF
21322 /* confdefs.h.  */
21323 _ACEOF
21324 cat confdefs.h >>conftest.$ac_ext
21325 cat >>conftest.$ac_ext <<_ACEOF
21326 /* end confdefs.h.  */
21327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21328    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21329 #define $ac_func innocuous_$ac_func
21330
21331 /* System header to define __stub macros and hopefully few prototypes,
21332     which can conflict with char $ac_func (); below.
21333     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21334     <limits.h> exists even on freestanding compilers.  */
21335
21336 #ifdef __STDC__
21337 # include <limits.h>
21338 #else
21339 # include <assert.h>
21340 #endif
21341
21342 #undef $ac_func
21343
21344 /* Override any GCC internal prototype to avoid an error.
21345    Use char because int might match the return type of a GCC
21346    builtin and then its argument prototype would still apply.  */
21347 #ifdef __cplusplus
21348 extern "C"
21349 #endif
21350 char $ac_func ();
21351 /* The GNU C library defines this for functions which it implements
21352     to always fail with ENOSYS.  Some functions are actually named
21353     something starting with __ and the normal name is an alias.  */
21354 #if defined __stub_$ac_func || defined __stub___$ac_func
21355 choke me
21356 #endif
21357
21358 int
21359 main ()
21360 {
21361 return $ac_func ();
21362   ;
21363   return 0;
21364 }
21365 _ACEOF
21366 rm -f conftest.$ac_objext conftest$ac_exeext
21367 if { (ac_try="$ac_link"
21368 case "(($ac_try" in
21369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21370   *) ac_try_echo=$ac_try;;
21371 esac
21372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21373   (eval "$ac_link") 2>conftest.er1
21374   ac_status=$?
21375   grep -v '^ *+' conftest.er1 >conftest.err
21376   rm -f conftest.er1
21377   cat conftest.err >&5
21378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379   (exit $ac_status); } && {
21380          test -z "$ac_c_werror_flag" ||
21381          test ! -s conftest.err
21382        } && test -s conftest$ac_exeext &&
21383        $as_test_x conftest$ac_exeext; then
21384   eval "$as_ac_var=yes"
21385 else
21386   echo "$as_me: failed program was:" >&5
21387 sed 's/^/| /' conftest.$ac_ext >&5
21388
21389         eval "$as_ac_var=no"
21390 fi
21391
21392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21393       conftest$ac_exeext conftest.$ac_ext
21394 fi
21395 ac_res=`eval echo '${'$as_ac_var'}'`
21396                { echo "$as_me:$LINENO: result: $ac_res" >&5
21397 echo "${ECHO_T}$ac_res" >&6; }
21398 if test `eval echo '${'$as_ac_var'}'` = yes; then
21399   cat >>confdefs.h <<_ACEOF
21400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21401 _ACEOF
21402
21403 fi
21404 done
21405
21406
21407 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
21408
21409
21410 for ac_func in snprintf vsnprintf
21411 do
21412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21413 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21415 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21416   echo $ECHO_N "(cached) $ECHO_C" >&6
21417 else
21418   cat >conftest.$ac_ext <<_ACEOF
21419 /* confdefs.h.  */
21420 _ACEOF
21421 cat confdefs.h >>conftest.$ac_ext
21422 cat >>conftest.$ac_ext <<_ACEOF
21423 /* end confdefs.h.  */
21424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21425    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21426 #define $ac_func innocuous_$ac_func
21427
21428 /* System header to define __stub macros and hopefully few prototypes,
21429     which can conflict with char $ac_func (); below.
21430     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21431     <limits.h> exists even on freestanding compilers.  */
21432
21433 #ifdef __STDC__
21434 # include <limits.h>
21435 #else
21436 # include <assert.h>
21437 #endif
21438
21439 #undef $ac_func
21440
21441 /* Override any GCC internal prototype to avoid an error.
21442    Use char because int might match the return type of a GCC
21443    builtin and then its argument prototype would still apply.  */
21444 #ifdef __cplusplus
21445 extern "C"
21446 #endif
21447 char $ac_func ();
21448 /* The GNU C library defines this for functions which it implements
21449     to always fail with ENOSYS.  Some functions are actually named
21450     something starting with __ and the normal name is an alias.  */
21451 #if defined __stub_$ac_func || defined __stub___$ac_func
21452 choke me
21453 #endif
21454
21455 int
21456 main ()
21457 {
21458 return $ac_func ();
21459   ;
21460   return 0;
21461 }
21462 _ACEOF
21463 rm -f conftest.$ac_objext conftest$ac_exeext
21464 if { (ac_try="$ac_link"
21465 case "(($ac_try" in
21466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21467   *) ac_try_echo=$ac_try;;
21468 esac
21469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21470   (eval "$ac_link") 2>conftest.er1
21471   ac_status=$?
21472   grep -v '^ *+' conftest.er1 >conftest.err
21473   rm -f conftest.er1
21474   cat conftest.err >&5
21475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476   (exit $ac_status); } && {
21477          test -z "$ac_c_werror_flag" ||
21478          test ! -s conftest.err
21479        } && test -s conftest$ac_exeext &&
21480        $as_test_x conftest$ac_exeext; then
21481   eval "$as_ac_var=yes"
21482 else
21483   echo "$as_me: failed program was:" >&5
21484 sed 's/^/| /' conftest.$ac_ext >&5
21485
21486         eval "$as_ac_var=no"
21487 fi
21488
21489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21490       conftest$ac_exeext conftest.$ac_ext
21491 fi
21492 ac_res=`eval echo '${'$as_ac_var'}'`
21493                { echo "$as_me:$LINENO: result: $ac_res" >&5
21494 echo "${ECHO_T}$ac_res" >&6; }
21495 if test `eval echo '${'$as_ac_var'}'` = yes; then
21496   cat >>confdefs.h <<_ACEOF
21497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21498 _ACEOF
21499
21500 fi
21501 done
21502
21503 { echo "$as_me:$LINENO: checking for working snprintf" >&5
21504 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
21505 if test "${ac_cv_have_working_snprintf+set}" = set; then
21506   echo $ECHO_N "(cached) $ECHO_C" >&6
21507 else
21508   if test "$cross_compiling" = yes; then
21509   ac_cv_have_working_snprintf=cross
21510 else
21511   cat >conftest.$ac_ext <<_ACEOF
21512 /* confdefs.h.  */
21513 _ACEOF
21514 cat confdefs.h >>conftest.$ac_ext
21515 cat >>conftest.$ac_ext <<_ACEOF
21516 /* end confdefs.h.  */
21517 #include <stdio.h>
21518
21519 int main(void)
21520 {
21521     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21522     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21523     int i;
21524     i = snprintf (bufs, 2, "%s", "111");
21525     if (strcmp (bufs, "1")) exit (1);
21526     if (i != 3) exit (1);
21527     i = snprintf (bufd, 2, "%d", 111);
21528     if (strcmp (bufd, "1")) exit (1);
21529     if (i != 3) exit (1);
21530     exit(0);
21531 }
21532 _ACEOF
21533 rm -f conftest$ac_exeext
21534 if { (ac_try="$ac_link"
21535 case "(($ac_try" in
21536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21537   *) ac_try_echo=$ac_try;;
21538 esac
21539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21540   (eval "$ac_link") 2>&5
21541   ac_status=$?
21542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21544   { (case "(($ac_try" in
21545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21546   *) ac_try_echo=$ac_try;;
21547 esac
21548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21549   (eval "$ac_try") 2>&5
21550   ac_status=$?
21551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552   (exit $ac_status); }; }; then
21553   ac_cv_have_working_snprintf=yes
21554 else
21555   echo "$as_me: program exited with status $ac_status" >&5
21556 echo "$as_me: failed program was:" >&5
21557 sed 's/^/| /' conftest.$ac_ext >&5
21558
21559 ( exit $ac_status )
21560 ac_cv_have_working_snprintf=no
21561 fi
21562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21563 fi
21564
21565
21566 fi
21567
21568 { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
21569 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
21570 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
21571 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
21572 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
21573   echo $ECHO_N "(cached) $ECHO_C" >&6
21574 else
21575   if test "$cross_compiling" = yes; then
21576   ac_cv_have_working_vsnprintf=cross
21577 else
21578   cat >conftest.$ac_ext <<_ACEOF
21579 /* confdefs.h.  */
21580 _ACEOF
21581 cat confdefs.h >>conftest.$ac_ext
21582 cat >>conftest.$ac_ext <<_ACEOF
21583 /* end confdefs.h.  */
21584 #include <stdio.h>
21585 #include <stdarg.h>
21586
21587 int my_vsnprintf (char *buf, const char *tmpl, ...)
21588 {
21589     int i;
21590     va_list args;
21591     va_start (args, tmpl);
21592     i = vsnprintf (buf, 2, tmpl, args);
21593     va_end (args);
21594     return i;
21595 }
21596
21597 int main(void)
21598 {
21599     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21600     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21601     int i;
21602     i = my_vsnprintf (bufs, "%s", "111");
21603     if (strcmp (bufs, "1")) exit (1);
21604     if (i != 3) exit (1);
21605     i = my_vsnprintf (bufd, "%d", 111);
21606     if (strcmp (bufd, "1")) exit (1);
21607     if (i != 3) exit (1);
21608     exit(0);
21609 }
21610 _ACEOF
21611 rm -f conftest$ac_exeext
21612 if { (ac_try="$ac_link"
21613 case "(($ac_try" in
21614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21615   *) ac_try_echo=$ac_try;;
21616 esac
21617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21618   (eval "$ac_link") 2>&5
21619   ac_status=$?
21620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21622   { (case "(($ac_try" in
21623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21624   *) ac_try_echo=$ac_try;;
21625 esac
21626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21627   (eval "$ac_try") 2>&5
21628   ac_status=$?
21629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630   (exit $ac_status); }; }; then
21631   ac_cv_have_working_vsnprintf=yes
21632 else
21633   echo "$as_me: program exited with status $ac_status" >&5
21634 echo "$as_me: failed program was:" >&5
21635 sed 's/^/| /' conftest.$ac_ext >&5
21636
21637 ( exit $ac_status )
21638 ac_cv_have_working_vsnprintf=no
21639 fi
21640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21641 fi
21642
21643
21644 fi
21645
21646 { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
21647 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
21648 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
21649   case " $LIBOBJS " in
21650   *" snprintf.$ac_objext "* ) ;;
21651   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21652  ;;
21653 esac
21654
21655   { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
21656 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
21657
21658 cat >>confdefs.h <<\_ACEOF
21659 #define PREFER_PORTABLE_SNPRINTF 1
21660 _ACEOF
21661
21662 fi
21663 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
21664 { echo "$as_me:$LINENO: checking for asprintf" >&5
21665 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6; }
21666 if test "${ac_cv_func_asprintf+set}" = set; then
21667   echo $ECHO_N "(cached) $ECHO_C" >&6
21668 else
21669   cat >conftest.$ac_ext <<_ACEOF
21670 /* confdefs.h.  */
21671 _ACEOF
21672 cat confdefs.h >>conftest.$ac_ext
21673 cat >>conftest.$ac_ext <<_ACEOF
21674 /* end confdefs.h.  */
21675 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
21676    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21677 #define asprintf innocuous_asprintf
21678
21679 /* System header to define __stub macros and hopefully few prototypes,
21680     which can conflict with char asprintf (); below.
21681     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21682     <limits.h> exists even on freestanding compilers.  */
21683
21684 #ifdef __STDC__
21685 # include <limits.h>
21686 #else
21687 # include <assert.h>
21688 #endif
21689
21690 #undef asprintf
21691
21692 /* Override any GCC internal prototype to avoid an error.
21693    Use char because int might match the return type of a GCC
21694    builtin and then its argument prototype would still apply.  */
21695 #ifdef __cplusplus
21696 extern "C"
21697 #endif
21698 char asprintf ();
21699 /* The GNU C library defines this for functions which it implements
21700     to always fail with ENOSYS.  Some functions are actually named
21701     something starting with __ and the normal name is an alias.  */
21702 #if defined __stub_asprintf || defined __stub___asprintf
21703 choke me
21704 #endif
21705
21706 int
21707 main ()
21708 {
21709 return asprintf ();
21710   ;
21711   return 0;
21712 }
21713 _ACEOF
21714 rm -f conftest.$ac_objext conftest$ac_exeext
21715 if { (ac_try="$ac_link"
21716 case "(($ac_try" in
21717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21718   *) ac_try_echo=$ac_try;;
21719 esac
21720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21721   (eval "$ac_link") 2>conftest.er1
21722   ac_status=$?
21723   grep -v '^ *+' conftest.er1 >conftest.err
21724   rm -f conftest.er1
21725   cat conftest.err >&5
21726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727   (exit $ac_status); } && {
21728          test -z "$ac_c_werror_flag" ||
21729          test ! -s conftest.err
21730        } && test -s conftest$ac_exeext &&
21731        $as_test_x conftest$ac_exeext; then
21732   ac_cv_func_asprintf=yes
21733 else
21734   echo "$as_me: failed program was:" >&5
21735 sed 's/^/| /' conftest.$ac_ext >&5
21736
21737         ac_cv_func_asprintf=no
21738 fi
21739
21740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21741       conftest$ac_exeext conftest.$ac_ext
21742 fi
21743 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21744 echo "${ECHO_T}$ac_cv_func_asprintf" >&6; }
21745 if test $ac_cv_func_asprintf = yes; then
21746   :
21747 else
21748
21749 cat >>confdefs.h <<\_ACEOF
21750 #define NEED_ASPRINTF 1
21751 _ACEOF
21752
21753 fi
21754
21755 { echo "$as_me:$LINENO: checking for vasprintf" >&5
21756 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6; }
21757 if test "${ac_cv_func_vasprintf+set}" = set; then
21758   echo $ECHO_N "(cached) $ECHO_C" >&6
21759 else
21760   cat >conftest.$ac_ext <<_ACEOF
21761 /* confdefs.h.  */
21762 _ACEOF
21763 cat confdefs.h >>conftest.$ac_ext
21764 cat >>conftest.$ac_ext <<_ACEOF
21765 /* end confdefs.h.  */
21766 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
21767    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21768 #define vasprintf innocuous_vasprintf
21769
21770 /* System header to define __stub macros and hopefully few prototypes,
21771     which can conflict with char vasprintf (); below.
21772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21773     <limits.h> exists even on freestanding compilers.  */
21774
21775 #ifdef __STDC__
21776 # include <limits.h>
21777 #else
21778 # include <assert.h>
21779 #endif
21780
21781 #undef vasprintf
21782
21783 /* Override any GCC internal prototype to avoid an error.
21784    Use char because int might match the return type of a GCC
21785    builtin and then its argument prototype would still apply.  */
21786 #ifdef __cplusplus
21787 extern "C"
21788 #endif
21789 char vasprintf ();
21790 /* The GNU C library defines this for functions which it implements
21791     to always fail with ENOSYS.  Some functions are actually named
21792     something starting with __ and the normal name is an alias.  */
21793 #if defined __stub_vasprintf || defined __stub___vasprintf
21794 choke me
21795 #endif
21796
21797 int
21798 main ()
21799 {
21800 return vasprintf ();
21801   ;
21802   return 0;
21803 }
21804 _ACEOF
21805 rm -f conftest.$ac_objext conftest$ac_exeext
21806 if { (ac_try="$ac_link"
21807 case "(($ac_try" in
21808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21809   *) ac_try_echo=$ac_try;;
21810 esac
21811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21812   (eval "$ac_link") 2>conftest.er1
21813   ac_status=$?
21814   grep -v '^ *+' conftest.er1 >conftest.err
21815   rm -f conftest.er1
21816   cat conftest.err >&5
21817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818   (exit $ac_status); } && {
21819          test -z "$ac_c_werror_flag" ||
21820          test ! -s conftest.err
21821        } && test -s conftest$ac_exeext &&
21822        $as_test_x conftest$ac_exeext; then
21823   ac_cv_func_vasprintf=yes
21824 else
21825   echo "$as_me: failed program was:" >&5
21826 sed 's/^/| /' conftest.$ac_ext >&5
21827
21828         ac_cv_func_vasprintf=no
21829 fi
21830
21831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21832       conftest$ac_exeext conftest.$ac_ext
21833 fi
21834 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
21835 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6; }
21836 if test $ac_cv_func_vasprintf = yes; then
21837   :
21838 else
21839
21840 cat >>confdefs.h <<\_ACEOF
21841 #define NEED_VASPRINTF 1
21842 _ACEOF
21843
21844 fi
21845
21846
21847 # Checks for typedefs, structures, and compiler characteristics.
21848 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21849 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21850 if test "${ac_cv_c_const+set}" = set; then
21851   echo $ECHO_N "(cached) $ECHO_C" >&6
21852 else
21853   cat >conftest.$ac_ext <<_ACEOF
21854 /* confdefs.h.  */
21855 _ACEOF
21856 cat confdefs.h >>conftest.$ac_ext
21857 cat >>conftest.$ac_ext <<_ACEOF
21858 /* end confdefs.h.  */
21859
21860 int
21861 main ()
21862 {
21863 /* FIXME: Include the comments suggested by Paul. */
21864 #ifndef __cplusplus
21865   /* Ultrix mips cc rejects this.  */
21866   typedef int charset[2];
21867   const charset cs;
21868   /* SunOS 4.1.1 cc rejects this.  */
21869   char const *const *pcpcc;
21870   char **ppc;
21871   /* NEC SVR4.0.2 mips cc rejects this.  */
21872   struct point {int x, y;};
21873   static struct point const zero = {0,0};
21874   /* AIX XL C 1.02.0.0 rejects this.
21875      It does not let you subtract one const X* pointer from another in
21876      an arm of an if-expression whose if-part is not a constant
21877      expression */
21878   const char *g = "string";
21879   pcpcc = &g + (g ? g-g : 0);
21880   /* HPUX 7.0 cc rejects these. */
21881   ++pcpcc;
21882   ppc = (char**) pcpcc;
21883   pcpcc = (char const *const *) ppc;
21884   { /* SCO 3.2v4 cc rejects this.  */
21885     char *t;
21886     char const *s = 0 ? (char *) 0 : (char const *) 0;
21887
21888     *t++ = 0;
21889     if (s) return 0;
21890   }
21891   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21892     int x[] = {25, 17};
21893     const int *foo = &x[0];
21894     ++foo;
21895   }
21896   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21897     typedef const int *iptr;
21898     iptr p = 0;
21899     ++p;
21900   }
21901   { /* AIX XL C 1.02.0.0 rejects this saying
21902        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21903     struct s { int j; const int *ap[3]; };
21904     struct s *b; b->j = 5;
21905   }
21906   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21907     const int foo = 10;
21908     if (!foo) return 0;
21909   }
21910   return !cs[0] && !zero.x;
21911 #endif
21912
21913   ;
21914   return 0;
21915 }
21916 _ACEOF
21917 rm -f conftest.$ac_objext
21918 if { (ac_try="$ac_compile"
21919 case "(($ac_try" in
21920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21921   *) ac_try_echo=$ac_try;;
21922 esac
21923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21924   (eval "$ac_compile") 2>conftest.er1
21925   ac_status=$?
21926   grep -v '^ *+' conftest.er1 >conftest.err
21927   rm -f conftest.er1
21928   cat conftest.err >&5
21929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930   (exit $ac_status); } && {
21931          test -z "$ac_c_werror_flag" ||
21932          test ! -s conftest.err
21933        } && test -s conftest.$ac_objext; then
21934   ac_cv_c_const=yes
21935 else
21936   echo "$as_me: failed program was:" >&5
21937 sed 's/^/| /' conftest.$ac_ext >&5
21938
21939         ac_cv_c_const=no
21940 fi
21941
21942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21943 fi
21944 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21945 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21946 if test $ac_cv_c_const = no; then
21947
21948 cat >>confdefs.h <<\_ACEOF
21949 #define const
21950 _ACEOF
21951
21952 fi
21953
21954 { echo "$as_me:$LINENO: checking for inline" >&5
21955 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21956 if test "${ac_cv_c_inline+set}" = set; then
21957   echo $ECHO_N "(cached) $ECHO_C" >&6
21958 else
21959   ac_cv_c_inline=no
21960 for ac_kw in inline __inline__ __inline; do
21961   cat >conftest.$ac_ext <<_ACEOF
21962 /* confdefs.h.  */
21963 _ACEOF
21964 cat confdefs.h >>conftest.$ac_ext
21965 cat >>conftest.$ac_ext <<_ACEOF
21966 /* end confdefs.h.  */
21967 #ifndef __cplusplus
21968 typedef int foo_t;
21969 static $ac_kw foo_t static_foo () {return 0; }
21970 $ac_kw foo_t foo () {return 0; }
21971 #endif
21972
21973 _ACEOF
21974 rm -f conftest.$ac_objext
21975 if { (ac_try="$ac_compile"
21976 case "(($ac_try" in
21977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21978   *) ac_try_echo=$ac_try;;
21979 esac
21980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21981   (eval "$ac_compile") 2>conftest.er1
21982   ac_status=$?
21983   grep -v '^ *+' conftest.er1 >conftest.err
21984   rm -f conftest.er1
21985   cat conftest.err >&5
21986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987   (exit $ac_status); } && {
21988          test -z "$ac_c_werror_flag" ||
21989          test ! -s conftest.err
21990        } && test -s conftest.$ac_objext; then
21991   ac_cv_c_inline=$ac_kw
21992 else
21993   echo "$as_me: failed program was:" >&5
21994 sed 's/^/| /' conftest.$ac_ext >&5
21995
21996
21997 fi
21998
21999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22000   test "$ac_cv_c_inline" != no && break
22001 done
22002
22003 fi
22004 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22005 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
22006
22007
22008 case $ac_cv_c_inline in
22009   inline | yes) ;;
22010   *)
22011     case $ac_cv_c_inline in
22012       no) ac_val=;;
22013       *) ac_val=$ac_cv_c_inline;;
22014     esac
22015     cat >>confdefs.h <<_ACEOF
22016 #ifndef __cplusplus
22017 #define inline $ac_val
22018 #endif
22019 _ACEOF
22020     ;;
22021 esac
22022
22023 { echo "$as_me:$LINENO: checking for size_t" >&5
22024 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22025 if test "${ac_cv_type_size_t+set}" = set; then
22026   echo $ECHO_N "(cached) $ECHO_C" >&6
22027 else
22028   cat >conftest.$ac_ext <<_ACEOF
22029 /* confdefs.h.  */
22030 _ACEOF
22031 cat confdefs.h >>conftest.$ac_ext
22032 cat >>conftest.$ac_ext <<_ACEOF
22033 /* end confdefs.h.  */
22034 $ac_includes_default
22035 typedef size_t ac__type_new_;
22036 int
22037 main ()
22038 {
22039 if ((ac__type_new_ *) 0)
22040   return 0;
22041 if (sizeof (ac__type_new_))
22042   return 0;
22043   ;
22044   return 0;
22045 }
22046 _ACEOF
22047 rm -f conftest.$ac_objext
22048 if { (ac_try="$ac_compile"
22049 case "(($ac_try" in
22050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22051   *) ac_try_echo=$ac_try;;
22052 esac
22053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22054   (eval "$ac_compile") 2>conftest.er1
22055   ac_status=$?
22056   grep -v '^ *+' conftest.er1 >conftest.err
22057   rm -f conftest.er1
22058   cat conftest.err >&5
22059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060   (exit $ac_status); } && {
22061          test -z "$ac_c_werror_flag" ||
22062          test ! -s conftest.err
22063        } && test -s conftest.$ac_objext; then
22064   ac_cv_type_size_t=yes
22065 else
22066   echo "$as_me: failed program was:" >&5
22067 sed 's/^/| /' conftest.$ac_ext >&5
22068
22069         ac_cv_type_size_t=no
22070 fi
22071
22072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22073 fi
22074 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22075 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22076 if test $ac_cv_type_size_t = yes; then
22077   :
22078 else
22079
22080 cat >>confdefs.h <<_ACEOF
22081 #define size_t unsigned int
22082 _ACEOF
22083
22084 fi
22085
22086
22087 ###################################
22088 ## SimGrid and GRAS specific checks
22089 ##
22090
22091
22092   { echo "$as_me:$LINENO: result: " >&5
22093 echo "${ECHO_T}" >&6; }
22094   { echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
22095 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6; }
22096
22097 # Check architecture signature begin
22098
22099 # Check for the architecture
22100 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22101 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22102 if test "${ac_cv_c_bigendian+set}" = set; then
22103   echo $ECHO_N "(cached) $ECHO_C" >&6
22104 else
22105   # See if sys/param.h defines the BYTE_ORDER macro.
22106 cat >conftest.$ac_ext <<_ACEOF
22107 /* confdefs.h.  */
22108 _ACEOF
22109 cat confdefs.h >>conftest.$ac_ext
22110 cat >>conftest.$ac_ext <<_ACEOF
22111 /* end confdefs.h.  */
22112 #include <sys/types.h>
22113 #include <sys/param.h>
22114
22115 int
22116 main ()
22117 {
22118 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22119         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22120  bogus endian macros
22121 #endif
22122
22123   ;
22124   return 0;
22125 }
22126 _ACEOF
22127 rm -f conftest.$ac_objext
22128 if { (ac_try="$ac_compile"
22129 case "(($ac_try" in
22130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22131   *) ac_try_echo=$ac_try;;
22132 esac
22133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22134   (eval "$ac_compile") 2>conftest.er1
22135   ac_status=$?
22136   grep -v '^ *+' conftest.er1 >conftest.err
22137   rm -f conftest.er1
22138   cat conftest.err >&5
22139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140   (exit $ac_status); } && {
22141          test -z "$ac_c_werror_flag" ||
22142          test ! -s conftest.err
22143        } && test -s conftest.$ac_objext; then
22144   # It does; now see whether it defined to BIG_ENDIAN or not.
22145 cat >conftest.$ac_ext <<_ACEOF
22146 /* confdefs.h.  */
22147 _ACEOF
22148 cat confdefs.h >>conftest.$ac_ext
22149 cat >>conftest.$ac_ext <<_ACEOF
22150 /* end confdefs.h.  */
22151 #include <sys/types.h>
22152 #include <sys/param.h>
22153
22154 int
22155 main ()
22156 {
22157 #if BYTE_ORDER != BIG_ENDIAN
22158  not big endian
22159 #endif
22160
22161   ;
22162   return 0;
22163 }
22164 _ACEOF
22165 rm -f conftest.$ac_objext
22166 if { (ac_try="$ac_compile"
22167 case "(($ac_try" in
22168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22169   *) ac_try_echo=$ac_try;;
22170 esac
22171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22172   (eval "$ac_compile") 2>conftest.er1
22173   ac_status=$?
22174   grep -v '^ *+' conftest.er1 >conftest.err
22175   rm -f conftest.er1
22176   cat conftest.err >&5
22177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178   (exit $ac_status); } && {
22179          test -z "$ac_c_werror_flag" ||
22180          test ! -s conftest.err
22181        } && test -s conftest.$ac_objext; then
22182   ac_cv_c_bigendian=yes
22183 else
22184   echo "$as_me: failed program was:" >&5
22185 sed 's/^/| /' conftest.$ac_ext >&5
22186
22187         ac_cv_c_bigendian=no
22188 fi
22189
22190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22191 else
22192   echo "$as_me: failed program was:" >&5
22193 sed 's/^/| /' conftest.$ac_ext >&5
22194
22195         # It does not; compile a test program.
22196 if test "$cross_compiling" = yes; then
22197   # try to guess the endianness by grepping values into an object file
22198   ac_cv_c_bigendian=unknown
22199   cat >conftest.$ac_ext <<_ACEOF
22200 /* confdefs.h.  */
22201 _ACEOF
22202 cat confdefs.h >>conftest.$ac_ext
22203 cat >>conftest.$ac_ext <<_ACEOF
22204 /* end confdefs.h.  */
22205 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22206 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22207 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22208 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22209 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22210 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22211 int
22212 main ()
22213 {
22214  _ascii (); _ebcdic ();
22215   ;
22216   return 0;
22217 }
22218 _ACEOF
22219 rm -f conftest.$ac_objext
22220 if { (ac_try="$ac_compile"
22221 case "(($ac_try" in
22222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22223   *) ac_try_echo=$ac_try;;
22224 esac
22225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22226   (eval "$ac_compile") 2>conftest.er1
22227   ac_status=$?
22228   grep -v '^ *+' conftest.er1 >conftest.err
22229   rm -f conftest.er1
22230   cat conftest.err >&5
22231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232   (exit $ac_status); } && {
22233          test -z "$ac_c_werror_flag" ||
22234          test ! -s conftest.err
22235        } && test -s conftest.$ac_objext; then
22236   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22237   ac_cv_c_bigendian=yes
22238 fi
22239 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22240   if test "$ac_cv_c_bigendian" = unknown; then
22241     ac_cv_c_bigendian=no
22242   else
22243     # finding both strings is unlikely to happen, but who knows?
22244     ac_cv_c_bigendian=unknown
22245   fi
22246 fi
22247 else
22248   echo "$as_me: failed program was:" >&5
22249 sed 's/^/| /' conftest.$ac_ext >&5
22250
22251
22252 fi
22253
22254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22255 else
22256   cat >conftest.$ac_ext <<_ACEOF
22257 /* confdefs.h.  */
22258 _ACEOF
22259 cat confdefs.h >>conftest.$ac_ext
22260 cat >>conftest.$ac_ext <<_ACEOF
22261 /* end confdefs.h.  */
22262 $ac_includes_default
22263 int
22264 main ()
22265 {
22266
22267   /* Are we little or big endian?  From Harbison&Steele.  */
22268   union
22269   {
22270     long int l;
22271     char c[sizeof (long int)];
22272   } u;
22273   u.l = 1;
22274   return u.c[sizeof (long int) - 1] == 1;
22275
22276   ;
22277   return 0;
22278 }
22279 _ACEOF
22280 rm -f conftest$ac_exeext
22281 if { (ac_try="$ac_link"
22282 case "(($ac_try" in
22283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22284   *) ac_try_echo=$ac_try;;
22285 esac
22286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22287   (eval "$ac_link") 2>&5
22288   ac_status=$?
22289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22291   { (case "(($ac_try" in
22292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22293   *) ac_try_echo=$ac_try;;
22294 esac
22295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22296   (eval "$ac_try") 2>&5
22297   ac_status=$?
22298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299   (exit $ac_status); }; }; then
22300   ac_cv_c_bigendian=no
22301 else
22302   echo "$as_me: program exited with status $ac_status" >&5
22303 echo "$as_me: failed program was:" >&5
22304 sed 's/^/| /' conftest.$ac_ext >&5
22305
22306 ( exit $ac_status )
22307 ac_cv_c_bigendian=yes
22308 fi
22309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22310 fi
22311
22312
22313 fi
22314
22315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22316 fi
22317 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22318 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22319 case $ac_cv_c_bigendian in
22320   yes)
22321     endian=1 ;;
22322   no)
22323     endian=0 ;;
22324   *)
22325     { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
22326 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
22327    { (exit 1); exit 1; }; } ;;
22328 esac
22329
22330
22331 cat >>confdefs.h <<_ACEOF
22332 #define GRAS_BIGENDIAN $endian
22333 _ACEOF
22334
22335
22336 { echo "$as_me:$LINENO: checking size of char" >&5
22337 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22338     if test "${ac_cv_sizeof_char+set}" = set; then
22339   echo $ECHO_N "(cached) $ECHO_C" >&6
22340 else
22341   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22342    cat >conftest.$ac_ext <<_ACEOF
22343 /* confdefs.h.  */
22344 _ACEOF
22345 cat confdefs.h >>conftest.$ac_ext
22346 cat >>conftest.$ac_ext <<_ACEOF
22347 /* end confdefs.h.  */
22348 #include "confdefs.h"
22349    #include <sys/types.h>
22350
22351
22352 int
22353 main ()
22354 {
22355 switch (0) case 0: case (sizeof (char) == $ac_size):;
22356   ;
22357   return 0;
22358 }
22359 _ACEOF
22360 rm -f conftest.$ac_objext
22361 if { (ac_try="$ac_compile"
22362 case "(($ac_try" in
22363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22364   *) ac_try_echo=$ac_try;;
22365 esac
22366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22367   (eval "$ac_compile") 2>conftest.er1
22368   ac_status=$?
22369   grep -v '^ *+' conftest.er1 >conftest.err
22370   rm -f conftest.er1
22371   cat conftest.err >&5
22372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373   (exit $ac_status); } && {
22374          test -z "$ac_c_werror_flag" ||
22375          test ! -s conftest.err
22376        } && test -s conftest.$ac_objext; then
22377   ac_cv_sizeof_char=$ac_size
22378 else
22379   echo "$as_me: failed program was:" >&5
22380 sed 's/^/| /' conftest.$ac_ext >&5
22381
22382
22383 fi
22384
22385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22386    if test x$ac_cv_sizeof_char != x ; then break; fi
22387   done
22388
22389 fi
22390
22391
22392 unspecif=$ac_cv_sizeof_char
22393 if test x$unspecif = x ; then
22394   { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
22395 echo "$as_me: error: cannot determine a size for char" >&2;}
22396    { (exit 1); exit 1; }; }
22397 fi
22398
22399     if test "${ac_cv_sizeof_signed_char+set}" = set; then
22400   echo $ECHO_N "(cached) $ECHO_C" >&6
22401 else
22402   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22403    cat >conftest.$ac_ext <<_ACEOF
22404 /* confdefs.h.  */
22405 _ACEOF
22406 cat confdefs.h >>conftest.$ac_ext
22407 cat >>conftest.$ac_ext <<_ACEOF
22408 /* end confdefs.h.  */
22409 #include "confdefs.h"
22410    #include <sys/types.h>
22411
22412
22413 int
22414 main ()
22415 {
22416 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
22417   ;
22418   return 0;
22419 }
22420 _ACEOF
22421 rm -f conftest.$ac_objext
22422 if { (ac_try="$ac_compile"
22423 case "(($ac_try" in
22424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22425   *) ac_try_echo=$ac_try;;
22426 esac
22427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22428   (eval "$ac_compile") 2>conftest.er1
22429   ac_status=$?
22430   grep -v '^ *+' conftest.er1 >conftest.err
22431   rm -f conftest.er1
22432   cat conftest.err >&5
22433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434   (exit $ac_status); } && {
22435          test -z "$ac_c_werror_flag" ||
22436          test ! -s conftest.err
22437        } && test -s conftest.$ac_objext; then
22438   ac_cv_sizeof_signed_char=$ac_size
22439 else
22440   echo "$as_me: failed program was:" >&5
22441 sed 's/^/| /' conftest.$ac_ext >&5
22442
22443
22444 fi
22445
22446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22447    if test x$ac_cv_sizeof_signed_char != x ; then break; fi
22448   done
22449
22450 fi
22451
22452
22453 signed=$ac_cv_sizeof_signed_char
22454 if test x$signed = x ; then
22455   { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
22456 echo "$as_me: error: cannot determine a size for signed char" >&2;}
22457    { (exit 1); exit 1; }; }
22458 fi
22459 if test x$unspecif != x$signed ; then
22460   { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
22461 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
22462    { (exit 1); exit 1; }; }
22463 fi
22464
22465     if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
22466   echo $ECHO_N "(cached) $ECHO_C" >&6
22467 else
22468   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22469    cat >conftest.$ac_ext <<_ACEOF
22470 /* confdefs.h.  */
22471 _ACEOF
22472 cat confdefs.h >>conftest.$ac_ext
22473 cat >>conftest.$ac_ext <<_ACEOF
22474 /* end confdefs.h.  */
22475 #include "confdefs.h"
22476    #include <sys/types.h>
22477
22478
22479 int
22480 main ()
22481 {
22482 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
22483   ;
22484   return 0;
22485 }
22486 _ACEOF
22487 rm -f conftest.$ac_objext
22488 if { (ac_try="$ac_compile"
22489 case "(($ac_try" in
22490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22491   *) ac_try_echo=$ac_try;;
22492 esac
22493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22494   (eval "$ac_compile") 2>conftest.er1
22495   ac_status=$?
22496   grep -v '^ *+' conftest.er1 >conftest.err
22497   rm -f conftest.er1
22498   cat conftest.err >&5
22499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500   (exit $ac_status); } && {
22501          test -z "$ac_c_werror_flag" ||
22502          test ! -s conftest.err
22503        } && test -s conftest.$ac_objext; then
22504   ac_cv_sizeof_unsigned_char=$ac_size
22505 else
22506   echo "$as_me: failed program was:" >&5
22507 sed 's/^/| /' conftest.$ac_ext >&5
22508
22509
22510 fi
22511
22512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22513    if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
22514   done
22515
22516 fi
22517
22518
22519 unsigned=$ac_cv_sizeof_unsigned_char
22520 if test x$unsigned = x ; then
22521   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
22522 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
22523    { (exit 1); exit 1; }; }
22524 fi
22525 if test x$unsigned != x$signed ; then
22526   { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
22527 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
22528    { (exit 1); exit 1; }; }
22529 fi
22530
22531 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
22532 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
22533                   { echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
22534 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6; }
22535
22536  if test "${ac_cv_struct_boundary_char+set}" = set; then
22537   echo $ECHO_N "(cached) $ECHO_C" >&6
22538 else
22539   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22540    cat >conftest.$ac_ext <<_ACEOF
22541 /* confdefs.h.  */
22542 _ACEOF
22543 cat confdefs.h >>conftest.$ac_ext
22544 cat >>conftest.$ac_ext <<_ACEOF
22545 /* end confdefs.h.  */
22546 #include "confdefs.h"
22547      #include <sys/types.h>
22548      struct s { char c; char i; };
22549
22550 int
22551 main ()
22552 {
22553 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
22554   ;
22555   return 0;
22556 }
22557 _ACEOF
22558 rm -f conftest.$ac_objext
22559 if { (ac_try="$ac_compile"
22560 case "(($ac_try" in
22561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22562   *) ac_try_echo=$ac_try;;
22563 esac
22564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22565   (eval "$ac_compile") 2>conftest.er1
22566   ac_status=$?
22567   grep -v '^ *+' conftest.er1 >conftest.err
22568   rm -f conftest.er1
22569   cat conftest.err >&5
22570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571   (exit $ac_status); } && {
22572          test -z "$ac_c_werror_flag" ||
22573          test ! -s conftest.err
22574        } && test -s conftest.$ac_objext; then
22575   ac_cv_struct_boundary_char=$ac_size
22576 else
22577   echo "$as_me: failed program was:" >&5
22578 sed 's/^/| /' conftest.$ac_ext >&5
22579
22580
22581 fi
22582
22583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22584    if test x$ac_cv_struct_boundary_char != x ; then break; fi
22585   done
22586
22587 fi
22588
22589  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
22590 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6; }
22591  if test x$ac_cv_struct_boundary_char = x ; then
22592    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
22593 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
22594    { (exit 1); exit 1; }; }
22595  fi
22596
22597 { echo "$as_me:$LINENO: checking size of short int" >&5
22598 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
22599     if test "${ac_cv_sizeof_short_int+set}" = set; then
22600   echo $ECHO_N "(cached) $ECHO_C" >&6
22601 else
22602   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22603    cat >conftest.$ac_ext <<_ACEOF
22604 /* confdefs.h.  */
22605 _ACEOF
22606 cat confdefs.h >>conftest.$ac_ext
22607 cat >>conftest.$ac_ext <<_ACEOF
22608 /* end confdefs.h.  */
22609 #include "confdefs.h"
22610    #include <sys/types.h>
22611
22612
22613 int
22614 main ()
22615 {
22616 switch (0) case 0: case (sizeof (short int) == $ac_size):;
22617   ;
22618   return 0;
22619 }
22620 _ACEOF
22621 rm -f conftest.$ac_objext
22622 if { (ac_try="$ac_compile"
22623 case "(($ac_try" in
22624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22625   *) ac_try_echo=$ac_try;;
22626 esac
22627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22628   (eval "$ac_compile") 2>conftest.er1
22629   ac_status=$?
22630   grep -v '^ *+' conftest.er1 >conftest.err
22631   rm -f conftest.er1
22632   cat conftest.err >&5
22633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634   (exit $ac_status); } && {
22635          test -z "$ac_c_werror_flag" ||
22636          test ! -s conftest.err
22637        } && test -s conftest.$ac_objext; then
22638   ac_cv_sizeof_short_int=$ac_size
22639 else
22640   echo "$as_me: failed program was:" >&5
22641 sed 's/^/| /' conftest.$ac_ext >&5
22642
22643
22644 fi
22645
22646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22647    if test x$ac_cv_sizeof_short_int != x ; then break; fi
22648   done
22649
22650 fi
22651
22652
22653 unspecif=$ac_cv_sizeof_short_int
22654 if test x$unspecif = x ; then
22655   { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
22656 echo "$as_me: error: cannot determine a size for short int" >&2;}
22657    { (exit 1); exit 1; }; }
22658 fi
22659
22660     if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
22661   echo $ECHO_N "(cached) $ECHO_C" >&6
22662 else
22663   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22664    cat >conftest.$ac_ext <<_ACEOF
22665 /* confdefs.h.  */
22666 _ACEOF
22667 cat confdefs.h >>conftest.$ac_ext
22668 cat >>conftest.$ac_ext <<_ACEOF
22669 /* end confdefs.h.  */
22670 #include "confdefs.h"
22671    #include <sys/types.h>
22672
22673
22674 int
22675 main ()
22676 {
22677 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
22678   ;
22679   return 0;
22680 }
22681 _ACEOF
22682 rm -f conftest.$ac_objext
22683 if { (ac_try="$ac_compile"
22684 case "(($ac_try" in
22685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22686   *) ac_try_echo=$ac_try;;
22687 esac
22688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22689   (eval "$ac_compile") 2>conftest.er1
22690   ac_status=$?
22691   grep -v '^ *+' conftest.er1 >conftest.err
22692   rm -f conftest.er1
22693   cat conftest.err >&5
22694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695   (exit $ac_status); } && {
22696          test -z "$ac_c_werror_flag" ||
22697          test ! -s conftest.err
22698        } && test -s conftest.$ac_objext; then
22699   ac_cv_sizeof_signed_short_int=$ac_size
22700 else
22701   echo "$as_me: failed program was:" >&5
22702 sed 's/^/| /' conftest.$ac_ext >&5
22703
22704
22705 fi
22706
22707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22708    if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
22709   done
22710
22711 fi
22712
22713
22714 signed=$ac_cv_sizeof_signed_short_int
22715 if test x$signed = x ; then
22716   { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
22717 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
22718    { (exit 1); exit 1; }; }
22719 fi
22720 if test x$unspecif != x$signed ; then
22721   { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
22722 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
22723    { (exit 1); exit 1; }; }
22724 fi
22725
22726     if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
22727   echo $ECHO_N "(cached) $ECHO_C" >&6
22728 else
22729   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22730    cat >conftest.$ac_ext <<_ACEOF
22731 /* confdefs.h.  */
22732 _ACEOF
22733 cat confdefs.h >>conftest.$ac_ext
22734 cat >>conftest.$ac_ext <<_ACEOF
22735 /* end confdefs.h.  */
22736 #include "confdefs.h"
22737    #include <sys/types.h>
22738
22739
22740 int
22741 main ()
22742 {
22743 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
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_sizeof_unsigned_short_int=$ac_size
22766 else
22767   echo "$as_me: failed program was:" >&5
22768 sed 's/^/| /' conftest.$ac_ext >&5
22769
22770
22771 fi
22772
22773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22774    if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
22775   done
22776
22777 fi
22778
22779
22780 unsigned=$ac_cv_sizeof_unsigned_short_int
22781 if test x$unsigned = x ; then
22782   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
22783 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
22784    { (exit 1); exit 1; }; }
22785 fi
22786 if test x$unsigned != x$signed ; then
22787   { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
22788 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
22789    { (exit 1); exit 1; }; }
22790 fi
22791
22792 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
22793 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
22794              { echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
22795 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6; }
22796
22797  if test "${ac_cv_struct_boundary_short_int+set}" = set; then
22798   echo $ECHO_N "(cached) $ECHO_C" >&6
22799 else
22800   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22801    cat >conftest.$ac_ext <<_ACEOF
22802 /* confdefs.h.  */
22803 _ACEOF
22804 cat confdefs.h >>conftest.$ac_ext
22805 cat >>conftest.$ac_ext <<_ACEOF
22806 /* end confdefs.h.  */
22807 #include "confdefs.h"
22808      #include <sys/types.h>
22809      struct s { char c; short int i; };
22810
22811 int
22812 main ()
22813 {
22814 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
22815   ;
22816   return 0;
22817 }
22818 _ACEOF
22819 rm -f conftest.$ac_objext
22820 if { (ac_try="$ac_compile"
22821 case "(($ac_try" in
22822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22823   *) ac_try_echo=$ac_try;;
22824 esac
22825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22826   (eval "$ac_compile") 2>conftest.er1
22827   ac_status=$?
22828   grep -v '^ *+' conftest.er1 >conftest.err
22829   rm -f conftest.er1
22830   cat conftest.err >&5
22831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832   (exit $ac_status); } && {
22833          test -z "$ac_c_werror_flag" ||
22834          test ! -s conftest.err
22835        } && test -s conftest.$ac_objext; then
22836   ac_cv_struct_boundary_short_int=$ac_size
22837 else
22838   echo "$as_me: failed program was:" >&5
22839 sed 's/^/| /' conftest.$ac_ext >&5
22840
22841
22842 fi
22843
22844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22845    if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
22846   done
22847
22848 fi
22849
22850  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
22851 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6; }
22852  if test x$ac_cv_struct_boundary_short_int = x ; then
22853    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
22854 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
22855    { (exit 1); exit 1; }; }
22856  fi
22857
22858 { echo "$as_me:$LINENO: checking size of int" >&5
22859 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22860     if test "${ac_cv_sizeof_int+set}" = set; then
22861   echo $ECHO_N "(cached) $ECHO_C" >&6
22862 else
22863   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22864    cat >conftest.$ac_ext <<_ACEOF
22865 /* confdefs.h.  */
22866 _ACEOF
22867 cat confdefs.h >>conftest.$ac_ext
22868 cat >>conftest.$ac_ext <<_ACEOF
22869 /* end confdefs.h.  */
22870 #include "confdefs.h"
22871    #include <sys/types.h>
22872
22873
22874 int
22875 main ()
22876 {
22877 switch (0) case 0: case (sizeof (int) == $ac_size):;
22878   ;
22879   return 0;
22880 }
22881 _ACEOF
22882 rm -f conftest.$ac_objext
22883 if { (ac_try="$ac_compile"
22884 case "(($ac_try" in
22885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22886   *) ac_try_echo=$ac_try;;
22887 esac
22888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22889   (eval "$ac_compile") 2>conftest.er1
22890   ac_status=$?
22891   grep -v '^ *+' conftest.er1 >conftest.err
22892   rm -f conftest.er1
22893   cat conftest.err >&5
22894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895   (exit $ac_status); } && {
22896          test -z "$ac_c_werror_flag" ||
22897          test ! -s conftest.err
22898        } && test -s conftest.$ac_objext; then
22899   ac_cv_sizeof_int=$ac_size
22900 else
22901   echo "$as_me: failed program was:" >&5
22902 sed 's/^/| /' conftest.$ac_ext >&5
22903
22904
22905 fi
22906
22907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22908    if test x$ac_cv_sizeof_int != x ; then break; fi
22909   done
22910
22911 fi
22912
22913
22914 unspecif=$ac_cv_sizeof_int
22915 if test x$unspecif = x ; then
22916   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
22917 echo "$as_me: error: cannot determine a size for int" >&2;}
22918    { (exit 1); exit 1; }; }
22919 fi
22920
22921     if test "${ac_cv_sizeof_signed_int+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 (signed int) == $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_signed_int=$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_signed_int != x ; then break; fi
22970   done
22971
22972 fi
22973
22974
22975 signed=$ac_cv_sizeof_signed_int
22976 if test x$signed = x ; then
22977   { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
22978 echo "$as_me: error: cannot determine a size for signed int" >&2;}
22979    { (exit 1); exit 1; }; }
22980 fi
22981 if test x$unspecif != x$signed ; then
22982   { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
22983 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
22984    { (exit 1); exit 1; }; }
22985 fi
22986
22987     if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
22988   echo $ECHO_N "(cached) $ECHO_C" >&6
22989 else
22990   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22991    cat >conftest.$ac_ext <<_ACEOF
22992 /* confdefs.h.  */
22993 _ACEOF
22994 cat confdefs.h >>conftest.$ac_ext
22995 cat >>conftest.$ac_ext <<_ACEOF
22996 /* end confdefs.h.  */
22997 #include "confdefs.h"
22998    #include <sys/types.h>
22999
23000
23001 int
23002 main ()
23003 {
23004 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
23005   ;
23006   return 0;
23007 }
23008 _ACEOF
23009 rm -f conftest.$ac_objext
23010 if { (ac_try="$ac_compile"
23011 case "(($ac_try" in
23012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23013   *) ac_try_echo=$ac_try;;
23014 esac
23015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23016   (eval "$ac_compile") 2>conftest.er1
23017   ac_status=$?
23018   grep -v '^ *+' conftest.er1 >conftest.err
23019   rm -f conftest.er1
23020   cat conftest.err >&5
23021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022   (exit $ac_status); } && {
23023          test -z "$ac_c_werror_flag" ||
23024          test ! -s conftest.err
23025        } && test -s conftest.$ac_objext; then
23026   ac_cv_sizeof_unsigned_int=$ac_size
23027 else
23028   echo "$as_me: failed program was:" >&5
23029 sed 's/^/| /' conftest.$ac_ext >&5
23030
23031
23032 fi
23033
23034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23035    if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
23036   done
23037
23038 fi
23039
23040
23041 unsigned=$ac_cv_sizeof_unsigned_int
23042 if test x$unsigned = x ; then
23043   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
23044 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
23045    { (exit 1); exit 1; }; }
23046 fi
23047 if test x$unsigned != x$signed ; then
23048   { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
23049 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
23050    { (exit 1); exit 1; }; }
23051 fi
23052
23053 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
23054 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
23055                    { echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
23056 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6; }
23057
23058  if test "${ac_cv_struct_boundary_int+set}" = set; then
23059   echo $ECHO_N "(cached) $ECHO_C" >&6
23060 else
23061   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23062    cat >conftest.$ac_ext <<_ACEOF
23063 /* confdefs.h.  */
23064 _ACEOF
23065 cat confdefs.h >>conftest.$ac_ext
23066 cat >>conftest.$ac_ext <<_ACEOF
23067 /* end confdefs.h.  */
23068 #include "confdefs.h"
23069      #include <sys/types.h>
23070      struct s { char c; int i; };
23071
23072 int
23073 main ()
23074 {
23075 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
23076   ;
23077   return 0;
23078 }
23079 _ACEOF
23080 rm -f conftest.$ac_objext
23081 if { (ac_try="$ac_compile"
23082 case "(($ac_try" in
23083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23084   *) ac_try_echo=$ac_try;;
23085 esac
23086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23087   (eval "$ac_compile") 2>conftest.er1
23088   ac_status=$?
23089   grep -v '^ *+' conftest.er1 >conftest.err
23090   rm -f conftest.er1
23091   cat conftest.err >&5
23092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23093   (exit $ac_status); } && {
23094          test -z "$ac_c_werror_flag" ||
23095          test ! -s conftest.err
23096        } && test -s conftest.$ac_objext; then
23097   ac_cv_struct_boundary_int=$ac_size
23098 else
23099   echo "$as_me: failed program was:" >&5
23100 sed 's/^/| /' conftest.$ac_ext >&5
23101
23102
23103 fi
23104
23105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23106    if test x$ac_cv_struct_boundary_int != x ; then break; fi
23107   done
23108
23109 fi
23110
23111  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
23112 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6; }
23113  if test x$ac_cv_struct_boundary_int = x ; then
23114    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
23115 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
23116    { (exit 1); exit 1; }; }
23117  fi
23118
23119 { echo "$as_me:$LINENO: checking size of long int" >&5
23120 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
23121     if test "${ac_cv_sizeof_long_int+set}" = set; then
23122   echo $ECHO_N "(cached) $ECHO_C" >&6
23123 else
23124   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23125    cat >conftest.$ac_ext <<_ACEOF
23126 /* confdefs.h.  */
23127 _ACEOF
23128 cat confdefs.h >>conftest.$ac_ext
23129 cat >>conftest.$ac_ext <<_ACEOF
23130 /* end confdefs.h.  */
23131 #include "confdefs.h"
23132    #include <sys/types.h>
23133
23134
23135 int
23136 main ()
23137 {
23138 switch (0) case 0: case (sizeof (long int) == $ac_size):;
23139   ;
23140   return 0;
23141 }
23142 _ACEOF
23143 rm -f conftest.$ac_objext
23144 if { (ac_try="$ac_compile"
23145 case "(($ac_try" in
23146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23147   *) ac_try_echo=$ac_try;;
23148 esac
23149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23150   (eval "$ac_compile") 2>conftest.er1
23151   ac_status=$?
23152   grep -v '^ *+' conftest.er1 >conftest.err
23153   rm -f conftest.er1
23154   cat conftest.err >&5
23155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156   (exit $ac_status); } && {
23157          test -z "$ac_c_werror_flag" ||
23158          test ! -s conftest.err
23159        } && test -s conftest.$ac_objext; then
23160   ac_cv_sizeof_long_int=$ac_size
23161 else
23162   echo "$as_me: failed program was:" >&5
23163 sed 's/^/| /' conftest.$ac_ext >&5
23164
23165
23166 fi
23167
23168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23169    if test x$ac_cv_sizeof_long_int != x ; then break; fi
23170   done
23171
23172 fi
23173
23174
23175 unspecif=$ac_cv_sizeof_long_int
23176 if test x$unspecif = x ; then
23177   { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
23178 echo "$as_me: error: cannot determine a size for long int" >&2;}
23179    { (exit 1); exit 1; }; }
23180 fi
23181
23182     if test "${ac_cv_sizeof_signed_long_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 (signed long 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_signed_long_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_signed_long_int != x ; then break; fi
23231   done
23232
23233 fi
23234
23235
23236 signed=$ac_cv_sizeof_signed_long_int
23237 if test x$signed = x ; then
23238   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
23239 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
23240    { (exit 1); exit 1; }; }
23241 fi
23242 if test x$unspecif != x$signed ; then
23243   { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
23244 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
23245    { (exit 1); exit 1; }; }
23246 fi
23247
23248     if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
23249   echo $ECHO_N "(cached) $ECHO_C" >&6
23250 else
23251   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23252    cat >conftest.$ac_ext <<_ACEOF
23253 /* confdefs.h.  */
23254 _ACEOF
23255 cat confdefs.h >>conftest.$ac_ext
23256 cat >>conftest.$ac_ext <<_ACEOF
23257 /* end confdefs.h.  */
23258 #include "confdefs.h"
23259    #include <sys/types.h>
23260
23261
23262 int
23263 main ()
23264 {
23265 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
23266   ;
23267   return 0;
23268 }
23269 _ACEOF
23270 rm -f conftest.$ac_objext
23271 if { (ac_try="$ac_compile"
23272 case "(($ac_try" in
23273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23274   *) ac_try_echo=$ac_try;;
23275 esac
23276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23277   (eval "$ac_compile") 2>conftest.er1
23278   ac_status=$?
23279   grep -v '^ *+' conftest.er1 >conftest.err
23280   rm -f conftest.er1
23281   cat conftest.err >&5
23282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23283   (exit $ac_status); } && {
23284          test -z "$ac_c_werror_flag" ||
23285          test ! -s conftest.err
23286        } && test -s conftest.$ac_objext; then
23287   ac_cv_sizeof_unsigned_long_int=$ac_size
23288 else
23289   echo "$as_me: failed program was:" >&5
23290 sed 's/^/| /' conftest.$ac_ext >&5
23291
23292
23293 fi
23294
23295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23296    if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
23297   done
23298
23299 fi
23300
23301
23302 unsigned=$ac_cv_sizeof_unsigned_long_int
23303 if test x$unsigned = x ; then
23304   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
23305 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
23306    { (exit 1); exit 1; }; }
23307 fi
23308 if test x$unsigned != x$signed ; then
23309   { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
23310 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
23311    { (exit 1); exit 1; }; }
23312 fi
23313
23314 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
23315 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
23316               { echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
23317 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6; }
23318
23319  if test "${ac_cv_struct_boundary_long_int+set}" = set; then
23320   echo $ECHO_N "(cached) $ECHO_C" >&6
23321 else
23322   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23323    cat >conftest.$ac_ext <<_ACEOF
23324 /* confdefs.h.  */
23325 _ACEOF
23326 cat confdefs.h >>conftest.$ac_ext
23327 cat >>conftest.$ac_ext <<_ACEOF
23328 /* end confdefs.h.  */
23329 #include "confdefs.h"
23330      #include <sys/types.h>
23331      struct s { char c; long int i; };
23332
23333 int
23334 main ()
23335 {
23336 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
23337   ;
23338   return 0;
23339 }
23340 _ACEOF
23341 rm -f conftest.$ac_objext
23342 if { (ac_try="$ac_compile"
23343 case "(($ac_try" in
23344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23345   *) ac_try_echo=$ac_try;;
23346 esac
23347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23348   (eval "$ac_compile") 2>conftest.er1
23349   ac_status=$?
23350   grep -v '^ *+' conftest.er1 >conftest.err
23351   rm -f conftest.er1
23352   cat conftest.err >&5
23353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23354   (exit $ac_status); } && {
23355          test -z "$ac_c_werror_flag" ||
23356          test ! -s conftest.err
23357        } && test -s conftest.$ac_objext; then
23358   ac_cv_struct_boundary_long_int=$ac_size
23359 else
23360   echo "$as_me: failed program was:" >&5
23361 sed 's/^/| /' conftest.$ac_ext >&5
23362
23363
23364 fi
23365
23366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23367    if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
23368   done
23369
23370 fi
23371
23372  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
23373 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6; }
23374  if test x$ac_cv_struct_boundary_long_int = x ; then
23375    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
23376 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
23377    { (exit 1); exit 1; }; }
23378  fi
23379
23380 { echo "$as_me:$LINENO: checking size of long long int" >&5
23381 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
23382     if test "${ac_cv_sizeof_long_long_int+set}" = set; then
23383   echo $ECHO_N "(cached) $ECHO_C" >&6
23384 else
23385   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23386    cat >conftest.$ac_ext <<_ACEOF
23387 /* confdefs.h.  */
23388 _ACEOF
23389 cat confdefs.h >>conftest.$ac_ext
23390 cat >>conftest.$ac_ext <<_ACEOF
23391 /* end confdefs.h.  */
23392 #include "confdefs.h"
23393    #include <sys/types.h>
23394
23395
23396 int
23397 main ()
23398 {
23399 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
23400   ;
23401   return 0;
23402 }
23403 _ACEOF
23404 rm -f conftest.$ac_objext
23405 if { (ac_try="$ac_compile"
23406 case "(($ac_try" in
23407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23408   *) ac_try_echo=$ac_try;;
23409 esac
23410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23411   (eval "$ac_compile") 2>conftest.er1
23412   ac_status=$?
23413   grep -v '^ *+' conftest.er1 >conftest.err
23414   rm -f conftest.er1
23415   cat conftest.err >&5
23416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417   (exit $ac_status); } && {
23418          test -z "$ac_c_werror_flag" ||
23419          test ! -s conftest.err
23420        } && test -s conftest.$ac_objext; then
23421   ac_cv_sizeof_long_long_int=$ac_size
23422 else
23423   echo "$as_me: failed program was:" >&5
23424 sed 's/^/| /' conftest.$ac_ext >&5
23425
23426
23427 fi
23428
23429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23430    if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
23431   done
23432
23433 fi
23434
23435
23436 unspecif=$ac_cv_sizeof_long_long_int
23437 if test x$unspecif = x ; then
23438   { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
23439 echo "$as_me: error: cannot determine a size for long long int" >&2;}
23440    { (exit 1); exit 1; }; }
23441 fi
23442
23443     if test "${ac_cv_sizeof_signed_long_long_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 (signed long long 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_signed_long_long_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_signed_long_long_int != x ; then break; fi
23492   done
23493
23494 fi
23495
23496
23497 signed=$ac_cv_sizeof_signed_long_long_int
23498 if test x$signed = x ; then
23499   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
23500 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
23501    { (exit 1); exit 1; }; }
23502 fi
23503 if test x$unspecif != x$signed ; then
23504   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
23505 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
23506    { (exit 1); exit 1; }; }
23507 fi
23508
23509     if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
23510   echo $ECHO_N "(cached) $ECHO_C" >&6
23511 else
23512   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23513    cat >conftest.$ac_ext <<_ACEOF
23514 /* confdefs.h.  */
23515 _ACEOF
23516 cat confdefs.h >>conftest.$ac_ext
23517 cat >>conftest.$ac_ext <<_ACEOF
23518 /* end confdefs.h.  */
23519 #include "confdefs.h"
23520    #include <sys/types.h>
23521
23522
23523 int
23524 main ()
23525 {
23526 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
23527   ;
23528   return 0;
23529 }
23530 _ACEOF
23531 rm -f conftest.$ac_objext
23532 if { (ac_try="$ac_compile"
23533 case "(($ac_try" in
23534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23535   *) ac_try_echo=$ac_try;;
23536 esac
23537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23538   (eval "$ac_compile") 2>conftest.er1
23539   ac_status=$?
23540   grep -v '^ *+' conftest.er1 >conftest.err
23541   rm -f conftest.er1
23542   cat conftest.err >&5
23543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544   (exit $ac_status); } && {
23545          test -z "$ac_c_werror_flag" ||
23546          test ! -s conftest.err
23547        } && test -s conftest.$ac_objext; then
23548   ac_cv_sizeof_unsigned_long_long_int=$ac_size
23549 else
23550   echo "$as_me: failed program was:" >&5
23551 sed 's/^/| /' conftest.$ac_ext >&5
23552
23553
23554 fi
23555
23556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23557    if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
23558   done
23559
23560 fi
23561
23562
23563 unsigned=$ac_cv_sizeof_unsigned_long_long_int
23564 if test x$unsigned = x ; then
23565   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
23566 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
23567    { (exit 1); exit 1; }; }
23568 fi
23569 if test x$unsigned != x$signed ; then
23570   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
23571 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
23572    { (exit 1); exit 1; }; }
23573 fi
23574
23575 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
23576 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
23577          { echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
23578 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6; }
23579
23580  if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
23581   echo $ECHO_N "(cached) $ECHO_C" >&6
23582 else
23583   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23584    cat >conftest.$ac_ext <<_ACEOF
23585 /* confdefs.h.  */
23586 _ACEOF
23587 cat confdefs.h >>conftest.$ac_ext
23588 cat >>conftest.$ac_ext <<_ACEOF
23589 /* end confdefs.h.  */
23590 #include "confdefs.h"
23591      #include <sys/types.h>
23592      struct s { char c; long long int i; };
23593
23594 int
23595 main ()
23596 {
23597 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
23598   ;
23599   return 0;
23600 }
23601 _ACEOF
23602 rm -f conftest.$ac_objext
23603 if { (ac_try="$ac_compile"
23604 case "(($ac_try" in
23605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23606   *) ac_try_echo=$ac_try;;
23607 esac
23608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23609   (eval "$ac_compile") 2>conftest.er1
23610   ac_status=$?
23611   grep -v '^ *+' conftest.er1 >conftest.err
23612   rm -f conftest.er1
23613   cat conftest.err >&5
23614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615   (exit $ac_status); } && {
23616          test -z "$ac_c_werror_flag" ||
23617          test ! -s conftest.err
23618        } && test -s conftest.$ac_objext; then
23619   ac_cv_struct_boundary_long_long_int=$ac_size
23620 else
23621   echo "$as_me: failed program was:" >&5
23622 sed 's/^/| /' conftest.$ac_ext >&5
23623
23624
23625 fi
23626
23627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23628    if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
23629   done
23630
23631 fi
23632
23633  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
23634 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6; }
23635  if test x$ac_cv_struct_boundary_long_long_int = x ; then
23636    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
23637 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
23638    { (exit 1); exit 1; }; }
23639  fi
23640
23641
23642     { echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
23643 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6; }
23644
23645  if test "${ac_cv_struct_boundary_float+set}" = set; then
23646   echo $ECHO_N "(cached) $ECHO_C" >&6
23647 else
23648   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23649    cat >conftest.$ac_ext <<_ACEOF
23650 /* confdefs.h.  */
23651 _ACEOF
23652 cat confdefs.h >>conftest.$ac_ext
23653 cat >>conftest.$ac_ext <<_ACEOF
23654 /* end confdefs.h.  */
23655 #include "confdefs.h"
23656      #include <sys/types.h>
23657      struct s { char c; float i; };
23658
23659 int
23660 main ()
23661 {
23662 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
23663   ;
23664   return 0;
23665 }
23666 _ACEOF
23667 rm -f conftest.$ac_objext
23668 if { (ac_try="$ac_compile"
23669 case "(($ac_try" in
23670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23671   *) ac_try_echo=$ac_try;;
23672 esac
23673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23674   (eval "$ac_compile") 2>conftest.er1
23675   ac_status=$?
23676   grep -v '^ *+' conftest.er1 >conftest.err
23677   rm -f conftest.er1
23678   cat conftest.err >&5
23679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680   (exit $ac_status); } && {
23681          test -z "$ac_c_werror_flag" ||
23682          test ! -s conftest.err
23683        } && test -s conftest.$ac_objext; then
23684   ac_cv_struct_boundary_float=$ac_size
23685 else
23686   echo "$as_me: failed program was:" >&5
23687 sed 's/^/| /' conftest.$ac_ext >&5
23688
23689
23690 fi
23691
23692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23693    if test x$ac_cv_struct_boundary_float != x ; then break; fi
23694   done
23695
23696 fi
23697
23698  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
23699 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6; }
23700  if test x$ac_cv_struct_boundary_float = x ; then
23701    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
23702 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
23703    { (exit 1); exit 1; }; }
23704  fi
23705                { echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
23706 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6; }
23707
23708  if test "${ac_cv_struct_boundary_double+set}" = set; then
23709   echo $ECHO_N "(cached) $ECHO_C" >&6
23710 else
23711   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23712    cat >conftest.$ac_ext <<_ACEOF
23713 /* confdefs.h.  */
23714 _ACEOF
23715 cat confdefs.h >>conftest.$ac_ext
23716 cat >>conftest.$ac_ext <<_ACEOF
23717 /* end confdefs.h.  */
23718 #include "confdefs.h"
23719      #include <sys/types.h>
23720      struct s { char c; double i; };
23721
23722 int
23723 main ()
23724 {
23725 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
23726   ;
23727   return 0;
23728 }
23729 _ACEOF
23730 rm -f conftest.$ac_objext
23731 if { (ac_try="$ac_compile"
23732 case "(($ac_try" in
23733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23734   *) ac_try_echo=$ac_try;;
23735 esac
23736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23737   (eval "$ac_compile") 2>conftest.er1
23738   ac_status=$?
23739   grep -v '^ *+' conftest.er1 >conftest.err
23740   rm -f conftest.er1
23741   cat conftest.err >&5
23742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743   (exit $ac_status); } && {
23744          test -z "$ac_c_werror_flag" ||
23745          test ! -s conftest.err
23746        } && test -s conftest.$ac_objext; then
23747   ac_cv_struct_boundary_double=$ac_size
23748 else
23749   echo "$as_me: failed program was:" >&5
23750 sed 's/^/| /' conftest.$ac_ext >&5
23751
23752
23753 fi
23754
23755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23756    if test x$ac_cv_struct_boundary_double != x ; then break; fi
23757   done
23758
23759 fi
23760
23761  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
23762 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6; }
23763  if test x$ac_cv_struct_boundary_double = x ; then
23764    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
23765 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
23766    { (exit 1); exit 1; }; }
23767  fi
23768
23769
23770 { echo "$as_me:$LINENO: checking size of void *" >&5
23771 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
23772     if test "${ac_cv_sizeof_void_p+set}" = set; then
23773   echo $ECHO_N "(cached) $ECHO_C" >&6
23774 else
23775   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23776    cat >conftest.$ac_ext <<_ACEOF
23777 /* confdefs.h.  */
23778 _ACEOF
23779 cat confdefs.h >>conftest.$ac_ext
23780 cat >>conftest.$ac_ext <<_ACEOF
23781 /* end confdefs.h.  */
23782 #include "confdefs.h"
23783    #include <sys/types.h>
23784
23785
23786 int
23787 main ()
23788 {
23789 switch (0) case 0: case (sizeof (void *) == $ac_size):;
23790   ;
23791   return 0;
23792 }
23793 _ACEOF
23794 rm -f conftest.$ac_objext
23795 if { (ac_try="$ac_compile"
23796 case "(($ac_try" in
23797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23798   *) ac_try_echo=$ac_try;;
23799 esac
23800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23801   (eval "$ac_compile") 2>conftest.er1
23802   ac_status=$?
23803   grep -v '^ *+' conftest.er1 >conftest.err
23804   rm -f conftest.er1
23805   cat conftest.err >&5
23806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807   (exit $ac_status); } && {
23808          test -z "$ac_c_werror_flag" ||
23809          test ! -s conftest.err
23810        } && test -s conftest.$ac_objext; then
23811   ac_cv_sizeof_void_p=$ac_size
23812 else
23813   echo "$as_me: failed program was:" >&5
23814 sed 's/^/| /' conftest.$ac_ext >&5
23815
23816
23817 fi
23818
23819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23820    if test x$ac_cv_sizeof_void_p != x ; then break; fi
23821   done
23822
23823 fi
23824
23825
23826 if test x$ac_cv_sizeof_void_p = x ; then
23827   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
23828 echo "$as_me: error: cannot determine a size for void *" >&2;}
23829    { (exit 1); exit 1; }; }
23830 fi
23831 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23832 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
23833                  { echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
23834 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6; }
23835
23836  if test "${ac_cv_struct_boundary_void_p+set}" = set; then
23837   echo $ECHO_N "(cached) $ECHO_C" >&6
23838 else
23839   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23840    cat >conftest.$ac_ext <<_ACEOF
23841 /* confdefs.h.  */
23842 _ACEOF
23843 cat confdefs.h >>conftest.$ac_ext
23844 cat >>conftest.$ac_ext <<_ACEOF
23845 /* end confdefs.h.  */
23846 #include "confdefs.h"
23847      #include <sys/types.h>
23848      struct s { char c; void * i; };
23849
23850 int
23851 main ()
23852 {
23853 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
23854   ;
23855   return 0;
23856 }
23857 _ACEOF
23858 rm -f conftest.$ac_objext
23859 if { (ac_try="$ac_compile"
23860 case "(($ac_try" in
23861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23862   *) ac_try_echo=$ac_try;;
23863 esac
23864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23865   (eval "$ac_compile") 2>conftest.er1
23866   ac_status=$?
23867   grep -v '^ *+' conftest.er1 >conftest.err
23868   rm -f conftest.er1
23869   cat conftest.err >&5
23870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871   (exit $ac_status); } && {
23872          test -z "$ac_c_werror_flag" ||
23873          test ! -s conftest.err
23874        } && test -s conftest.$ac_objext; then
23875   ac_cv_struct_boundary_void_p=$ac_size
23876 else
23877   echo "$as_me: failed program was:" >&5
23878 sed 's/^/| /' conftest.$ac_ext >&5
23879
23880
23881 fi
23882
23883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23884    if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
23885   done
23886
23887 fi
23888
23889  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
23890 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6; }
23891  if test x$ac_cv_struct_boundary_void_p = x ; then
23892    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
23893 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
23894    { (exit 1); exit 1; }; }
23895  fi
23896
23897 { echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
23898 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6; }
23899     if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
23900   echo $ECHO_N "(cached) $ECHO_C" >&6
23901 else
23902   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23903    cat >conftest.$ac_ext <<_ACEOF
23904 /* confdefs.h.  */
23905 _ACEOF
23906 cat confdefs.h >>conftest.$ac_ext
23907 cat >>conftest.$ac_ext <<_ACEOF
23908 /* end confdefs.h.  */
23909 #include "confdefs.h"
23910    #include <sys/types.h>
23911
23912
23913 int
23914 main ()
23915 {
23916 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
23917   ;
23918   return 0;
23919 }
23920 _ACEOF
23921 rm -f conftest.$ac_objext
23922 if { (ac_try="$ac_compile"
23923 case "(($ac_try" in
23924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23925   *) ac_try_echo=$ac_try;;
23926 esac
23927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23928   (eval "$ac_compile") 2>conftest.er1
23929   ac_status=$?
23930   grep -v '^ *+' conftest.er1 >conftest.err
23931   rm -f conftest.er1
23932   cat conftest.err >&5
23933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23934   (exit $ac_status); } && {
23935          test -z "$ac_c_werror_flag" ||
23936          test ! -s conftest.err
23937        } && test -s conftest.$ac_objext; then
23938   ac_cv_sizeof_void_LpR_LvoidR=$ac_size
23939 else
23940   echo "$as_me: failed program was:" >&5
23941 sed 's/^/| /' conftest.$ac_ext >&5
23942
23943
23944 fi
23945
23946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23947    if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
23948   done
23949
23950 fi
23951
23952
23953 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
23954   { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
23955 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
23956    { (exit 1); exit 1; }; }
23957 fi
23958 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
23959 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6; }
23960
23961
23962
23963 { echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
23964 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6; }
23965 if test x$endian = x1 ; then
23966   trace_endian=B
23967 else
23968   trace_endian=l
23969 fi
23970 gras_arch=unknown
23971 trace="$trace_endian"
23972
23973 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
23974
23975 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
23976 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
23977 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
23978 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
23979
23980 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
23981 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
23982
23983 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
23984
23985 # sizeof float/double are not tested since IEEE 754 is assumed.
23986 # Check README.IEEE for rational.
23987
23988 # The numbers after the _ in the arch name are the maximal packing boundary.
23989 # big32_2   means that all data are aligned on a 2 bytes boundary.              (ARM)
23990 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
23991 case $trace in
23992   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;;
23993   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;;
23994   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;;
23995   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;;
23996
23997   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;;
23998
23999   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;;
24000   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;;
24001   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;;
24002   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;;
24003
24004   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;;
24005   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;;
24006 esac
24007 if test x$gras_arch = xunknown ; then
24008   { echo "$as_me:$LINENO: result: damnit ($trace)" >&5
24009 echo "${ECHO_T}damnit ($trace)" >&6; }
24010   { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
24011 Please report this architecture trace ($trace) and what it corresponds to." >&5
24012 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
24013 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
24014    { (exit 1); exit 1; }; }
24015 fi
24016 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
24017
24018 cat >>confdefs.h <<_ACEOF
24019 #define GRAS_THISARCH $gras_arch
24020 _ACEOF
24021
24022 { echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
24023 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6; }
24024
24025
24026
24027 if test $gras_size=32; then
24028   GRAS_ARCH_32_BITS_TRUE=
24029   GRAS_ARCH_32_BITS_FALSE='#'
24030 else
24031   GRAS_ARCH_32_BITS_TRUE='#'
24032   GRAS_ARCH_32_BITS_FALSE=
24033 fi
24034
24035
24036 { echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
24037 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6; }
24038 ac_cv_sizeof_max=0
24039 for s in $ac_cv_sizeof_char \
24040          $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
24041          $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
24042          4 8; do
24043
24044   if test $ac_cv_sizeof_max -lt $s ; then
24045     ac_cv_sizeof_max=$s
24046   fi
24047 done
24048 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
24049 echo "${ECHO_T}$ac_cv_sizeof_max" >&6; }
24050
24051 cat >>confdefs.h <<_ACEOF
24052 #define SIZEOF_MAX $ac_cv_sizeof_max
24053 _ACEOF
24054
24055
24056
24057 # Check architecture signature end
24058   { echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
24059 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6; }
24060    cat >conftest.$ac_ext <<_ACEOF
24061 /* confdefs.h.  */
24062 _ACEOF
24063 cat confdefs.h >>conftest.$ac_ext
24064 cat >>conftest.$ac_ext <<_ACEOF
24065 /* end confdefs.h.  */
24066 #include "confdefs.h"
24067         #include <sys/types.h>
24068         #include <stddef.h> /* offsetof() */
24069         struct s {char c; double d;};
24070
24071 int
24072 main ()
24073 {
24074 switch (0)
24075         case 0:
24076         case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
24077
24078   ;
24079   return 0;
24080 }
24081 _ACEOF
24082 rm -f conftest.$ac_objext
24083 if { (ac_try="$ac_compile"
24084 case "(($ac_try" in
24085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24086   *) ac_try_echo=$ac_try;;
24087 esac
24088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24089   (eval "$ac_compile") 2>conftest.er1
24090   ac_status=$?
24091   grep -v '^ *+' conftest.er1 >conftest.err
24092   rm -f conftest.er1
24093   cat conftest.err >&5
24094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24095   (exit $ac_status); } && {
24096          test -z "$ac_c_werror_flag" ||
24097          test ! -s conftest.err
24098        } && test -s conftest.$ac_objext; then
24099   gras_struct_packed=yes
24100 else
24101   echo "$as_me: failed program was:" >&5
24102 sed 's/^/| /' conftest.$ac_ext >&5
24103
24104         gras_struct_packed=no
24105 fi
24106
24107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24108
24109    { echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
24110 echo "${ECHO_T}$gras_struct_packed" >&6; }
24111    if test x$gras_struct_packed = "xyes" ; then
24112      { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
24113 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
24114    { (exit 1); exit 1; }; }
24115    fi
24116
24117    { echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
24118 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6; }
24119    cat >conftest.$ac_ext <<_ACEOF
24120 /* confdefs.h.  */
24121 _ACEOF
24122 cat confdefs.h >>conftest.$ac_ext
24123 cat >>conftest.$ac_ext <<_ACEOF
24124 /* end confdefs.h.  */
24125 #include "confdefs.h"
24126         #include <sys/types.h>
24127         #include <stddef.h> /* offsetof() */
24128         struct s {double d; int i; char c;};
24129
24130 int
24131 main ()
24132 {
24133 switch (0)
24134         case 0:
24135         case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24136
24137   ;
24138   return 0;
24139 }
24140 _ACEOF
24141 rm -f conftest.$ac_objext
24142 if { (ac_try="$ac_compile"
24143 case "(($ac_try" in
24144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24145   *) ac_try_echo=$ac_try;;
24146 esac
24147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24148   (eval "$ac_compile") 2>conftest.er1
24149   ac_status=$?
24150   grep -v '^ *+' conftest.er1 >conftest.err
24151   rm -f conftest.er1
24152   cat conftest.err >&5
24153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24154   (exit $ac_status); } && {
24155          test -z "$ac_c_werror_flag" ||
24156          test ! -s conftest.err
24157        } && test -s conftest.$ac_objext; then
24158   gras_struct_compact=yes
24159 else
24160   echo "$as_me: failed program was:" >&5
24161 sed 's/^/| /' conftest.$ac_ext >&5
24162
24163         gras_struct_compact=no
24164 fi
24165
24166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24167
24168    { echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
24169 echo "${ECHO_T}$gras_struct_compact" >&6; }
24170
24171    if test x$gras_struct_compact != xyes ; then
24172      { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
24173 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
24174    { (exit 1); exit 1; }; }
24175    fi
24176
24177 cat >>confdefs.h <<_ACEOF
24178 #define GRAS_STRUCT_COMPACT 1
24179 _ACEOF
24180
24181    { echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
24182 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6; }
24183
24184    cat >conftest.$ac_ext <<_ACEOF
24185 /* confdefs.h.  */
24186 _ACEOF
24187 cat confdefs.h >>conftest.$ac_ext
24188 cat >>conftest.$ac_ext <<_ACEOF
24189 /* end confdefs.h.  */
24190 #include "confdefs.h"
24191       #include <sys/types.h>
24192         #include <stddef.h> /* offsetof() */
24193         struct s { double d; int i; char c[6]; };
24194
24195 int
24196 main ()
24197 {
24198 switch (0)
24199       case 0:
24200       case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24201
24202   ;
24203   return 0;
24204 }
24205 _ACEOF
24206 rm -f conftest.$ac_objext
24207 if { (ac_try="$ac_compile"
24208 case "(($ac_try" in
24209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24210   *) ac_try_echo=$ac_try;;
24211 esac
24212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24213   (eval "$ac_compile") 2>conftest.er1
24214   ac_status=$?
24215   grep -v '^ *+' conftest.er1 >conftest.err
24216   rm -f conftest.er1
24217   cat conftest.err >&5
24218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24219   (exit $ac_status); } && {
24220          test -z "$ac_c_werror_flag" ||
24221          test ! -s conftest.err
24222        } && test -s conftest.$ac_objext; then
24223   gras_array_straddle_struct=yes
24224 else
24225   echo "$as_me: failed program was:" >&5
24226 sed 's/^/| /' conftest.$ac_ext >&5
24227
24228         gras_array_straddle_struct=no
24229 fi
24230
24231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24232
24233    { echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
24234 echo "${ECHO_T}$gras_array_straddle_struct" >&6; }
24235
24236    if test x$gras_array_straddle_struct = xyes ; then
24237
24238 cat >>confdefs.h <<_ACEOF
24239 #define GRAS_ARRAY_STRADDLE_STRUCT 1
24240 _ACEOF
24241
24242    else
24243      { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
24244 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
24245    { (exit 1); exit 1; }; }
24246    fi
24247
24248
24249
24250
24251
24252   { echo "$as_me:$LINENO: result: " >&5
24253 echo "${ECHO_T}" >&6; }
24254   { echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
24255 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6; }
24256
24257
24258
24259
24260 { echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
24261 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6; }
24262 if test "${ac_cv_check_mcsc+set}" = set; then
24263   echo $ECHO_N "(cached) $ECHO_C" >&6
24264 else
24265
24266 if test "$cross_compiling" = yes; then
24267   ac_cv_check_mcsc=no
24268
24269 else
24270   cat >conftest.$ac_ext <<_ACEOF
24271 /* confdefs.h.  */
24272 _ACEOF
24273 cat confdefs.h >>conftest.$ac_ext
24274 cat >>conftest.$ac_ext <<_ACEOF
24275 /* end confdefs.h.  */
24276
24277
24278 #include <stdio.h>
24279 #include <stdlib.h>
24280 #include <ucontext.h>
24281
24282 ucontext_t uc_child;
24283 ucontext_t uc_main;
24284
24285 void child(void *arg)
24286 {
24287     if (arg != (void *)12345)
24288         exit(1);
24289     if (swapcontext(&uc_child, &uc_main) != 0)
24290         exit(2);
24291 }
24292
24293 int main(int argc, char *argv[])
24294 {
24295     FILE *fp;
24296     void *stack;
24297
24298     /* the default is that it fails */
24299     if ((fp = fopen("conftestval", "w")) == NULL)
24300         exit(3);
24301     fprintf(fp, "no\n");
24302     fclose(fp);
24303
24304     /* configure a child user-space context */
24305     if ((stack = malloc(64*1024)) == NULL)
24306         exit(4);
24307     if (getcontext(&uc_child) != 0)
24308         exit(5);
24309     uc_child.uc_link = NULL;
24310     uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
24311     uc_child.uc_stack.ss_size = 32*1024;
24312     uc_child.uc_stack.ss_flags = 0;
24313     makecontext(&uc_child, child, 2, (void *)12345);
24314
24315     /* switch into the user context */
24316     if (swapcontext(&uc_main, &uc_child) != 0)
24317         exit(6);
24318
24319     /* Fine, child came home */
24320     if ((fp = fopen("conftestval", "w")) == NULL)
24321         exit(7);
24322     fprintf(fp, "yes\n");
24323     fclose(fp);
24324
24325     /* die successfully */
24326     exit(0);
24327 }
24328
24329 _ACEOF
24330 rm -f conftest$ac_exeext
24331 if { (ac_try="$ac_link"
24332 case "(($ac_try" in
24333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24334   *) ac_try_echo=$ac_try;;
24335 esac
24336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24337   (eval "$ac_link") 2>&5
24338   ac_status=$?
24339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24341   { (case "(($ac_try" in
24342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24343   *) ac_try_echo=$ac_try;;
24344 esac
24345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24346   (eval "$ac_try") 2>&5
24347   ac_status=$?
24348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24349   (exit $ac_status); }; }; then
24350   ac_cv_check_mcsc=`cat conftestval`
24351 else
24352   echo "$as_me: program exited with status $ac_status" >&5
24353 echo "$as_me: failed program was:" >&5
24354 sed 's/^/| /' conftest.$ac_ext >&5
24355
24356 ( exit $ac_status )
24357 ac_cv_check_mcsc=no
24358 fi
24359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24360 fi
24361
24362
24363 fi
24364 { echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
24365 echo "${ECHO_T}$ac_cv_check_mcsc" >&6; }
24366 if test ".$ac_cv_check_mcsc" = .yes; then
24367     mcsc=yes
24368 else
24369     mcsc=no
24370 fi
24371
24372
24373
24374 for ac_header in pthread.h
24375 do
24376 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24378   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24381   echo $ECHO_N "(cached) $ECHO_C" >&6
24382 fi
24383 ac_res=`eval echo '${'$as_ac_Header'}'`
24384                { echo "$as_me:$LINENO: result: $ac_res" >&5
24385 echo "${ECHO_T}$ac_res" >&6; }
24386 else
24387   # Is the header compilable?
24388 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24390 cat >conftest.$ac_ext <<_ACEOF
24391 /* confdefs.h.  */
24392 _ACEOF
24393 cat confdefs.h >>conftest.$ac_ext
24394 cat >>conftest.$ac_ext <<_ACEOF
24395 /* end confdefs.h.  */
24396 $ac_includes_default
24397 #include <$ac_header>
24398 _ACEOF
24399 rm -f conftest.$ac_objext
24400 if { (ac_try="$ac_compile"
24401 case "(($ac_try" in
24402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24403   *) ac_try_echo=$ac_try;;
24404 esac
24405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24406   (eval "$ac_compile") 2>conftest.er1
24407   ac_status=$?
24408   grep -v '^ *+' conftest.er1 >conftest.err
24409   rm -f conftest.er1
24410   cat conftest.err >&5
24411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24412   (exit $ac_status); } && {
24413          test -z "$ac_c_werror_flag" ||
24414          test ! -s conftest.err
24415        } && test -s conftest.$ac_objext; then
24416   ac_header_compiler=yes
24417 else
24418   echo "$as_me: failed program was:" >&5
24419 sed 's/^/| /' conftest.$ac_ext >&5
24420
24421         ac_header_compiler=no
24422 fi
24423
24424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24425 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24426 echo "${ECHO_T}$ac_header_compiler" >&6; }
24427
24428 # Is the header present?
24429 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24430 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24431 cat >conftest.$ac_ext <<_ACEOF
24432 /* confdefs.h.  */
24433 _ACEOF
24434 cat confdefs.h >>conftest.$ac_ext
24435 cat >>conftest.$ac_ext <<_ACEOF
24436 /* end confdefs.h.  */
24437 #include <$ac_header>
24438 _ACEOF
24439 if { (ac_try="$ac_cpp conftest.$ac_ext"
24440 case "(($ac_try" in
24441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24442   *) ac_try_echo=$ac_try;;
24443 esac
24444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24445   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24446   ac_status=$?
24447   grep -v '^ *+' conftest.er1 >conftest.err
24448   rm -f conftest.er1
24449   cat conftest.err >&5
24450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24451   (exit $ac_status); } >/dev/null && {
24452          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24453          test ! -s conftest.err
24454        }; then
24455   ac_header_preproc=yes
24456 else
24457   echo "$as_me: failed program was:" >&5
24458 sed 's/^/| /' conftest.$ac_ext >&5
24459
24460   ac_header_preproc=no
24461 fi
24462
24463 rm -f conftest.err conftest.$ac_ext
24464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24465 echo "${ECHO_T}$ac_header_preproc" >&6; }
24466
24467 # So?  What about this header?
24468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24469   yes:no: )
24470     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24472     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24474     ac_header_preproc=yes
24475     ;;
24476   no:yes:* )
24477     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24479     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24480 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24481     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24483     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24484 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24485     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24487     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24489     ( cat <<\_ASBOX
24490 ## -------------------------------------------------- ##
24491 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24492 ## -------------------------------------------------- ##
24493 _ASBOX
24494      ) | sed "s/^/$as_me: WARNING:     /" >&2
24495     ;;
24496 esac
24497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24500   echo $ECHO_N "(cached) $ECHO_C" >&6
24501 else
24502   eval "$as_ac_Header=\$ac_header_preproc"
24503 fi
24504 ac_res=`eval echo '${'$as_ac_Header'}'`
24505                { echo "$as_me:$LINENO: result: $ac_res" >&5
24506 echo "${ECHO_T}$ac_res" >&6; }
24507
24508 fi
24509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24510   cat >>confdefs.h <<_ACEOF
24511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24512 _ACEOF
24513
24514 fi
24515
24516 done
24517
24518 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24519 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24520 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24521   echo $ECHO_N "(cached) $ECHO_C" >&6
24522 else
24523   ac_check_lib_save_LIBS=$LIBS
24524 LIBS="-lpthread  $LIBS"
24525 cat >conftest.$ac_ext <<_ACEOF
24526 /* confdefs.h.  */
24527 _ACEOF
24528 cat confdefs.h >>conftest.$ac_ext
24529 cat >>conftest.$ac_ext <<_ACEOF
24530 /* end confdefs.h.  */
24531
24532 /* Override any GCC internal prototype to avoid an error.
24533    Use char because int might match the return type of a GCC
24534    builtin and then its argument prototype would still apply.  */
24535 #ifdef __cplusplus
24536 extern "C"
24537 #endif
24538 char pthread_create ();
24539 int
24540 main ()
24541 {
24542 return pthread_create ();
24543   ;
24544   return 0;
24545 }
24546 _ACEOF
24547 rm -f conftest.$ac_objext conftest$ac_exeext
24548 if { (ac_try="$ac_link"
24549 case "(($ac_try" in
24550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24551   *) ac_try_echo=$ac_try;;
24552 esac
24553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24554   (eval "$ac_link") 2>conftest.er1
24555   ac_status=$?
24556   grep -v '^ *+' conftest.er1 >conftest.err
24557   rm -f conftest.er1
24558   cat conftest.err >&5
24559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24560   (exit $ac_status); } && {
24561          test -z "$ac_c_werror_flag" ||
24562          test ! -s conftest.err
24563        } && test -s conftest$ac_exeext &&
24564        $as_test_x conftest$ac_exeext; then
24565   ac_cv_lib_pthread_pthread_create=yes
24566 else
24567   echo "$as_me: failed program was:" >&5
24568 sed 's/^/| /' conftest.$ac_ext >&5
24569
24570         ac_cv_lib_pthread_pthread_create=no
24571 fi
24572
24573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24574       conftest$ac_exeext conftest.$ac_ext
24575 LIBS=$ac_check_lib_save_LIBS
24576 fi
24577 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24578 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24579 if test $ac_cv_lib_pthread_pthread_create = yes; then
24580   pthread=yes
24581 else
24582   pthread=no
24583 fi
24584
24585
24586
24587 if test ".$mcsc" = .yes; then
24588    mcsc=yes
24589 elif test ".$pthread" = .yes; then
24590    pthread=yes
24591 else
24592     ac_header=windows.h
24593     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24594     if test `eval echo '${'$as_ac_Header'}'` = yes; then
24595       windows_context=yes
24596     else
24597       { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
24598 echo "$as_me: error: no appropriate backend found" >&2;}
24599    { (exit 1); exit 1; }; }
24600     fi
24601 fi
24602
24603
24604 { echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
24605 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6; }
24606
24607
24608 # Check whether --with-pthread was given.
24609 if test "${with_pthread+set}" = set; then
24610   withval=$with_pthread; with_context=pthread
24611 fi
24612
24613
24614 # Check whether --with-pthread was given.
24615 if test "${with_pthread+set}" = set; then
24616   withval=$with_pthread; with_context=pthread
24617 fi
24618
24619
24620
24621 # Check whether --with-context was given.
24622 if test "${with_context+set}" = set; then
24623   withval=$with_context;
24624 else
24625   with_context=auto
24626 fi
24627
24628
24629 if test "x$with_context$mcsc" = "xucontextno" ; then
24630   { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
24631 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
24632    { (exit 77); exit 77; }; }
24633 fi
24634
24635 case $with_context in
24636  ucontext) ;;
24637  pthread) ;;
24638  pthreads) ;;
24639  windows) ;;
24640  auto) with_context=ucontext;;
24641  *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
24642 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
24643    { (exit 1); exit 1; }; } ;;
24644 esac
24645
24646 if test "x$with_context" = "xucontext" ; then
24647   if test ".$mcsc" = .yes; then
24648     { echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
24649 echo "${ECHO_T}found working ucontext. Great!" >&6; }
24650
24651 cat >>confdefs.h <<\_ACEOF
24652 #define CONTEXT_UCONTEXT 1
24653 _ACEOF
24654
24655   else
24656     if test ".$windows_context" = .yes ; then
24657       { echo "$as_me:$LINENO: result: use windows context portability layer." >&5
24658 echo "${ECHO_T}use windows context portability layer." >&6; }
24659       with_context=windows
24660     else
24661       { echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
24662 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6; }
24663       with_context=pthread
24664     fi
24665   fi
24666 fi
24667
24668 if test "x$with_context" = "xpthreads"; then
24669   with_context=pthread
24670 fi
24671 if test "x$with_context" = "xpthread"; then
24672
24673 for ac_header in pthread.h
24674 do
24675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24677   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24680   echo $ECHO_N "(cached) $ECHO_C" >&6
24681 fi
24682 ac_res=`eval echo '${'$as_ac_Header'}'`
24683                { echo "$as_me:$LINENO: result: $ac_res" >&5
24684 echo "${ECHO_T}$ac_res" >&6; }
24685 else
24686   # Is the header compilable?
24687 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24689 cat >conftest.$ac_ext <<_ACEOF
24690 /* confdefs.h.  */
24691 _ACEOF
24692 cat confdefs.h >>conftest.$ac_ext
24693 cat >>conftest.$ac_ext <<_ACEOF
24694 /* end confdefs.h.  */
24695 $ac_includes_default
24696 #include <$ac_header>
24697 _ACEOF
24698 rm -f conftest.$ac_objext
24699 if { (ac_try="$ac_compile"
24700 case "(($ac_try" in
24701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24702   *) ac_try_echo=$ac_try;;
24703 esac
24704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24705   (eval "$ac_compile") 2>conftest.er1
24706   ac_status=$?
24707   grep -v '^ *+' conftest.er1 >conftest.err
24708   rm -f conftest.er1
24709   cat conftest.err >&5
24710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711   (exit $ac_status); } && {
24712          test -z "$ac_c_werror_flag" ||
24713          test ! -s conftest.err
24714        } && test -s conftest.$ac_objext; then
24715   ac_header_compiler=yes
24716 else
24717   echo "$as_me: failed program was:" >&5
24718 sed 's/^/| /' conftest.$ac_ext >&5
24719
24720         ac_header_compiler=no
24721 fi
24722
24723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24725 echo "${ECHO_T}$ac_header_compiler" >&6; }
24726
24727 # Is the header present?
24728 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24730 cat >conftest.$ac_ext <<_ACEOF
24731 /* confdefs.h.  */
24732 _ACEOF
24733 cat confdefs.h >>conftest.$ac_ext
24734 cat >>conftest.$ac_ext <<_ACEOF
24735 /* end confdefs.h.  */
24736 #include <$ac_header>
24737 _ACEOF
24738 if { (ac_try="$ac_cpp conftest.$ac_ext"
24739 case "(($ac_try" in
24740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24741   *) ac_try_echo=$ac_try;;
24742 esac
24743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24744   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24745   ac_status=$?
24746   grep -v '^ *+' conftest.er1 >conftest.err
24747   rm -f conftest.er1
24748   cat conftest.err >&5
24749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24750   (exit $ac_status); } >/dev/null && {
24751          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24752          test ! -s conftest.err
24753        }; then
24754   ac_header_preproc=yes
24755 else
24756   echo "$as_me: failed program was:" >&5
24757 sed 's/^/| /' conftest.$ac_ext >&5
24758
24759   ac_header_preproc=no
24760 fi
24761
24762 rm -f conftest.err conftest.$ac_ext
24763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24764 echo "${ECHO_T}$ac_header_preproc" >&6; }
24765
24766 # So?  What about this header?
24767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24768   yes:no: )
24769     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24771     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24773     ac_header_preproc=yes
24774     ;;
24775   no:yes:* )
24776     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24778     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24779 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24780     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24782     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24783 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24784     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24786     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24788     ( cat <<\_ASBOX
24789 ## -------------------------------------------------- ##
24790 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24791 ## -------------------------------------------------- ##
24792 _ASBOX
24793      ) | sed "s/^/$as_me: WARNING:     /" >&2
24794     ;;
24795 esac
24796 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24799   echo $ECHO_N "(cached) $ECHO_C" >&6
24800 else
24801   eval "$as_ac_Header=\$ac_header_preproc"
24802 fi
24803 ac_res=`eval echo '${'$as_ac_Header'}'`
24804                { echo "$as_me:$LINENO: result: $ac_res" >&5
24805 echo "${ECHO_T}$ac_res" >&6; }
24806
24807 fi
24808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24809   cat >>confdefs.h <<_ACEOF
24810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24811 _ACEOF
24812
24813 fi
24814
24815 done
24816
24817
24818 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24819 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24820 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24821   echo $ECHO_N "(cached) $ECHO_C" >&6
24822 else
24823   ac_check_lib_save_LIBS=$LIBS
24824 LIBS="-lpthread  $LIBS"
24825 cat >conftest.$ac_ext <<_ACEOF
24826 /* confdefs.h.  */
24827 _ACEOF
24828 cat confdefs.h >>conftest.$ac_ext
24829 cat >>conftest.$ac_ext <<_ACEOF
24830 /* end confdefs.h.  */
24831
24832 /* Override any GCC internal prototype to avoid an error.
24833    Use char because int might match the return type of a GCC
24834    builtin and then its argument prototype would still apply.  */
24835 #ifdef __cplusplus
24836 extern "C"
24837 #endif
24838 char pthread_create ();
24839 int
24840 main ()
24841 {
24842 return pthread_create ();
24843   ;
24844   return 0;
24845 }
24846 _ACEOF
24847 rm -f conftest.$ac_objext conftest$ac_exeext
24848 if { (ac_try="$ac_link"
24849 case "(($ac_try" in
24850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24851   *) ac_try_echo=$ac_try;;
24852 esac
24853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24854   (eval "$ac_link") 2>conftest.er1
24855   ac_status=$?
24856   grep -v '^ *+' conftest.er1 >conftest.err
24857   rm -f conftest.er1
24858   cat conftest.err >&5
24859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860   (exit $ac_status); } && {
24861          test -z "$ac_c_werror_flag" ||
24862          test ! -s conftest.err
24863        } && test -s conftest$ac_exeext &&
24864        $as_test_x conftest$ac_exeext; then
24865   ac_cv_lib_pthread_pthread_create=yes
24866 else
24867   echo "$as_me: failed program was:" >&5
24868 sed 's/^/| /' conftest.$ac_ext >&5
24869
24870         ac_cv_lib_pthread_pthread_create=no
24871 fi
24872
24873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24874       conftest$ac_exeext conftest.$ac_ext
24875 LIBS=$ac_check_lib_save_LIBS
24876 fi
24877 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24878 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24879 if test $ac_cv_lib_pthread_pthread_create = yes; then
24880   cat >>confdefs.h <<_ACEOF
24881 #define HAVE_LIBPTHREAD 1
24882 _ACEOF
24883
24884   LIBS="-lpthread $LIBS"
24885
24886 else
24887   { { echo "$as_me:$LINENO: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&5
24888 echo "$as_me: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&2;}
24889    { (exit 1); exit 1; }; }
24890 fi
24891
24892
24893 cat >>confdefs.h <<\_ACEOF
24894 #define CONTEXT_THREADS 1
24895 _ACEOF
24896
24897   { echo "$as_me:$LINENO: result: You have pthreads. Let's use them." >&5
24898 echo "${ECHO_T}You have pthreads. Let's use them." >&6; }
24899 fi
24900
24901
24902 if test "x$with_context" = "xucontext" ; then
24903   { echo "$as_me:$LINENO: checking for direction of stack growth" >&5
24904 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6; }
24905 if test "${ac_cv_check_stackgrowth+set}" = set; then
24906   echo $ECHO_N "(cached) $ECHO_C" >&6
24907 else
24908
24909 cross_compiling=no
24910 if test "$cross_compiling" = yes; then
24911   ac_cv_check_stackgrowth=down
24912
24913 else
24914   cat >conftest.$ac_ext <<_ACEOF
24915 /* confdefs.h.  */
24916 _ACEOF
24917 cat confdefs.h >>conftest.$ac_ext
24918 cat >>conftest.$ac_ext <<_ACEOF
24919 /* end confdefs.h.  */
24920
24921 #include <stdio.h>
24922 #include <stdlib.h>
24923 static int iterate = 10;
24924 static int growsdown(int *x)
24925 {
24926     auto int y;
24927     y = (x > &y);
24928     if (--iterate > 0)
24929         y = growsdown(&y);
24930     if (y != (x > &y))
24931         exit(1);
24932     return y;
24933 }
24934 int main(int argc, char *argv[])
24935 {
24936     FILE *f;
24937     auto int x;
24938     if ((f = fopen("conftestval", "w")) == NULL)
24939         exit(1);
24940     fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
24941     fclose(f);
24942     exit(0);
24943 }
24944
24945
24946 _ACEOF
24947 rm -f conftest$ac_exeext
24948 if { (ac_try="$ac_link"
24949 case "(($ac_try" in
24950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24951   *) ac_try_echo=$ac_try;;
24952 esac
24953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24954   (eval "$ac_link") 2>&5
24955   ac_status=$?
24956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24958   { (case "(($ac_try" in
24959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24960   *) ac_try_echo=$ac_try;;
24961 esac
24962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24963   (eval "$ac_try") 2>&5
24964   ac_status=$?
24965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966   (exit $ac_status); }; }; then
24967   ac_cv_check_stackgrowth=`cat conftestval`
24968 else
24969   echo "$as_me: program exited with status $ac_status" >&5
24970 echo "$as_me: failed program was:" >&5
24971 sed 's/^/| /' conftest.$ac_ext >&5
24972
24973 ( exit $ac_status )
24974 ac_cv_check_stackgrowth=down
24975 fi
24976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24977 fi
24978
24979
24980 fi
24981 { echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
24982 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6; }
24983 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24984     val="-1"
24985 else
24986     val="+1"
24987 fi
24988
24989 cat >>confdefs.h <<_ACEOF
24990 #define PTH_STACKGROWTH $val
24991 _ACEOF
24992
24993
24994   if test ".$ac_cv_check_stackgrowth" = ".down"; then
24995       PTH_STACK_GROWTH="down"
24996   else
24997       PTH_STACK_GROWTH="up"
24998   fi
24999
25000
25001
25002
25003
25004
25005 for ac_func in makecontext
25006 do
25007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25008 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25010 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25011   echo $ECHO_N "(cached) $ECHO_C" >&6
25012 else
25013   cat >conftest.$ac_ext <<_ACEOF
25014 /* confdefs.h.  */
25015 _ACEOF
25016 cat confdefs.h >>conftest.$ac_ext
25017 cat >>conftest.$ac_ext <<_ACEOF
25018 /* end confdefs.h.  */
25019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25020    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25021 #define $ac_func innocuous_$ac_func
25022
25023 /* System header to define __stub macros and hopefully few prototypes,
25024     which can conflict with char $ac_func (); below.
25025     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25026     <limits.h> exists even on freestanding compilers.  */
25027
25028 #ifdef __STDC__
25029 # include <limits.h>
25030 #else
25031 # include <assert.h>
25032 #endif
25033
25034 #undef $ac_func
25035
25036 /* Override any GCC internal prototype to avoid an error.
25037    Use char because int might match the return type of a GCC
25038    builtin and then its argument prototype would still apply.  */
25039 #ifdef __cplusplus
25040 extern "C"
25041 #endif
25042 char $ac_func ();
25043 /* The GNU C library defines this for functions which it implements
25044     to always fail with ENOSYS.  Some functions are actually named
25045     something starting with __ and the normal name is an alias.  */
25046 #if defined __stub_$ac_func || defined __stub___$ac_func
25047 choke me
25048 #endif
25049
25050 int
25051 main ()
25052 {
25053 return $ac_func ();
25054   ;
25055   return 0;
25056 }
25057 _ACEOF
25058 rm -f conftest.$ac_objext conftest$ac_exeext
25059 if { (ac_try="$ac_link"
25060 case "(($ac_try" in
25061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25062   *) ac_try_echo=$ac_try;;
25063 esac
25064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25065   (eval "$ac_link") 2>conftest.er1
25066   ac_status=$?
25067   grep -v '^ *+' conftest.er1 >conftest.err
25068   rm -f conftest.er1
25069   cat conftest.err >&5
25070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25071   (exit $ac_status); } && {
25072          test -z "$ac_c_werror_flag" ||
25073          test ! -s conftest.err
25074        } && test -s conftest$ac_exeext &&
25075        $as_test_x conftest$ac_exeext; then
25076   eval "$as_ac_var=yes"
25077 else
25078   echo "$as_me: failed program was:" >&5
25079 sed 's/^/| /' conftest.$ac_ext >&5
25080
25081         eval "$as_ac_var=no"
25082 fi
25083
25084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25085       conftest$ac_exeext conftest.$ac_ext
25086 fi
25087 ac_res=`eval echo '${'$as_ac_var'}'`
25088                { echo "$as_me:$LINENO: result: $ac_res" >&5
25089 echo "${ECHO_T}$ac_res" >&6; }
25090 if test `eval echo '${'$as_ac_var'}'` = yes; then
25091   cat >>confdefs.h <<_ACEOF
25092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25093 _ACEOF
25094
25095 fi
25096 done
25097
25098
25099 { echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
25100 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6; }
25101 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
25102   echo $ECHO_N "(cached) $ECHO_C" >&6
25103 else
25104
25105 if test ".$ac_cv_func_makecontext" = .no; then
25106         ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
25107 else
25108         OCFLAGS="$CFLAGS"
25109     CFLAGS="$CFLAGS -DTEST_makecontext"
25110     cross_compiling=no
25111         if test "$cross_compiling" = yes; then
25112
25113 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25114
25115 else
25116   cat >conftest.$ac_ext <<_ACEOF
25117 /* confdefs.h.  */
25118 _ACEOF
25119 cat confdefs.h >>conftest.$ac_ext
25120 cat >>conftest.$ac_ext <<_ACEOF
25121 /* end confdefs.h.  */
25122
25123 #include <stdio.h>
25124 #include <stdlib.h>
25125 #include <string.h>
25126 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25127 #include <sys/types.h>
25128 #include <signal.h>
25129 #include <unistd.h>
25130 #endif
25131 #if defined(TEST_makecontext)
25132 #include <ucontext.h>
25133 #endif
25134 union alltypes {
25135     long   l;
25136     double d;
25137     void  *vp;
25138     void (*fp)(void);
25139     char  *cp;
25140 };
25141 static volatile char *handler_addr = (char *)0xDEAD;
25142 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25143 static volatile int handler_done = 0;
25144 void handler(int sig)
25145 {
25146     char garbage[1024];
25147     int i;
25148     auto int dummy;
25149     for (i = 0; i < 1024; i++)
25150         garbage[i] = 'X';
25151     handler_addr = (char *)&dummy;
25152     handler_done = 1;
25153     return;
25154 }
25155 #endif
25156 #if defined(TEST_makecontext)
25157 static ucontext_t uc_handler;
25158 static ucontext_t uc_main;
25159 void handler(void)
25160 {
25161     char garbage[1024];
25162     int i;
25163     auto int dummy;
25164     for (i = 0; i < 1024; i++)
25165         garbage[i] = 'X';
25166     handler_addr = (char *)&dummy;
25167     swapcontext(&uc_handler, &uc_main);
25168     return;
25169 }
25170 #endif
25171 int main(int argc, char *argv[])
25172 {
25173     FILE *f;
25174     char *skaddr;
25175     char *skbuf;
25176     int sksize;
25177     char result[1024];
25178     int i;
25179     sksize = 32768;
25180     skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
25181     if (skbuf == NULL)
25182         exit(1);
25183     for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
25184         skbuf[i] = 'A';
25185     skaddr = skbuf+sizeof(union alltypes);
25186 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25187     {
25188         struct sigaction sa;
25189 #if defined(TEST_sigstack)
25190         struct sigstack ss;
25191 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
25192         stack_t ss;
25193 #else
25194         struct sigaltstack ss;
25195 #endif
25196 #if defined(TEST_sigstack)
25197         ss.ss_sp      = (void *)(skaddr + sksize);
25198         ss.ss_onstack = 0;
25199         if (sigstack(&ss, NULL) < 0)
25200             exit(1);
25201 #elif defined(TEST_sigaltstack)
25202         ss.ss_sp    = (void *)(skaddr + sksize);
25203         ss.ss_size  = sksize;
25204         ss.ss_flags = 0;
25205         if (sigaltstack(&ss, NULL) < 0)
25206             exit(1);
25207 #endif
25208         memset((void *)&sa, 0, sizeof(struct sigaction));
25209         sa.sa_handler = handler;
25210         sa.sa_flags = SA_ONSTACK;
25211         sigemptyset(&sa.sa_mask);
25212         sigaction(SIGUSR1, &sa, NULL);
25213         kill(getpid(), SIGUSR1);
25214         while (!handler_done)
25215             /*nop*/;
25216     }
25217 #endif
25218 #if defined(TEST_makecontext)
25219     {
25220         if (getcontext(&uc_handler) != 0)
25221             exit(1);
25222         uc_handler.uc_link = NULL;
25223         uc_handler.uc_stack.ss_sp    = (void *)(skaddr + sksize);
25224         uc_handler.uc_stack.ss_size  = sksize;
25225         uc_handler.uc_stack.ss_flags = 0;
25226         makecontext(&uc_handler, handler, 1);
25227         swapcontext(&uc_main, &uc_handler);
25228     }
25229 #endif
25230     if (handler_addr == (char *)0xDEAD)
25231         exit(1);
25232     if (handler_addr < skaddr+sksize) {
25233         /* stack was placed into lower area */
25234         if (*(skaddr+sksize) != 'A')
25235              sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
25236                      sizeof(union alltypes), sizeof(union alltypes));
25237         else
25238              strcpy(result, "(skaddr)+(sksize),(sksize)");
25239     }
25240     else {
25241         /* stack was placed into higher area */
25242         if (*(skaddr+sksize*2) != 'A')
25243             sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
25244         else
25245             strcpy(result, "(skaddr),(sksize)");
25246     }
25247     if ((f = fopen("conftestval", "w")) == NULL)
25248         exit(1);
25249     fprintf(f, "%s\n", result);
25250     fclose(f);
25251     exit(0);
25252 }
25253
25254 _ACEOF
25255 rm -f conftest$ac_exeext
25256 if { (ac_try="$ac_link"
25257 case "(($ac_try" in
25258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25259   *) ac_try_echo=$ac_try;;
25260 esac
25261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25262   (eval "$ac_link") 2>&5
25263   ac_status=$?
25264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25266   { (case "(($ac_try" in
25267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25268   *) ac_try_echo=$ac_try;;
25269 esac
25270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25271   (eval "$ac_try") 2>&5
25272   ac_status=$?
25273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25274   (exit $ac_status); }; }; then
25275
25276 ac_cv_stacksetup_makecontext=`cat conftestval`
25277 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
25278
25279 else
25280   echo "$as_me: program exited with status $ac_status" >&5
25281 echo "$as_me: failed program was:" >&5
25282 sed 's/^/| /' conftest.$ac_ext >&5
25283
25284 ( exit $ac_status )
25285
25286 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25287
25288 fi
25289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25290 fi
25291
25292
25293 CFLAGS="$OCFLAGS"
25294
25295 fi
25296 fi
25297 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
25298 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
25299 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
25300 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
25301 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
25302 { echo "$as_me:$LINENO: result: $type" >&5
25303 echo "${ECHO_T}$type" >&6; }
25304 if test ".$verbose" = .yes; then
25305     { echo "$as_me:$LINENO: result:   $pth_skaddr_makecontext" >&5
25306 echo "${ECHO_T}  $pth_skaddr_makecontext" >&6; }
25307 fi
25308
25309 if test ".$verbose" = .yes; then
25310     { echo "$as_me:$LINENO: result:   $pth_sksize_makecontext" >&5
25311 echo "${ECHO_T}  $pth_sksize_makecontext" >&6; }
25312 fi
25313
25314
25315 fi
25316
25317
25318 #########################################
25319 ## Build optional modules (simix)
25320 ##
25321
25322   { echo "$as_me:$LINENO: result: " >&5
25323 echo "${ECHO_T}" >&6; }
25324   { echo "$as_me:$LINENO: result: ${T_MD}Optional modules${T_ME}" >&5
25325 echo "${ECHO_T}${T_MD}Optional modules${T_ME}" >&6; }
25326
25327 # Check whether --enable-simix was given.
25328 if test "${enable_simix+set}" = set; then
25329   enableval=$enable_simix; enable_simix=$enableval
25330 else
25331   enable_simix=no
25332 fi
25333
25334 if test "x$enable_simix" = "xyes" ; then
25335   { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental SimIX. We hope you know what you're doing.. ****" >&5
25336 echo "${ECHO_T}***** You have decided to use the experimental SimIX. We hope you know what you're doing.. ****" >&6; }
25337
25338 cat >>confdefs.h <<\_ACEOF
25339 #define USE_SIMIX 1
25340 _ACEOF
25341
25342 else
25343   { echo "$as_me:$LINENO: result: Eventually you will come to SimIX." >&5
25344 echo "${ECHO_T}Eventually you will come to SimIX." >&6; }
25345 fi
25346
25347
25348 if test x$enable_simix != xno; then
25349   USE_SIMIX_TRUE=
25350   USE_SIMIX_FALSE='#'
25351 else
25352   USE_SIMIX_TRUE='#'
25353   USE_SIMIX_FALSE=
25354 fi
25355
25356
25357 #########################################
25358 ## Build optional modules (gtnets)
25359 ##
25360
25361 # Check whether --with-gtnets was given.
25362 if test "${with_gtnets+set}" = set; then
25363   withval=$with_gtnets; gtnets_path="$withval"
25364 else
25365   gtnets_path="NO"
25366 fi
25367
25368 if test "x$gtnets_path" = "xNO" ; then
25369   { echo "$as_me:$LINENO: result: Eventually you will come to GTNetS." >&5
25370 echo "${ECHO_T}Eventually you will come to GTNetS." >&6; }
25371 else
25372   { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. ****" >&5
25373 echo "${ECHO_T}***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. ****" >&6; }
25374
25375 cat >>confdefs.h <<\_ACEOF
25376 #define USE_GTNETS 1
25377 _ACEOF
25378
25379   if ! test -e $gtnets_path ; then
25380     { { echo "$as_me:$LINENO: error: Provided path to GTNetS include files ($gtnets_path) do not exist!" >&5
25381 echo "$as_me: error: Provided path to GTNetS include files ($gtnets_path) do not exist!" >&2;}
25382    { (exit 1); exit 1; }; }
25383   fi
25384   GTNETS_CFLAGS=-I$gtnets_path/include
25385
25386   GTNETS_LDFLAGS=-L$gtnets_path/lib
25387
25388 fi
25389
25390
25391 if test "x$gtnets_path" != xNO; then
25392   USE_GTNETS_TRUE=
25393   USE_GTNETS_FALSE='#'
25394 else
25395   USE_GTNETS_TRUE='#'
25396   USE_GTNETS_FALSE=
25397 fi
25398
25399
25400 #########################################
25401 ## Check for libraries extra-dependencies
25402 ##
25403
25404
25405   { echo "$as_me:$LINENO: result: " >&5
25406 echo "${ECHO_T}" >&6; }
25407   { echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
25408 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6; }
25409
25410
25411 SIMGRID_DEP=""
25412 GRAS_DEP=""
25413 if test xpthread=xyes ; then
25414   # if the pthreads are usable
25415   if test "x$with_context" = "xpthread" ; then
25416     # if we use them to implement the xbt_context
25417     SIMGRID_DEP="-lpthread"
25418   fi
25419   # we need them in any case for the gras lib (which is multithreaded)
25420   GRAS_DEP="-lpthread"
25421 fi
25422
25423 { echo "$as_me:$LINENO: checking for csdp" >&5
25424 echo $ECHO_N "checking for csdp... $ECHO_C" >&6; }
25425 sdp=no
25426 { echo "$as_me:$LINENO: checking for sdp in -lsdp" >&5
25427 echo $ECHO_N "checking for sdp in -lsdp... $ECHO_C" >&6; }
25428 if test "${ac_cv_lib_sdp_sdp+set}" = set; then
25429   echo $ECHO_N "(cached) $ECHO_C" >&6
25430 else
25431   ac_check_lib_save_LIBS=$LIBS
25432 LIBS="-lsdp -llapack -lblas -lm $LIBS"
25433 cat >conftest.$ac_ext <<_ACEOF
25434 /* confdefs.h.  */
25435 _ACEOF
25436 cat confdefs.h >>conftest.$ac_ext
25437 cat >>conftest.$ac_ext <<_ACEOF
25438 /* end confdefs.h.  */
25439
25440 /* Override any GCC internal prototype to avoid an error.
25441    Use char because int might match the return type of a GCC
25442    builtin and then its argument prototype would still apply.  */
25443 #ifdef __cplusplus
25444 extern "C"
25445 #endif
25446 char sdp ();
25447 int
25448 main ()
25449 {
25450 return sdp ();
25451   ;
25452   return 0;
25453 }
25454 _ACEOF
25455 rm -f conftest.$ac_objext conftest$ac_exeext
25456 if { (ac_try="$ac_link"
25457 case "(($ac_try" in
25458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25459   *) ac_try_echo=$ac_try;;
25460 esac
25461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25462   (eval "$ac_link") 2>conftest.er1
25463   ac_status=$?
25464   grep -v '^ *+' conftest.er1 >conftest.err
25465   rm -f conftest.er1
25466   cat conftest.err >&5
25467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25468   (exit $ac_status); } && {
25469          test -z "$ac_c_werror_flag" ||
25470          test ! -s conftest.err
25471        } && test -s conftest$ac_exeext &&
25472        $as_test_x conftest$ac_exeext; then
25473   ac_cv_lib_sdp_sdp=yes
25474 else
25475   echo "$as_me: failed program was:" >&5
25476 sed 's/^/| /' conftest.$ac_ext >&5
25477
25478         ac_cv_lib_sdp_sdp=no
25479 fi
25480
25481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25482       conftest$ac_exeext conftest.$ac_ext
25483 LIBS=$ac_check_lib_save_LIBS
25484 fi
25485 { echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_sdp" >&5
25486 echo "${ECHO_T}$ac_cv_lib_sdp_sdp" >&6; }
25487 if test $ac_cv_lib_sdp_sdp = yes; then
25488   csdp=yes
25489 else
25490   csdp=no
25491 fi
25492
25493 if test "x$csdp" = xyes; then
25494   SIMGRID_DEP="$SIMGRID_DEP -lsdp -llapack -lblas -lm"
25495   { echo "$as_me:$LINENO: result: Found working sdp library." >&5
25496 echo "${ECHO_T}Found working sdp library." >&6; }
25497
25498 cat >>confdefs.h <<\_ACEOF
25499 #define HAVE_SDP 1
25500 _ACEOF
25501
25502 else
25503   { echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
25504 echo "${ECHO_T}Could not find any working sdp library." >&6; }
25505 fi;
25506
25507
25508 if test x$csdp != xno; then
25509   HAVE_SDP_TRUE=
25510   HAVE_SDP_FALSE='#'
25511 else
25512   HAVE_SDP_TRUE='#'
25513   HAVE_SDP_FALSE=
25514 fi
25515
25516
25517
25518
25519 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25520 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
25521 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25522   echo $ECHO_N "(cached) $ECHO_C" >&6
25523 else
25524   ac_check_lib_save_LIBS=$LIBS
25525 LIBS="-lnsl  $LIBS"
25526 cat >conftest.$ac_ext <<_ACEOF
25527 /* confdefs.h.  */
25528 _ACEOF
25529 cat confdefs.h >>conftest.$ac_ext
25530 cat >>conftest.$ac_ext <<_ACEOF
25531 /* end confdefs.h.  */
25532
25533 /* Override any GCC internal prototype to avoid an error.
25534    Use char because int might match the return type of a GCC
25535    builtin and then its argument prototype would still apply.  */
25536 #ifdef __cplusplus
25537 extern "C"
25538 #endif
25539 char gethostbyname ();
25540 int
25541 main ()
25542 {
25543 return gethostbyname ();
25544   ;
25545   return 0;
25546 }
25547 _ACEOF
25548 rm -f conftest.$ac_objext conftest$ac_exeext
25549 if { (ac_try="$ac_link"
25550 case "(($ac_try" in
25551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25552   *) ac_try_echo=$ac_try;;
25553 esac
25554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25555   (eval "$ac_link") 2>conftest.er1
25556   ac_status=$?
25557   grep -v '^ *+' conftest.er1 >conftest.err
25558   rm -f conftest.er1
25559   cat conftest.err >&5
25560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25561   (exit $ac_status); } && {
25562          test -z "$ac_c_werror_flag" ||
25563          test ! -s conftest.err
25564        } && test -s conftest$ac_exeext &&
25565        $as_test_x conftest$ac_exeext; then
25566   ac_cv_lib_nsl_gethostbyname=yes
25567 else
25568   echo "$as_me: failed program was:" >&5
25569 sed 's/^/| /' conftest.$ac_ext >&5
25570
25571         ac_cv_lib_nsl_gethostbyname=no
25572 fi
25573
25574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25575       conftest$ac_exeext conftest.$ac_ext
25576 LIBS=$ac_check_lib_save_LIBS
25577 fi
25578 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25579 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
25580 if test $ac_cv_lib_nsl_gethostbyname = yes; then
25581   GRAS_DEP="$GRAS_DEP -lnsl"
25582 fi
25583
25584 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25585 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
25586 if test "${ac_cv_lib_socket_connect+set}" = set; then
25587   echo $ECHO_N "(cached) $ECHO_C" >&6
25588 else
25589   ac_check_lib_save_LIBS=$LIBS
25590 LIBS="-lsocket  $LIBS"
25591 cat >conftest.$ac_ext <<_ACEOF
25592 /* confdefs.h.  */
25593 _ACEOF
25594 cat confdefs.h >>conftest.$ac_ext
25595 cat >>conftest.$ac_ext <<_ACEOF
25596 /* end confdefs.h.  */
25597
25598 /* Override any GCC internal prototype to avoid an error.
25599    Use char because int might match the return type of a GCC
25600    builtin and then its argument prototype would still apply.  */
25601 #ifdef __cplusplus
25602 extern "C"
25603 #endif
25604 char connect ();
25605 int
25606 main ()
25607 {
25608 return connect ();
25609   ;
25610   return 0;
25611 }
25612 _ACEOF
25613 rm -f conftest.$ac_objext conftest$ac_exeext
25614 if { (ac_try="$ac_link"
25615 case "(($ac_try" in
25616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25617   *) ac_try_echo=$ac_try;;
25618 esac
25619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25620   (eval "$ac_link") 2>conftest.er1
25621   ac_status=$?
25622   grep -v '^ *+' conftest.er1 >conftest.err
25623   rm -f conftest.er1
25624   cat conftest.err >&5
25625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25626   (exit $ac_status); } && {
25627          test -z "$ac_c_werror_flag" ||
25628          test ! -s conftest.err
25629        } && test -s conftest$ac_exeext &&
25630        $as_test_x conftest$ac_exeext; then
25631   ac_cv_lib_socket_connect=yes
25632 else
25633   echo "$as_me: failed program was:" >&5
25634 sed 's/^/| /' conftest.$ac_ext >&5
25635
25636         ac_cv_lib_socket_connect=no
25637 fi
25638
25639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25640       conftest$ac_exeext conftest.$ac_ext
25641 LIBS=$ac_check_lib_save_LIBS
25642 fi
25643 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25644 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
25645 if test $ac_cv_lib_socket_connect = yes; then
25646   GRAS_DEP="$GRAS_DEP -lsocket"
25647 fi
25648
25649
25650 { echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
25651 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6; }
25652 case $host_os in
25653   *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32";
25654             AM_CFLAGS=-DDLL_EXPORT
25655
25656             cat >>confdefs.h <<\_ACEOF
25657 #define CONTEXT_THREADS 1
25658 _ACEOF
25659 ;;
25660 esac
25661
25662 if test "x$GRAS_DEP" = x; then
25663    { echo "$as_me:$LINENO: result: none" >&5
25664 echo "${ECHO_T}none" >&6; }
25665 else
25666    { echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
25667 echo "${ECHO_T}$GRAS_DEP" >&6; }
25668 fi
25669
25670
25671
25672 ##############################################
25673 ## Enhance maintainer mode and SUBST variables
25674 ## (must be placed after any compilation tests since our overprotective flags
25675 ##  let some tests fail)
25676
25677 # Check whether we are doing a regular build or a GRAMINE (minimal) one
25678 # Next line is modified by sed when building gramine source tree
25679 gramine_mode=no
25680 if test x$gramine_mode = xyes
25681 then
25682   USE_MAINTAINER_MODE=no
25683 fi
25684
25685
25686 if test x$gramine_mode != xno; then
25687   GRAMINE_MODE_TRUE=
25688   GRAMINE_MODE_FALSE='#'
25689 else
25690   GRAMINE_MODE_TRUE='#'
25691   GRAMINE_MODE_FALSE=
25692 fi
25693
25694
25695
25696 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
25697 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
25698     # Check whether --enable-maintainer-mode was given.
25699 if test "${enable_maintainer_mode+set}" = set; then
25700   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
25701 else
25702   USE_MAINTAINER_MODE=no
25703 fi
25704
25705   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
25706 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
25707
25708
25709 if test $USE_MAINTAINER_MODE = yes; then
25710   MAINTAINER_MODE_TRUE=
25711   MAINTAINER_MODE_FALSE='#'
25712 else
25713   MAINTAINER_MODE_TRUE='#'
25714   MAINTAINER_MODE_FALSE=
25715 fi
25716
25717   MAINT=$MAINTAINER_MODE_TRUE
25718
25719
25720 if test x$USE_MAINTAINER_MODE = xyes
25721 then
25722    # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
25723    enable_compile_warnings=yes
25724 fi
25725
25726   # Check whether --enable-compile-warnings was given.
25727 if test "${enable_compile_warnings+set}" = set; then
25728   enableval=$enable_compile_warnings; enable_compile_warnings=$enableval
25729 else
25730   enable_compile_warnings=no
25731 fi
25732
25733
25734   # Check whether --enable-compile-optimizations was given.
25735 if test "${enable_compile_optimizations+set}" = set; then
25736   enableval=$enable_compile_optimizations; enable_compile_optimizations=$enableval
25737 else
25738   enable_compile_optimizations=auto
25739 fi
25740
25741
25742   if test "x$cflags_set" != "xyes" ; then
25743     # if user didn't specify CFLAGS explicitely
25744
25745     # AC PROG CC tests whether -g is accepted.
25746     # Cool, but it also tries to set -O2. I don't want it with gcc
25747     saveCFLAGS="$CFLAGS"
25748     CFLAGS=
25749     case " $saveCFLAGS " in
25750     *-g*) CFLAGS="-g" ;;
25751     esac
25752     case " $saveCFLAGS " in
25753     *-O2*) test "x$CC" = xgcc || CFLAGS="$CFLAGS -O2" ;;
25754     esac
25755
25756     # damn AC PROG CC, why did you set -O??
25757     CFLAGS="-g"
25758   fi
25759
25760   if test "x$enable_compile_warnings" = "xyes" ; then
25761     { echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
25762 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6; }
25763     warnCFLAGS=
25764     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25765       case " $CFLAGS " in
25766       *-Wall*) ;;
25767       *) warnCFLAGS="-Wall -Wunused" ;;
25768       esac
25769
25770       ## -W is not all that useful.  And it cannot be controlled
25771       ## with individual -Wno-xxx flags, unlike -Wall
25772
25773       ## -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
25774       ## -Wshadow chokes on try{ try{} } constructs
25775       if test "x$enable_compile_warnings" = "xyes"; then
25776         warnCFLAGS=`echo $warnCFLAGS  -Wmissing-prototypes -Wmissing-declarations \
25777         -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
25778         -Wno-unused-function  \
25779         -Werror \
25780         | sed 's/ +/ /g'`
25781         # -Wno-unused-variable  -Wno-unused-label
25782       fi
25783     fi
25784     { echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
25785 echo "${ECHO_T}$warnCFLAGS" >&6; }
25786     # placed before since gcc remembers the last one on conflict
25787     CFLAGS="$warnCFLAGS $CFLAGS"
25788   fi
25789
25790   if test "x$enable_compile_optimizations" = "xyes" ||
25791      test "x$enable_compile_optimizations" = "xauto" ; then
25792     { echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
25793 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6; }
25794     optCFLAGS=
25795     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25796         case " $CFLAGS " in
25797         *-O*) ;;
25798         *) optCFLAGS="$optCFLAGS -O3" ;;
25799         esac
25800         optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
25801
25802         GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
25803         GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
25804         if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" != "x2" ; then
25805           # avoid gcc bug #12828, which is fixed in 3.4.0, but this version
25806           # isn't propagated enough to desserve an extra check
25807
25808           # Note that the flag didn't exist before gcc 3.0
25809           optCFLAGS="$optCFLAGS -fno-loop-optimize"
25810         fi
25811             fi
25812     { echo "$as_me:$LINENO: result: $optCFLAGS" >&5
25813 echo "${ECHO_T}$optCFLAGS" >&6; }
25814     # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
25815     if test "x$cflags_set" != "xyes" ; then
25816       CFLAGS="$optCFLAGS $CFLAGS"
25817     fi
25818   fi
25819
25820   if test x$lt_cv_prog_gnu_ld = xyes ; then
25821     LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
25822   else
25823     LD_DYNAMIC_FLAGS=
25824   fi
25825
25826
25827
25828
25829
25830
25831
25832
25833
25834
25835
25836
25837 #####################
25838 ## Check for programs
25839 ##
25840
25841
25842   { echo "$as_me:$LINENO: result: " >&5
25843 echo "${ECHO_T}" >&6; }
25844   { echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
25845 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6; }
25846
25847 # Extract the first word of "bash", so it can be a program name with args.
25848 set dummy bash; ac_word=$2
25849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25851 if test "${ac_cv_prog_BASH+set}" = set; then
25852   echo $ECHO_N "(cached) $ECHO_C" >&6
25853 else
25854   if test -n "$BASH"; then
25855   ac_cv_prog_BASH="$BASH" # Let the user override the test.
25856 else
25857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25858 for as_dir in $PATH
25859 do
25860   IFS=$as_save_IFS
25861   test -z "$as_dir" && as_dir=.
25862   for ac_exec_ext in '' $ac_executable_extensions; do
25863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25864     ac_cv_prog_BASH="`which bash`"
25865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25866     break 2
25867   fi
25868 done
25869 done
25870 IFS=$as_save_IFS
25871
25872   test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
25873 fi
25874 fi
25875 BASH=$ac_cv_prog_BASH
25876 if test -n "$BASH"; then
25877   { echo "$as_me:$LINENO: result: $BASH" >&5
25878 echo "${ECHO_T}$BASH" >&6; }
25879 else
25880   { echo "$as_me:$LINENO: result: no" >&5
25881 echo "${ECHO_T}no" >&6; }
25882 fi
25883
25884
25885 WARNING="This file is generated, do not edit"
25886
25887
25888
25889 # Can we rebuild the parsers?
25890 # We really want flex and refuse other lex. So, the parser is portable and
25891 # does not induce extra lib dependency
25892 for ac_prog in flex lex
25893 do
25894   # Extract the first word of "$ac_prog", so it can be a program name with args.
25895 set dummy $ac_prog; ac_word=$2
25896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25898 if test "${ac_cv_prog_LEX+set}" = set; then
25899   echo $ECHO_N "(cached) $ECHO_C" >&6
25900 else
25901   if test -n "$LEX"; then
25902   ac_cv_prog_LEX="$LEX" # Let the user override the test.
25903 else
25904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25905 for as_dir in $PATH
25906 do
25907   IFS=$as_save_IFS
25908   test -z "$as_dir" && as_dir=.
25909   for ac_exec_ext in '' $ac_executable_extensions; do
25910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25911     ac_cv_prog_LEX="$ac_prog"
25912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25913     break 2
25914   fi
25915 done
25916 done
25917 IFS=$as_save_IFS
25918
25919 fi
25920 fi
25921 LEX=$ac_cv_prog_LEX
25922 if test -n "$LEX"; then
25923   { echo "$as_me:$LINENO: result: $LEX" >&5
25924 echo "${ECHO_T}$LEX" >&6; }
25925 else
25926   { echo "$as_me:$LINENO: result: no" >&5
25927 echo "${ECHO_T}no" >&6; }
25928 fi
25929
25930
25931   test -n "$LEX" && break
25932 done
25933 test -n "$LEX" || LEX=":"
25934
25935 if test "x$LEX" != "x:"; then
25936   cat >conftest.l <<_ACEOF
25937 %%
25938 a { ECHO; }
25939 b { REJECT; }
25940 c { yymore (); }
25941 d { yyless (1); }
25942 e { yyless (input () != 0); }
25943 f { unput (yytext[0]); }
25944 . { BEGIN INITIAL; }
25945 %%
25946 #ifdef YYTEXT_POINTER
25947 extern char *yytext;
25948 #endif
25949 int
25950 main (void)
25951 {
25952   return ! yylex () + ! yywrap ();
25953 }
25954 _ACEOF
25955 { (ac_try="$LEX conftest.l"
25956 case "(($ac_try" in
25957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25958   *) ac_try_echo=$ac_try;;
25959 esac
25960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25961   (eval "$LEX conftest.l") 2>&5
25962   ac_status=$?
25963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964   (exit $ac_status); }
25965 { echo "$as_me:$LINENO: checking lex output file root" >&5
25966 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
25967 if test "${ac_cv_prog_lex_root+set}" = set; then
25968   echo $ECHO_N "(cached) $ECHO_C" >&6
25969 else
25970
25971 if test -f lex.yy.c; then
25972   ac_cv_prog_lex_root=lex.yy
25973 elif test -f lexyy.c; then
25974   ac_cv_prog_lex_root=lexyy
25975 else
25976   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
25977 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
25978    { (exit 1); exit 1; }; }
25979 fi
25980 fi
25981 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
25982 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
25983 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
25984
25985 if test -z "${LEXLIB+set}"; then
25986   { echo "$as_me:$LINENO: checking lex library" >&5
25987 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
25988 if test "${ac_cv_lib_lex+set}" = set; then
25989   echo $ECHO_N "(cached) $ECHO_C" >&6
25990 else
25991
25992     ac_save_LIBS=$LIBS
25993     ac_cv_lib_lex='none needed'
25994     for ac_lib in '' -lfl -ll; do
25995       LIBS="$ac_lib $ac_save_LIBS"
25996       cat >conftest.$ac_ext <<_ACEOF
25997 `cat $LEX_OUTPUT_ROOT.c`
25998 _ACEOF
25999 rm -f conftest.$ac_objext conftest$ac_exeext
26000 if { (ac_try="$ac_link"
26001 case "(($ac_try" in
26002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26003   *) ac_try_echo=$ac_try;;
26004 esac
26005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26006   (eval "$ac_link") 2>conftest.er1
26007   ac_status=$?
26008   grep -v '^ *+' conftest.er1 >conftest.err
26009   rm -f conftest.er1
26010   cat conftest.err >&5
26011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26012   (exit $ac_status); } && {
26013          test -z "$ac_c_werror_flag" ||
26014          test ! -s conftest.err
26015        } && test -s conftest$ac_exeext &&
26016        $as_test_x conftest$ac_exeext; then
26017   ac_cv_lib_lex=$ac_lib
26018 else
26019   echo "$as_me: failed program was:" >&5
26020 sed 's/^/| /' conftest.$ac_ext >&5
26021
26022
26023 fi
26024
26025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26026       conftest$ac_exeext conftest.$ac_ext
26027       test "$ac_cv_lib_lex" != 'none needed' && break
26028     done
26029     LIBS=$ac_save_LIBS
26030
26031 fi
26032 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
26033 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
26034   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
26035 fi
26036
26037
26038 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
26039 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
26040 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
26041   echo $ECHO_N "(cached) $ECHO_C" >&6
26042 else
26043   # POSIX says lex can declare yytext either as a pointer or an array; the
26044 # default is implementation-dependent.  Figure out which it is, since
26045 # not all implementations provide the %pointer and %array declarations.
26046 ac_cv_prog_lex_yytext_pointer=no
26047 ac_save_LIBS=$LIBS
26048 LIBS="$LEXLIB $ac_save_LIBS"
26049 cat >conftest.$ac_ext <<_ACEOF
26050 #define YYTEXT_POINTER 1
26051 `cat $LEX_OUTPUT_ROOT.c`
26052 _ACEOF
26053 rm -f conftest.$ac_objext conftest$ac_exeext
26054 if { (ac_try="$ac_link"
26055 case "(($ac_try" in
26056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26057   *) ac_try_echo=$ac_try;;
26058 esac
26059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26060   (eval "$ac_link") 2>conftest.er1
26061   ac_status=$?
26062   grep -v '^ *+' conftest.er1 >conftest.err
26063   rm -f conftest.er1
26064   cat conftest.err >&5
26065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066   (exit $ac_status); } && {
26067          test -z "$ac_c_werror_flag" ||
26068          test ! -s conftest.err
26069        } && test -s conftest$ac_exeext &&
26070        $as_test_x conftest$ac_exeext; then
26071   ac_cv_prog_lex_yytext_pointer=yes
26072 else
26073   echo "$as_me: failed program was:" >&5
26074 sed 's/^/| /' conftest.$ac_ext >&5
26075
26076
26077 fi
26078
26079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26080       conftest$ac_exeext conftest.$ac_ext
26081 LIBS=$ac_save_LIBS
26082
26083 fi
26084 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
26085 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
26086 if test $ac_cv_prog_lex_yytext_pointer = yes; then
26087
26088 cat >>confdefs.h <<\_ACEOF
26089 #define YYTEXT_POINTER 1
26090 _ACEOF
26091
26092 fi
26093 rm -f conftest.l $LEX_OUTPUT_ROOT.c
26094
26095 fi
26096
26097   if test "$LEX" != flex; then
26098     { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
26099 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
26100     LEX=${am_missing_run}flex
26101     LEXLIB=''
26102
26103   else
26104     if test "x2.5.30" != "x" ; then
26105                               FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
26106
26107       FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
26108       FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
26109       FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
26110
26111       WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
26112       WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
26113       WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
26114
26115       if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
26116          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED"  ||
26117          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
26118       then
26119         { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
26120 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
26121         LEX=${am_missing_run}flex
26122         LEXLIB=''
26123
26124       else
26125         { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
26126 echo "$as_me: Flex found. Parsers will get updated" >&6;}
26127       fi
26128     fi
26129   fi
26130
26131
26132 # Can we rebuild the xml-lexers from the XML specification?
26133 # if not, simply touch the flex source files (which are distributed in
26134 #  tarballs even if generated by flexml) and hope for the best.
26135 # Extract the first word of "flexml", so it can be a program name with args.
26136 set dummy flexml; ac_word=$2
26137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26139 if test "${ac_cv_prog_FLEXML+set}" = set; then
26140   echo $ECHO_N "(cached) $ECHO_C" >&6
26141 else
26142   if test -n "$FLEXML"; then
26143   ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
26144 else
26145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26146 for as_dir in $PATH
26147 do
26148   IFS=$as_save_IFS
26149   test -z "$as_dir" && as_dir=.
26150   for ac_exec_ext in '' $ac_executable_extensions; do
26151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26152     ac_cv_prog_FLEXML="`which flexml`"
26153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26154     break 2
26155   fi
26156 done
26157 done
26158 IFS=$as_save_IFS
26159
26160   test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
26161 fi
26162 fi
26163 FLEXML=$ac_cv_prog_FLEXML
26164 if test -n "$FLEXML"; then
26165   { echo "$as_me:$LINENO: result: $FLEXML" >&5
26166 echo "${ECHO_T}$FLEXML" >&6; }
26167 else
26168   { echo "$as_me:$LINENO: result: no" >&5
26169 echo "${ECHO_T}no" >&6; }
26170 fi
26171
26172
26173
26174
26175 if test x$FLEXML != xNOTFOUND; then
26176   HAVE_FLEXML_TRUE=
26177   HAVE_FLEXML_FALSE='#'
26178 else
26179   HAVE_FLEXML_TRUE='#'
26180   HAVE_FLEXML_FALSE=
26181 fi
26182
26183
26184 if test x$USE_MAINTAINER_MODE = xyes
26185 then
26186    # Check for doxygen when in maintainer mode since dist* targets fail
26187    # without it
26188    # Extract the first word of "doxygen", so it can be a program name with args.
26189 set dummy doxygen; ac_word=$2
26190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26192 if test "${ac_cv_path_DOXYGEN+set}" = set; then
26193   echo $ECHO_N "(cached) $ECHO_C" >&6
26194 else
26195   case $DOXYGEN in
26196   [\\/]* | ?:[\\/]*)
26197   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
26198   ;;
26199   *)
26200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26201 for as_dir in $PATH
26202 do
26203   IFS=$as_save_IFS
26204   test -z "$as_dir" && as_dir=.
26205   for ac_exec_ext in '' $ac_executable_extensions; do
26206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26207     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
26208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26209     break 2
26210   fi
26211 done
26212 done
26213 IFS=$as_save_IFS
26214
26215   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
26216   ;;
26217 esac
26218 fi
26219 DOXYGEN=$ac_cv_path_DOXYGEN
26220 if test -n "$DOXYGEN"; then
26221   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
26222 echo "${ECHO_T}$DOXYGEN" >&6; }
26223 else
26224   { echo "$as_me:$LINENO: result: no" >&5
26225 echo "${ECHO_T}no" >&6; }
26226 fi
26227
26228
26229    if test x$DOXYGEN = x ; then
26230      { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
26231 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
26232    { (exit 1); exit 1; }; }
26233    fi
26234 fi
26235
26236 # Can we extract really usable backtraces? (also need the popen function)
26237 # Extract the first word of "addr2line", so it can be a program name with args.
26238 set dummy addr2line; ac_word=$2
26239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26241 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
26242   echo $ECHO_N "(cached) $ECHO_C" >&6
26243 else
26244   case $ADDR2LINE in
26245   [\\/]* | ?:[\\/]*)
26246   ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
26247   ;;
26248   *)
26249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26250 for as_dir in $PATH
26251 do
26252   IFS=$as_save_IFS
26253   test -z "$as_dir" && as_dir=.
26254   for ac_exec_ext in '' $ac_executable_extensions; do
26255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26256     ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
26257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26258     break 2
26259   fi
26260 done
26261 done
26262 IFS=$as_save_IFS
26263
26264   ;;
26265 esac
26266 fi
26267 ADDR2LINE=$ac_cv_path_ADDR2LINE
26268 if test -n "$ADDR2LINE"; then
26269   { echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
26270 echo "${ECHO_T}$ADDR2LINE" >&6; }
26271 else
26272   { echo "$as_me:$LINENO: result: no" >&5
26273 echo "${ECHO_T}no" >&6; }
26274 fi
26275
26276
26277 if test x$ADDR2LINE != x ; then
26278
26279 cat >>confdefs.h <<_ACEOF
26280 #define ADDR2LINE "$ADDR2LINE"
26281 _ACEOF
26282
26283 fi
26284
26285
26286 # Can we make status line about the compilation result?
26287 # Extract the first word of "md5sum", so it can be a program name with args.
26288 set dummy md5sum; ac_word=$2
26289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26291 if test "${ac_cv_prog_MD5SUM+set}" = set; then
26292   echo $ECHO_N "(cached) $ECHO_C" >&6
26293 else
26294   if test -n "$MD5SUM"; then
26295   ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
26296 else
26297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26298 for as_dir in $PATH
26299 do
26300   IFS=$as_save_IFS
26301   test -z "$as_dir" && as_dir=.
26302   for ac_exec_ext in '' $ac_executable_extensions; do
26303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26304     ac_cv_prog_MD5SUM="`which md5sum`"
26305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26306     break 2
26307   fi
26308 done
26309 done
26310 IFS=$as_save_IFS
26311
26312 fi
26313 fi
26314 MD5SUM=$ac_cv_prog_MD5SUM
26315 if test -n "$MD5SUM"; then
26316   { echo "$as_me:$LINENO: result: $MD5SUM" >&5
26317 echo "${ECHO_T}$MD5SUM" >&6; }
26318 else
26319   { echo "$as_me:$LINENO: result: no" >&5
26320 echo "${ECHO_T}no" >&6; }
26321 fi
26322
26323
26324 if test x$MD5SUM != xno ; then
26325   build_version=`find -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
26326                  xargs cat| $MD5SUM | sed 's/ .*$//'`
26327 else
26328   build_version="no_md5sum_binary"
26329 fi
26330 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
26331
26332
26333 ###################
26334 ## Makes the output
26335 ##
26336
26337
26338 #
26339 #      examples/gras/chord/Makefile  examples/gras/chord/test_sg examples/gras/chord/test_rl
26340 #  src/amok/Makefile
26341
26342
26343   { echo "$as_me:$LINENO: result: " >&5
26344 echo "${ECHO_T}" >&6; }
26345   { echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
26346 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6; }
26347
26348
26349 # Core of the libraries
26350
26351 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
26352
26353
26354 # Tools being embeeded in gramine (stub generator)
26355 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile tools/tesh/Makefile"
26356
26357
26358
26359 # GRAMINE_CUT_BEGIN
26360
26361 # Tools NOT being embeeded in gramine
26362 ac_config_files="$ac_config_files tools/graspe-slave"
26363
26364
26365 # Testsuite
26366
26367 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage"
26368
26369
26370 # Documentation
26371 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
26372
26373
26374 # Examples
26375
26376 #      examples/gras/p2p/Makefile
26377 #      examples/gras/p2p/chord/Makefile
26378 #      examples/gras/p2p/can/Makefile
26379
26380 ac_config_files="$ac_config_files examples/Makefile examples/msg/Makefile examples/msg/basic.tesh examples/msg/small_plat.tesh examples/msg/suspend.tesh examples/msg/flexml_bypass.tesh examples/simdag/Makefile examples/simdag/test_simdag examples/gras/Makefile examples/gras/ping/Makefile examples/gras/rpc/Makefile examples/gras/timer/Makefile examples/gras/chrono/Makefile examples/gras/mutual_exclusion/simple_token/Makefile examples/gras/mmrpc/Makefile examples/gras/pmm/Makefile examples/gras/all2all/Makefile examples/amok/Makefile examples/amok/bandwidth/Makefile examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl examples/amok/saturate/Makefile examples/amok/saturate/test_sg examples/amok/saturate/test_rl"
26381
26382
26383
26384 # GRAMINE_CUT_END
26385
26386 cat >confcache <<\_ACEOF
26387 # This file is a shell script that caches the results of configure
26388 # tests run on this system so they can be shared between configure
26389 # scripts and configure runs, see configure's option --config-cache.
26390 # It is not useful on other systems.  If it contains results you don't
26391 # want to keep, you may remove or edit it.
26392 #
26393 # config.status only pays attention to the cache file if you give it
26394 # the --recheck option to rerun configure.
26395 #
26396 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26397 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26398 # following values.
26399
26400 _ACEOF
26401
26402 # The following way of writing the cache mishandles newlines in values,
26403 # but we know of no workaround that is simple, portable, and efficient.
26404 # So, we kill variables containing newlines.
26405 # Ultrix sh set writes to stderr and can't be redirected directly,
26406 # and sets the high bit in the cache file unless we assign to the vars.
26407 (
26408   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26409     eval ac_val=\$$ac_var
26410     case $ac_val in #(
26411     *${as_nl}*)
26412       case $ac_var in #(
26413       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26414 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26415       esac
26416       case $ac_var in #(
26417       _ | IFS | as_nl) ;; #(
26418       *) $as_unset $ac_var ;;
26419       esac ;;
26420     esac
26421   done
26422
26423   (set) 2>&1 |
26424     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26425     *${as_nl}ac_space=\ *)
26426       # `set' does not quote correctly, so add quotes (double-quote
26427       # substitution turns \\\\ into \\, and sed turns \\ into \).
26428       sed -n \
26429         "s/'/'\\\\''/g;
26430           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26431       ;; #(
26432     *)
26433       # `set' quotes correctly as required by POSIX, so do not add quotes.
26434       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26435       ;;
26436     esac |
26437     sort
26438 ) |
26439   sed '
26440      /^ac_cv_env_/b end
26441      t clear
26442      :clear
26443      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26444      t end
26445      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26446      :end' >>confcache
26447 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26448   if test -w "$cache_file"; then
26449     test "x$cache_file" != "x/dev/null" &&
26450       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26451 echo "$as_me: updating cache $cache_file" >&6;}
26452     cat confcache >$cache_file
26453   else
26454     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26455 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26456   fi
26457 fi
26458 rm -f confcache
26459
26460 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26461 # Let make expand exec_prefix.
26462 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26463
26464 DEFS=-DHAVE_CONFIG_H
26465
26466 ac_libobjs=
26467 ac_ltlibobjs=
26468 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26469   # 1. Remove the extension, and $U if already installed.
26470   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26471   ac_i=`echo "$ac_i" | sed "$ac_script"`
26472   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26473   #    will be set to the directory where LIBOBJS objects are built.
26474   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26475   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26476 done
26477 LIBOBJS=$ac_libobjs
26478
26479 LTLIBOBJS=$ac_ltlibobjs
26480
26481
26482 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26483   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26484 Usually this means the macro was only invoked conditionally." >&5
26485 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26486 Usually this means the macro was only invoked conditionally." >&2;}
26487    { (exit 1); exit 1; }; }
26488 fi
26489 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26490   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26491 Usually this means the macro was only invoked conditionally." >&5
26492 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26493 Usually this means the macro was only invoked conditionally." >&2;}
26494    { (exit 1); exit 1; }; }
26495 fi
26496 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26497   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26498 Usually this means the macro was only invoked conditionally." >&5
26499 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26500 Usually this means the macro was only invoked conditionally." >&2;}
26501    { (exit 1); exit 1; }; }
26502 fi
26503 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26504   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26505 Usually this means the macro was only invoked conditionally." >&5
26506 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26507 Usually this means the macro was only invoked conditionally." >&2;}
26508    { (exit 1); exit 1; }; }
26509 fi
26510 if test -z "${GRAS_ARCH_32_BITS_TRUE}" && test -z "${GRAS_ARCH_32_BITS_FALSE}"; then
26511   { { echo "$as_me:$LINENO: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
26512 Usually this means the macro was only invoked conditionally." >&5
26513 echo "$as_me: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
26514 Usually this means the macro was only invoked conditionally." >&2;}
26515    { (exit 1); exit 1; }; }
26516 fi
26517 if test -z "${USE_SIMIX_TRUE}" && test -z "${USE_SIMIX_FALSE}"; then
26518   { { echo "$as_me:$LINENO: error: conditional \"USE_SIMIX\" was never defined.
26519 Usually this means the macro was only invoked conditionally." >&5
26520 echo "$as_me: error: conditional \"USE_SIMIX\" was never defined.
26521 Usually this means the macro was only invoked conditionally." >&2;}
26522    { (exit 1); exit 1; }; }
26523 fi
26524 if test -z "${USE_GTNETS_TRUE}" && test -z "${USE_GTNETS_FALSE}"; then
26525   { { echo "$as_me:$LINENO: error: conditional \"USE_GTNETS\" was never defined.
26526 Usually this means the macro was only invoked conditionally." >&5
26527 echo "$as_me: error: conditional \"USE_GTNETS\" was never defined.
26528 Usually this means the macro was only invoked conditionally." >&2;}
26529    { (exit 1); exit 1; }; }
26530 fi
26531 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
26532   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
26533 Usually this means the macro was only invoked conditionally." >&5
26534 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
26535 Usually this means the macro was only invoked conditionally." >&2;}
26536    { (exit 1); exit 1; }; }
26537 fi
26538 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
26539   { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
26540 Usually this means the macro was only invoked conditionally." >&5
26541 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
26542 Usually this means the macro was only invoked conditionally." >&2;}
26543    { (exit 1); exit 1; }; }
26544 fi
26545 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26546   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26547 Usually this means the macro was only invoked conditionally." >&5
26548 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26549 Usually this means the macro was only invoked conditionally." >&2;}
26550    { (exit 1); exit 1; }; }
26551 fi
26552 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
26553   { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
26554 Usually this means the macro was only invoked conditionally." >&5
26555 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
26556 Usually this means the macro was only invoked conditionally." >&2;}
26557    { (exit 1); exit 1; }; }
26558 fi
26559
26560 : ${CONFIG_STATUS=./config.status}
26561 ac_clean_files_save=$ac_clean_files
26562 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26563 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26564 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26565 cat >$CONFIG_STATUS <<_ACEOF
26566 #! $SHELL
26567 # Generated by $as_me.
26568 # Run this file to recreate the current configuration.
26569 # Compiler output produced by configure, useful for debugging
26570 # configure, is in config.log if it exists.
26571
26572 debug=false
26573 ac_cs_recheck=false
26574 ac_cs_silent=false
26575 SHELL=\${CONFIG_SHELL-$SHELL}
26576 _ACEOF
26577
26578 cat >>$CONFIG_STATUS <<\_ACEOF
26579 ## --------------------- ##
26580 ## M4sh Initialization.  ##
26581 ## --------------------- ##
26582
26583 # Be more Bourne compatible
26584 DUALCASE=1; export DUALCASE # for MKS sh
26585 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26586   emulate sh
26587   NULLCMD=:
26588   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26589   # is contrary to our usage.  Disable this feature.
26590   alias -g '${1+"$@"}'='"$@"'
26591   setopt NO_GLOB_SUBST
26592 else
26593   case `(set -o) 2>/dev/null` in
26594   *posix*) set -o posix ;;
26595 esac
26596
26597 fi
26598
26599
26600
26601
26602 # PATH needs CR
26603 # Avoid depending upon Character Ranges.
26604 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26605 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26606 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26607 as_cr_digits='0123456789'
26608 as_cr_alnum=$as_cr_Letters$as_cr_digits
26609
26610 # The user is always right.
26611 if test "${PATH_SEPARATOR+set}" != set; then
26612   echo "#! /bin/sh" >conf$$.sh
26613   echo  "exit 0"   >>conf$$.sh
26614   chmod +x conf$$.sh
26615   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26616     PATH_SEPARATOR=';'
26617   else
26618     PATH_SEPARATOR=:
26619   fi
26620   rm -f conf$$.sh
26621 fi
26622
26623 # Support unset when possible.
26624 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26625   as_unset=unset
26626 else
26627   as_unset=false
26628 fi
26629
26630
26631 # IFS
26632 # We need space, tab and new line, in precisely that order.  Quoting is
26633 # there to prevent editors from complaining about space-tab.
26634 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26635 # splitting by setting IFS to empty value.)
26636 as_nl='
26637 '
26638 IFS=" ""        $as_nl"
26639
26640 # Find who we are.  Look in the path if we contain no directory separator.
26641 case $0 in
26642   *[\\/]* ) as_myself=$0 ;;
26643   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26644 for as_dir in $PATH
26645 do
26646   IFS=$as_save_IFS
26647   test -z "$as_dir" && as_dir=.
26648   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26649 done
26650 IFS=$as_save_IFS
26651
26652      ;;
26653 esac
26654 # We did not find ourselves, most probably we were run as `sh COMMAND'
26655 # in which case we are not to be found in the path.
26656 if test "x$as_myself" = x; then
26657   as_myself=$0
26658 fi
26659 if test ! -f "$as_myself"; then
26660   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26661   { (exit 1); exit 1; }
26662 fi
26663
26664 # Work around bugs in pre-3.0 UWIN ksh.
26665 for as_var in ENV MAIL MAILPATH
26666 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26667 done
26668 PS1='$ '
26669 PS2='> '
26670 PS4='+ '
26671
26672 # NLS nuisances.
26673 for as_var in \
26674   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26675   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26676   LC_TELEPHONE LC_TIME
26677 do
26678   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26679     eval $as_var=C; export $as_var
26680   else
26681     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26682   fi
26683 done
26684
26685 # Required to use basename.
26686 if expr a : '\(a\)' >/dev/null 2>&1 &&
26687    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26688   as_expr=expr
26689 else
26690   as_expr=false
26691 fi
26692
26693 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26694   as_basename=basename
26695 else
26696   as_basename=false
26697 fi
26698
26699
26700 # Name of the executable.
26701 as_me=`$as_basename -- "$0" ||
26702 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26703          X"$0" : 'X\(//\)$' \| \
26704          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26705 echo X/"$0" |
26706     sed '/^.*\/\([^/][^/]*\)\/*$/{
26707             s//\1/
26708             q
26709           }
26710           /^X\/\(\/\/\)$/{
26711             s//\1/
26712             q
26713           }
26714           /^X\/\(\/\).*/{
26715             s//\1/
26716             q
26717           }
26718           s/.*/./; q'`
26719
26720 # CDPATH.
26721 $as_unset CDPATH
26722
26723
26724
26725   as_lineno_1=$LINENO
26726   as_lineno_2=$LINENO
26727   test "x$as_lineno_1" != "x$as_lineno_2" &&
26728   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26729
26730   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26731   # uniformly replaced by the line number.  The first 'sed' inserts a
26732   # line-number line after each line using $LINENO; the second 'sed'
26733   # does the real work.  The second script uses 'N' to pair each
26734   # line-number line with the line containing $LINENO, and appends
26735   # trailing '-' during substitution so that $LINENO is not a special
26736   # case at line end.
26737   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26738   # scripts with optimization help from Paolo Bonzini.  Blame Lee
26739   # E. McMahon (1931-1989) for sed's syntax.  :-)
26740   sed -n '
26741     p
26742     /[$]LINENO/=
26743   ' <$as_myself |
26744     sed '
26745       s/[$]LINENO.*/&-/
26746       t lineno
26747       b
26748       :lineno
26749       N
26750       :loop
26751       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26752       t loop
26753       s/-\n.*//
26754     ' >$as_me.lineno &&
26755   chmod +x "$as_me.lineno" ||
26756     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26757    { (exit 1); exit 1; }; }
26758
26759   # Don't try to exec as it changes $[0], causing all sort of problems
26760   # (the dirname of $[0] is not the place where we might find the
26761   # original and so on.  Autoconf is especially sensitive to this).
26762   . "./$as_me.lineno"
26763   # Exit status is that of the last command.
26764   exit
26765 }
26766
26767
26768 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26769   as_dirname=dirname
26770 else
26771   as_dirname=false
26772 fi
26773
26774 ECHO_C= ECHO_N= ECHO_T=
26775 case `echo -n x` in
26776 -n*)
26777   case `echo 'x\c'` in
26778   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26779   *)   ECHO_C='\c';;
26780   esac;;
26781 *)
26782   ECHO_N='-n';;
26783 esac
26784
26785 if expr a : '\(a\)' >/dev/null 2>&1 &&
26786    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26787   as_expr=expr
26788 else
26789   as_expr=false
26790 fi
26791
26792 rm -f conf$$ conf$$.exe conf$$.file
26793 if test -d conf$$.dir; then
26794   rm -f conf$$.dir/conf$$.file
26795 else
26796   rm -f conf$$.dir
26797   mkdir conf$$.dir
26798 fi
26799 echo >conf$$.file
26800 if ln -s conf$$.file conf$$ 2>/dev/null; then
26801   as_ln_s='ln -s'
26802   # ... but there are two gotchas:
26803   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26804   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26805   # In both cases, we have to default to `cp -p'.
26806   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26807     as_ln_s='cp -p'
26808 elif ln conf$$.file conf$$ 2>/dev/null; then
26809   as_ln_s=ln
26810 else
26811   as_ln_s='cp -p'
26812 fi
26813 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26814 rmdir conf$$.dir 2>/dev/null
26815
26816 if mkdir -p . 2>/dev/null; then
26817   as_mkdir_p=:
26818 else
26819   test -d ./-p && rmdir ./-p
26820   as_mkdir_p=false
26821 fi
26822
26823 if test -x / >/dev/null 2>&1; then
26824   as_test_x='test -x'
26825 else
26826   if ls -dL / >/dev/null 2>&1; then
26827     as_ls_L_option=L
26828   else
26829     as_ls_L_option=
26830   fi
26831   as_test_x='
26832     eval sh -c '\''
26833       if test -d "$1"; then
26834         test -d "$1/.";
26835       else
26836         case $1 in
26837         -*)set "./$1";;
26838         esac;
26839         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26840         ???[sx]*):;;*)false;;esac;fi
26841     '\'' sh
26842   '
26843 fi
26844 as_executable_p=$as_test_x
26845
26846 # Sed expression to map a string onto a valid CPP name.
26847 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26848
26849 # Sed expression to map a string onto a valid variable name.
26850 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26851
26852
26853 exec 6>&1
26854
26855 # Save the log message, to keep $[0] and so on meaningful, and to
26856 # report actual input values of CONFIG_FILES etc. instead of their
26857 # values after options handling.
26858 ac_log="
26859 This file was extended by simgrid $as_me 3.3-cvs, which was
26860 generated by GNU Autoconf 2.61.  Invocation command line was
26861
26862   CONFIG_FILES    = $CONFIG_FILES
26863   CONFIG_HEADERS  = $CONFIG_HEADERS
26864   CONFIG_LINKS    = $CONFIG_LINKS
26865   CONFIG_COMMANDS = $CONFIG_COMMANDS
26866   $ $0 $@
26867
26868 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26869 "
26870
26871 _ACEOF
26872
26873 cat >>$CONFIG_STATUS <<_ACEOF
26874 # Files that config.status was made for.
26875 config_files="$ac_config_files"
26876 config_headers="$ac_config_headers"
26877 config_commands="$ac_config_commands"
26878
26879 _ACEOF
26880
26881 cat >>$CONFIG_STATUS <<\_ACEOF
26882 ac_cs_usage="\
26883 \`$as_me' instantiates files from templates according to the
26884 current configuration.
26885
26886 Usage: $0 [OPTIONS] [FILE]...
26887
26888   -h, --help       print this help, then exit
26889   -V, --version    print version number and configuration settings, then exit
26890   -q, --quiet      do not print progress messages
26891   -d, --debug      don't remove temporary files
26892       --recheck    update $as_me by reconfiguring in the same conditions
26893   --file=FILE[:TEMPLATE]
26894                    instantiate the configuration file FILE
26895   --header=FILE[:TEMPLATE]
26896                    instantiate the configuration header FILE
26897
26898 Configuration files:
26899 $config_files
26900
26901 Configuration headers:
26902 $config_headers
26903
26904 Configuration commands:
26905 $config_commands
26906
26907 Report bugs to <bug-autoconf@gnu.org>."
26908
26909 _ACEOF
26910 cat >>$CONFIG_STATUS <<_ACEOF
26911 ac_cs_version="\\
26912 simgrid config.status 3.3-cvs
26913 configured by $0, generated by GNU Autoconf 2.61,
26914   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26915
26916 Copyright (C) 2006 Free Software Foundation, Inc.
26917 This config.status script is free software; the Free Software Foundation
26918 gives unlimited permission to copy, distribute and modify it."
26919
26920 ac_pwd='$ac_pwd'
26921 srcdir='$srcdir'
26922 INSTALL='$INSTALL'
26923 _ACEOF
26924
26925 cat >>$CONFIG_STATUS <<\_ACEOF
26926 # If no file are specified by the user, then we need to provide default
26927 # value.  By we need to know if files were specified by the user.
26928 ac_need_defaults=:
26929 while test $# != 0
26930 do
26931   case $1 in
26932   --*=*)
26933     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26934     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26935     ac_shift=:
26936     ;;
26937   *)
26938     ac_option=$1
26939     ac_optarg=$2
26940     ac_shift=shift
26941     ;;
26942   esac
26943
26944   case $ac_option in
26945   # Handling of the options.
26946   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26947     ac_cs_recheck=: ;;
26948   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26949     echo "$ac_cs_version"; exit ;;
26950   --debug | --debu | --deb | --de | --d | -d )
26951     debug=: ;;
26952   --file | --fil | --fi | --f )
26953     $ac_shift
26954     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26955     ac_need_defaults=false;;
26956   --header | --heade | --head | --hea )
26957     $ac_shift
26958     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26959     ac_need_defaults=false;;
26960   --he | --h)
26961     # Conflict between --help and --header
26962     { echo "$as_me: error: ambiguous option: $1
26963 Try \`$0 --help' for more information." >&2
26964    { (exit 1); exit 1; }; };;
26965   --help | --hel | -h )
26966     echo "$ac_cs_usage"; exit ;;
26967   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26968   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26969     ac_cs_silent=: ;;
26970
26971   # This is an error.
26972   -*) { echo "$as_me: error: unrecognized option: $1
26973 Try \`$0 --help' for more information." >&2
26974    { (exit 1); exit 1; }; } ;;
26975
26976   *) ac_config_targets="$ac_config_targets $1"
26977      ac_need_defaults=false ;;
26978
26979   esac
26980   shift
26981 done
26982
26983 ac_configure_extra_args=
26984
26985 if $ac_cs_silent; then
26986   exec 6>/dev/null
26987   ac_configure_extra_args="$ac_configure_extra_args --silent"
26988 fi
26989
26990 _ACEOF
26991 cat >>$CONFIG_STATUS <<_ACEOF
26992 if \$ac_cs_recheck; then
26993   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26994   CONFIG_SHELL=$SHELL
26995   export CONFIG_SHELL
26996   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26997 fi
26998
26999 _ACEOF
27000 cat >>$CONFIG_STATUS <<\_ACEOF
27001 exec 5>>config.log
27002 {
27003   echo
27004   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27005 ## Running $as_me. ##
27006 _ASBOX
27007   echo "$ac_log"
27008 } >&5
27009
27010 _ACEOF
27011 cat >>$CONFIG_STATUS <<_ACEOF
27012 #
27013 # INIT-COMMANDS
27014 #
27015 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27016
27017 _ACEOF
27018
27019 cat >>$CONFIG_STATUS <<\_ACEOF
27020
27021 # Handling of arguments.
27022 for ac_config_target in $ac_config_targets
27023 do
27024   case $ac_config_target in
27025     "src/gras_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
27026     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27027     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27028     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
27029     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27030     "src/ucontext_stack.h") CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
27031     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
27032     "tools/gras/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
27033     "tools/tesh/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tesh/Makefile" ;;
27034     "tools/graspe-slave") CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
27035     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
27036     "testsuite/run_tests") CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
27037     "testsuite/gras/trp_tcp_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_tcp_usage" ;;
27038     "testsuite/gras/trp_file_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
27039     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27040     "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
27041     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
27042     "examples/msg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
27043     "examples/msg/basic.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/basic.tesh" ;;
27044     "examples/msg/small_plat.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/small_plat.tesh" ;;
27045     "examples/msg/suspend.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/suspend.tesh" ;;
27046     "examples/msg/flexml_bypass.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/flexml_bypass.tesh" ;;
27047     "examples/simdag/Makefile") CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
27048     "examples/simdag/test_simdag") CONFIG_FILES="$CONFIG_FILES examples/simdag/test_simdag" ;;
27049     "examples/gras/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
27050     "examples/gras/ping/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
27051     "examples/gras/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
27052     "examples/gras/timer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
27053     "examples/gras/chrono/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
27054     "examples/gras/mutual_exclusion/simple_token/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
27055     "examples/gras/mmrpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
27056     "examples/gras/pmm/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
27057     "examples/gras/all2all/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
27058     "examples/amok/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
27059     "examples/amok/bandwidth/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/Makefile" ;;
27060     "examples/amok/bandwidth/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_sg" ;;
27061     "examples/amok/bandwidth/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_rl" ;;
27062     "examples/amok/saturate/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/Makefile" ;;
27063     "examples/amok/saturate/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_sg" ;;
27064     "examples/amok/saturate/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_rl" ;;
27065
27066   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27067 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27068    { (exit 1); exit 1; }; };;
27069   esac
27070 done
27071
27072
27073 # If the user did not use the arguments to specify the items to instantiate,
27074 # then the envvar interface is used.  Set only those that are not.
27075 # We use the long form for the default assignment because of an extremely
27076 # bizarre bug on SunOS 4.1.3.
27077 if $ac_need_defaults; then
27078   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27079   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27080   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27081 fi
27082
27083 # Have a temporary directory for convenience.  Make it in the build tree
27084 # simply because there is no reason against having it here, and in addition,
27085 # creating and moving files from /tmp can sometimes cause problems.
27086 # Hook for its removal unless debugging.
27087 # Note that there is a small window in which the directory will not be cleaned:
27088 # after its creation but before its name has been assigned to `$tmp'.
27089 $debug ||
27090 {
27091   tmp=
27092   trap 'exit_status=$?
27093   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27094 ' 0
27095   trap '{ (exit 1); exit 1; }' 1 2 13 15
27096 }
27097 # Create a (secure) tmp directory for tmp files.
27098
27099 {
27100   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27101   test -n "$tmp" && test -d "$tmp"
27102 }  ||
27103 {
27104   tmp=./conf$$-$RANDOM
27105   (umask 077 && mkdir "$tmp")
27106 } ||
27107 {
27108    echo "$me: cannot create a temporary directory in ." >&2
27109    { (exit 1); exit 1; }
27110 }
27111
27112 #
27113 # Set up the sed scripts for CONFIG_FILES section.
27114 #
27115
27116 # No need to generate the scripts if there are no CONFIG_FILES.
27117 # This happens for instance when ./config.status config.h
27118 if test -n "$CONFIG_FILES"; then
27119
27120 _ACEOF
27121
27122
27123
27124 ac_delim='%!_!# '
27125 for ac_last_try in false false false false false :; do
27126   cat >conf$$subs.sed <<_ACEOF
27127 SHELL!$SHELL$ac_delim
27128 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27129 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27130 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27131 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27132 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27133 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27134 exec_prefix!$exec_prefix$ac_delim
27135 prefix!$prefix$ac_delim
27136 program_transform_name!$program_transform_name$ac_delim
27137 bindir!$bindir$ac_delim
27138 sbindir!$sbindir$ac_delim
27139 libexecdir!$libexecdir$ac_delim
27140 datarootdir!$datarootdir$ac_delim
27141 datadir!$datadir$ac_delim
27142 sysconfdir!$sysconfdir$ac_delim
27143 sharedstatedir!$sharedstatedir$ac_delim
27144 localstatedir!$localstatedir$ac_delim
27145 includedir!$includedir$ac_delim
27146 oldincludedir!$oldincludedir$ac_delim
27147 docdir!$docdir$ac_delim
27148 infodir!$infodir$ac_delim
27149 htmldir!$htmldir$ac_delim
27150 dvidir!$dvidir$ac_delim
27151 pdfdir!$pdfdir$ac_delim
27152 psdir!$psdir$ac_delim
27153 libdir!$libdir$ac_delim
27154 localedir!$localedir$ac_delim
27155 mandir!$mandir$ac_delim
27156 DEFS!$DEFS$ac_delim
27157 ECHO_C!$ECHO_C$ac_delim
27158 ECHO_N!$ECHO_N$ac_delim
27159 ECHO_T!$ECHO_T$ac_delim
27160 LIBS!$LIBS$ac_delim
27161 build_alias!$build_alias$ac_delim
27162 host_alias!$host_alias$ac_delim
27163 target_alias!$target_alias$ac_delim
27164 build!$build$ac_delim
27165 build_cpu!$build_cpu$ac_delim
27166 build_vendor!$build_vendor$ac_delim
27167 build_os!$build_os$ac_delim
27168 host!$host$ac_delim
27169 host_cpu!$host_cpu$ac_delim
27170 host_vendor!$host_vendor$ac_delim
27171 host_os!$host_os$ac_delim
27172 target!$target$ac_delim
27173 target_cpu!$target_cpu$ac_delim
27174 target_vendor!$target_vendor$ac_delim
27175 target_os!$target_os$ac_delim
27176 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27177 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27178 INSTALL_DATA!$INSTALL_DATA$ac_delim
27179 CYGPATH_W!$CYGPATH_W$ac_delim
27180 PACKAGE!$PACKAGE$ac_delim
27181 VERSION!$VERSION$ac_delim
27182 ACLOCAL!$ACLOCAL$ac_delim
27183 AUTOCONF!$AUTOCONF$ac_delim
27184 AUTOMAKE!$AUTOMAKE$ac_delim
27185 AUTOHEADER!$AUTOHEADER$ac_delim
27186 MAKEINFO!$MAKEINFO$ac_delim
27187 install_sh!$install_sh$ac_delim
27188 STRIP!$STRIP$ac_delim
27189 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27190 mkdir_p!$mkdir_p$ac_delim
27191 AWK!$AWK$ac_delim
27192 SET_MAKE!$SET_MAKE$ac_delim
27193 am__leading_dot!$am__leading_dot$ac_delim
27194 AMTAR!$AMTAR$ac_delim
27195 am__tar!$am__tar$ac_delim
27196 am__untar!$am__untar$ac_delim
27197 CC!$CC$ac_delim
27198 CFLAGS!$CFLAGS$ac_delim
27199 LDFLAGS!$LDFLAGS$ac_delim
27200 CPPFLAGS!$CPPFLAGS$ac_delim
27201 ac_ct_CC!$ac_ct_CC$ac_delim
27202 EXEEXT!$EXEEXT$ac_delim
27203 OBJEXT!$OBJEXT$ac_delim
27204 DEPDIR!$DEPDIR$ac_delim
27205 am__include!$am__include$ac_delim
27206 am__quote!$am__quote$ac_delim
27207 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27208 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27209 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27210 CCDEPMODE!$CCDEPMODE$ac_delim
27211 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27212 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27213 GREP!$GREP$ac_delim
27214 EGREP!$EGREP$ac_delim
27215 LN_S!$LN_S$ac_delim
27216 ECHO!$ECHO$ac_delim
27217 AR!$AR$ac_delim
27218 RANLIB!$RANLIB$ac_delim
27219 DLLTOOL!$DLLTOOL$ac_delim
27220 AS!$AS$ac_delim
27221 OBJDUMP!$OBJDUMP$ac_delim
27222 CPP!$CPP$ac_delim
27223 CXX!$CXX$ac_delim
27224 _ACEOF
27225
27226   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27227     break
27228   elif $ac_last_try; then
27229     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27230 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27231    { (exit 1); exit 1; }; }
27232   else
27233     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27234   fi
27235 done
27236
27237 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27238 if test -n "$ac_eof"; then
27239   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27240   ac_eof=`expr $ac_eof + 1`
27241 fi
27242
27243 cat >>$CONFIG_STATUS <<_ACEOF
27244 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27245 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27246 _ACEOF
27247 sed '
27248 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27249 s/^/s,@/; s/!/@,|#_!!_#|/
27250 :n
27251 t n
27252 s/'"$ac_delim"'$/,g/; t
27253 s/$/\\/; p
27254 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27255 ' >>$CONFIG_STATUS <conf$$subs.sed
27256 rm -f conf$$subs.sed
27257 cat >>$CONFIG_STATUS <<_ACEOF
27258 CEOF$ac_eof
27259 _ACEOF
27260
27261
27262 ac_delim='%!_!# '
27263 for ac_last_try in false false false false false :; do
27264   cat >conf$$subs.sed <<_ACEOF
27265 CXXFLAGS!$CXXFLAGS$ac_delim
27266 ac_ct_CXX!$ac_ct_CXX$ac_delim
27267 CXXDEPMODE!$CXXDEPMODE$ac_delim
27268 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27269 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27270 CXXCPP!$CXXCPP$ac_delim
27271 F77!$F77$ac_delim
27272 FFLAGS!$FFLAGS$ac_delim
27273 ac_ct_F77!$ac_ct_F77$ac_delim
27274 LIBTOOL!$LIBTOOL$ac_delim
27275 LIBOBJS!$LIBOBJS$ac_delim
27276 GRAS_ARCH_32_BITS_TRUE!$GRAS_ARCH_32_BITS_TRUE$ac_delim
27277 GRAS_ARCH_32_BITS_FALSE!$GRAS_ARCH_32_BITS_FALSE$ac_delim
27278 PTH_STACK_GROWTH!$PTH_STACK_GROWTH$ac_delim
27279 pth_skaddr_makecontext!$pth_skaddr_makecontext$ac_delim
27280 pth_sksize_makecontext!$pth_sksize_makecontext$ac_delim
27281 USE_SIMIX_TRUE!$USE_SIMIX_TRUE$ac_delim
27282 USE_SIMIX_FALSE!$USE_SIMIX_FALSE$ac_delim
27283 GTNETS_CFLAGS!$GTNETS_CFLAGS$ac_delim
27284 GTNETS_LDFLAGS!$GTNETS_LDFLAGS$ac_delim
27285 USE_GTNETS_TRUE!$USE_GTNETS_TRUE$ac_delim
27286 USE_GTNETS_FALSE!$USE_GTNETS_FALSE$ac_delim
27287 HAVE_SDP_TRUE!$HAVE_SDP_TRUE$ac_delim
27288 HAVE_SDP_FALSE!$HAVE_SDP_FALSE$ac_delim
27289 SIMGRID_DEP!$SIMGRID_DEP$ac_delim
27290 AM_CFLAGS!$AM_CFLAGS$ac_delim
27291 GRAS_DEP!$GRAS_DEP$ac_delim
27292 GRAMINE_MODE_TRUE!$GRAMINE_MODE_TRUE$ac_delim
27293 GRAMINE_MODE_FALSE!$GRAMINE_MODE_FALSE$ac_delim
27294 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
27295 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
27296 MAINT!$MAINT$ac_delim
27297 LD_DYNAMIC_FLAGS!$LD_DYNAMIC_FLAGS$ac_delim
27298 abs_builddir!$abs_builddir$ac_delim
27299 abs_srcdir!$abs_srcdir$ac_delim
27300 abs_top_builddir!$abs_top_builddir$ac_delim
27301 abs_top_srcdir!$abs_top_srcdir$ac_delim
27302 BASH!$BASH$ac_delim
27303 WARNING!$WARNING$ac_delim
27304 LEX!$LEX$ac_delim
27305 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
27306 LEXLIB!$LEXLIB$ac_delim
27307 FLEXML!$FLEXML$ac_delim
27308 HAVE_FLEXML_TRUE!$HAVE_FLEXML_TRUE$ac_delim
27309 HAVE_FLEXML_FALSE!$HAVE_FLEXML_FALSE$ac_delim
27310 DOXYGEN!$DOXYGEN$ac_delim
27311 ADDR2LINE!$ADDR2LINE$ac_delim
27312 ac_configure_args!$ac_configure_args$ac_delim
27313 MD5SUM!$MD5SUM$ac_delim
27314 build_id!$build_id$ac_delim
27315 LTLIBOBJS!$LTLIBOBJS$ac_delim
27316 _ACEOF
27317
27318   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then
27319     break
27320   elif $ac_last_try; then
27321     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27322 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27323    { (exit 1); exit 1; }; }
27324   else
27325     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27326   fi
27327 done
27328
27329 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27330 if test -n "$ac_eof"; then
27331   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27332   ac_eof=`expr $ac_eof + 1`
27333 fi
27334
27335 cat >>$CONFIG_STATUS <<_ACEOF
27336 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27337 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27338 _ACEOF
27339 sed '
27340 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27341 s/^/s,@/; s/!/@,|#_!!_#|/
27342 :n
27343 t n
27344 s/'"$ac_delim"'$/,g/; t
27345 s/$/\\/; p
27346 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27347 ' >>$CONFIG_STATUS <conf$$subs.sed
27348 rm -f conf$$subs.sed
27349 cat >>$CONFIG_STATUS <<_ACEOF
27350 :end
27351 s/|#_!!_#|//g
27352 CEOF$ac_eof
27353 _ACEOF
27354
27355
27356 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27357 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27358 # trailing colons and then remove the whole line if VPATH becomes empty
27359 # (actually we leave an empty line to preserve line numbers).
27360 if test "x$srcdir" = x.; then
27361   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27362 s/:*\$(srcdir):*/:/
27363 s/:*\${srcdir}:*/:/
27364 s/:*@srcdir@:*/:/
27365 s/^\([^=]*=[     ]*\):*/\1/
27366 s/:*$//
27367 s/^[^=]*=[       ]*$//
27368 }'
27369 fi
27370
27371 cat >>$CONFIG_STATUS <<\_ACEOF
27372 fi # test -n "$CONFIG_FILES"
27373
27374
27375 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
27376 do
27377   case $ac_tag in
27378   :[FHLC]) ac_mode=$ac_tag; continue;;
27379   esac
27380   case $ac_mode$ac_tag in
27381   :[FHL]*:*);;
27382   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27383 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27384    { (exit 1); exit 1; }; };;
27385   :[FH]-) ac_tag=-:-;;
27386   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27387   esac
27388   ac_save_IFS=$IFS
27389   IFS=:
27390   set x $ac_tag
27391   IFS=$ac_save_IFS
27392   shift
27393   ac_file=$1
27394   shift
27395
27396   case $ac_mode in
27397   :L) ac_source=$1;;
27398   :[FH])
27399     ac_file_inputs=
27400     for ac_f
27401     do
27402       case $ac_f in
27403       -) ac_f="$tmp/stdin";;
27404       *) # Look for the file first in the build tree, then in the source tree
27405          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27406          # because $ac_f cannot contain `:'.
27407          test -f "$ac_f" ||
27408            case $ac_f in
27409            [\\/$]*) false;;
27410            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27411            esac ||
27412            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27413 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27414    { (exit 1); exit 1; }; };;
27415       esac
27416       ac_file_inputs="$ac_file_inputs $ac_f"
27417     done
27418
27419     # Let's still pretend it is `configure' which instantiates (i.e., don't
27420     # use $as_me), people would be surprised to read:
27421     #    /* config.h.  Generated by config.status.  */
27422     configure_input="Generated from "`IFS=:
27423           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27424     if test x"$ac_file" != x-; then
27425       configure_input="$ac_file.  $configure_input"
27426       { echo "$as_me:$LINENO: creating $ac_file" >&5
27427 echo "$as_me: creating $ac_file" >&6;}
27428     fi
27429
27430     case $ac_tag in
27431     *:-:* | *:-) cat >"$tmp/stdin";;
27432     esac
27433     ;;
27434   esac
27435
27436   ac_dir=`$as_dirname -- "$ac_file" ||
27437 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27438          X"$ac_file" : 'X\(//\)[^/]' \| \
27439          X"$ac_file" : 'X\(//\)$' \| \
27440          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27441 echo X"$ac_file" |
27442     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27443             s//\1/
27444             q
27445           }
27446           /^X\(\/\/\)[^/].*/{
27447             s//\1/
27448             q
27449           }
27450           /^X\(\/\/\)$/{
27451             s//\1/
27452             q
27453           }
27454           /^X\(\/\).*/{
27455             s//\1/
27456             q
27457           }
27458           s/.*/./; q'`
27459   { as_dir="$ac_dir"
27460   case $as_dir in #(
27461   -*) as_dir=./$as_dir;;
27462   esac
27463   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27464     as_dirs=
27465     while :; do
27466       case $as_dir in #(
27467       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27468       *) as_qdir=$as_dir;;
27469       esac
27470       as_dirs="'$as_qdir' $as_dirs"
27471       as_dir=`$as_dirname -- "$as_dir" ||
27472 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27473          X"$as_dir" : 'X\(//\)[^/]' \| \
27474          X"$as_dir" : 'X\(//\)$' \| \
27475          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27476 echo X"$as_dir" |
27477     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27478             s//\1/
27479             q
27480           }
27481           /^X\(\/\/\)[^/].*/{
27482             s//\1/
27483             q
27484           }
27485           /^X\(\/\/\)$/{
27486             s//\1/
27487             q
27488           }
27489           /^X\(\/\).*/{
27490             s//\1/
27491             q
27492           }
27493           s/.*/./; q'`
27494       test -d "$as_dir" && break
27495     done
27496     test -z "$as_dirs" || eval "mkdir $as_dirs"
27497   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27498 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27499    { (exit 1); exit 1; }; }; }
27500   ac_builddir=.
27501
27502 case "$ac_dir" in
27503 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27504 *)
27505   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27506   # A ".." for each directory in $ac_dir_suffix.
27507   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27508   case $ac_top_builddir_sub in
27509   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27510   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27511   esac ;;
27512 esac
27513 ac_abs_top_builddir=$ac_pwd
27514 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27515 # for backward compatibility:
27516 ac_top_builddir=$ac_top_build_prefix
27517
27518 case $srcdir in
27519   .)  # We are building in place.
27520     ac_srcdir=.
27521     ac_top_srcdir=$ac_top_builddir_sub
27522     ac_abs_top_srcdir=$ac_pwd ;;
27523   [\\/]* | ?:[\\/]* )  # Absolute name.
27524     ac_srcdir=$srcdir$ac_dir_suffix;
27525     ac_top_srcdir=$srcdir
27526     ac_abs_top_srcdir=$srcdir ;;
27527   *) # Relative name.
27528     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27529     ac_top_srcdir=$ac_top_build_prefix$srcdir
27530     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27531 esac
27532 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27533
27534
27535   case $ac_mode in
27536   :F)
27537   #
27538   # CONFIG_FILE
27539   #
27540
27541   case $INSTALL in
27542   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27543   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27544   esac
27545 _ACEOF
27546
27547 cat >>$CONFIG_STATUS <<\_ACEOF
27548 # If the template does not know about datarootdir, expand it.
27549 # FIXME: This hack should be removed a few years after 2.60.
27550 ac_datarootdir_hack=; ac_datarootdir_seen=
27551
27552 case `sed -n '/datarootdir/ {
27553   p
27554   q
27555 }
27556 /@datadir@/p
27557 /@docdir@/p
27558 /@infodir@/p
27559 /@localedir@/p
27560 /@mandir@/p
27561 ' $ac_file_inputs` in
27562 *datarootdir*) ac_datarootdir_seen=yes;;
27563 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27564   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27565 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27566 _ACEOF
27567 cat >>$CONFIG_STATUS <<_ACEOF
27568   ac_datarootdir_hack='
27569   s&@datadir@&$datadir&g
27570   s&@docdir@&$docdir&g
27571   s&@infodir@&$infodir&g
27572   s&@localedir@&$localedir&g
27573   s&@mandir@&$mandir&g
27574     s&\\\${datarootdir}&$datarootdir&g' ;;
27575 esac
27576 _ACEOF
27577
27578 # Neutralize VPATH when `$srcdir' = `.'.
27579 # Shell code in configure.ac might set extrasub.
27580 # FIXME: do we really want to maintain this feature?
27581 cat >>$CONFIG_STATUS <<_ACEOF
27582   sed "$ac_vpsub
27583 $extrasub
27584 _ACEOF
27585 cat >>$CONFIG_STATUS <<\_ACEOF
27586 :t
27587 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27588 s&@configure_input@&$configure_input&;t t
27589 s&@top_builddir@&$ac_top_builddir_sub&;t t
27590 s&@srcdir@&$ac_srcdir&;t t
27591 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27592 s&@top_srcdir@&$ac_top_srcdir&;t t
27593 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27594 s&@builddir@&$ac_builddir&;t t
27595 s&@abs_builddir@&$ac_abs_builddir&;t t
27596 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27597 s&@INSTALL@&$ac_INSTALL&;t t
27598 $ac_datarootdir_hack
27599 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27600
27601 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27602   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27603   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27604   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27605 which seems to be undefined.  Please make sure it is defined." >&5
27606 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27607 which seems to be undefined.  Please make sure it is defined." >&2;}
27608
27609   rm -f "$tmp/stdin"
27610   case $ac_file in
27611   -) cat "$tmp/out"; rm -f "$tmp/out";;
27612   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27613   esac
27614  ;;
27615   :H)
27616   #
27617   # CONFIG_HEADER
27618   #
27619 _ACEOF
27620
27621 # Transform confdefs.h into a sed script `conftest.defines', that
27622 # substitutes the proper values into config.h.in to produce config.h.
27623 rm -f conftest.defines conftest.tail
27624 # First, append a space to every undef/define line, to ease matching.
27625 echo 's/$/ /' >conftest.defines
27626 # Then, protect against being on the right side of a sed subst, or in
27627 # an unquoted here document, in config.status.  If some macros were
27628 # called several times there might be several #defines for the same
27629 # symbol, which is useless.  But do not sort them, since the last
27630 # AC_DEFINE must be honored.
27631 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27632 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27633 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27634 # PARAMS is the parameter list in the macro definition--in most cases, it's
27635 # just an empty string.
27636 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
27637 ac_dB='\\)[      (].*,\\1define\\2'
27638 ac_dC=' '
27639 ac_dD=' ,'
27640
27641 uniq confdefs.h |
27642   sed -n '
27643         t rset
27644         :rset
27645         s/^[     ]*#[    ]*define[       ][      ]*//
27646         t ok
27647         d
27648         :ok
27649         s/[\\&,]/\\&/g
27650         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27651         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27652   ' >>conftest.defines
27653
27654 # Remove the space that was appended to ease matching.
27655 # Then replace #undef with comments.  This is necessary, for
27656 # example, in the case of _POSIX_SOURCE, which is predefined and required
27657 # on some systems where configure will not decide to define it.
27658 # (The regexp can be short, since the line contains either #define or #undef.)
27659 echo 's/ $//
27660 s,^[     #]*u.*,/* & */,' >>conftest.defines
27661
27662 # Break up conftest.defines:
27663 ac_max_sed_lines=50
27664
27665 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27666 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27667 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27668 # et cetera.
27669 ac_in='$ac_file_inputs'
27670 ac_out='"$tmp/out1"'
27671 ac_nxt='"$tmp/out2"'
27672
27673 while :
27674 do
27675   # Write a here document:
27676     cat >>$CONFIG_STATUS <<_ACEOF
27677     # First, check the format of the line:
27678     cat >"\$tmp/defines.sed" <<\\CEOF
27679 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
27680 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
27681 b
27682 :def
27683 _ACEOF
27684   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27685   echo 'CEOF
27686     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27687   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27688   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27689   grep . conftest.tail >/dev/null || break
27690   rm -f conftest.defines
27691   mv conftest.tail conftest.defines
27692 done
27693 rm -f conftest.defines conftest.tail
27694
27695 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27696 cat >>$CONFIG_STATUS <<\_ACEOF
27697   if test x"$ac_file" != x-; then
27698     echo "/* $configure_input  */" >"$tmp/config.h"
27699     cat "$ac_result" >>"$tmp/config.h"
27700     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27701       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27702 echo "$as_me: $ac_file is unchanged" >&6;}
27703     else
27704       rm -f $ac_file
27705       mv "$tmp/config.h" $ac_file
27706     fi
27707   else
27708     echo "/* $configure_input  */"
27709     cat "$ac_result"
27710   fi
27711   rm -f "$tmp/out12"
27712 # Compute $ac_file's index in $config_headers.
27713 _am_stamp_count=1
27714 for _am_header in $config_headers :; do
27715   case $_am_header in
27716     $ac_file | $ac_file:* )
27717       break ;;
27718     * )
27719       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27720   esac
27721 done
27722 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
27723 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27724          X$ac_file : 'X\(//\)[^/]' \| \
27725          X$ac_file : 'X\(//\)$' \| \
27726          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
27727 echo X$ac_file |
27728     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27729             s//\1/
27730             q
27731           }
27732           /^X\(\/\/\)[^/].*/{
27733             s//\1/
27734             q
27735           }
27736           /^X\(\/\/\)$/{
27737             s//\1/
27738             q
27739           }
27740           /^X\(\/\).*/{
27741             s//\1/
27742             q
27743           }
27744           s/.*/./; q'`/stamp-h$_am_stamp_count
27745  ;;
27746
27747   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27748 echo "$as_me: executing $ac_file commands" >&6;}
27749  ;;
27750   esac
27751
27752
27753   case $ac_file$ac_mode in
27754     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27755   # Strip MF so we end up with the name of the file.
27756   mf=`echo "$mf" | sed -e 's/:.*$//'`
27757   # Check whether this is an Automake generated Makefile or not.
27758   # We used to match only the files named `Makefile.in', but
27759   # some people rename them; so instead we look at the file content.
27760   # Grep'ing the first line is not enough: some people post-process
27761   # each Makefile.in and add a new line on top of each file to say so.
27762   # So let's grep whole file.
27763   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27764     dirpart=`$as_dirname -- "$mf" ||
27765 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27766          X"$mf" : 'X\(//\)[^/]' \| \
27767          X"$mf" : 'X\(//\)$' \| \
27768          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27769 echo X"$mf" |
27770     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27771             s//\1/
27772             q
27773           }
27774           /^X\(\/\/\)[^/].*/{
27775             s//\1/
27776             q
27777           }
27778           /^X\(\/\/\)$/{
27779             s//\1/
27780             q
27781           }
27782           /^X\(\/\).*/{
27783             s//\1/
27784             q
27785           }
27786           s/.*/./; q'`
27787   else
27788     continue
27789   fi
27790   # Extract the definition of DEPDIR, am__include, and am__quote
27791   # from the Makefile without running `make'.
27792   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27793   test -z "$DEPDIR" && continue
27794   am__include=`sed -n 's/^am__include = //p' < "$mf"`
27795   test -z "am__include" && continue
27796   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27797   # When using ansi2knr, U may be empty or an underscore; expand it
27798   U=`sed -n 's/^U = //p' < "$mf"`
27799   # Find all dependency output files, they are included files with
27800   # $(DEPDIR) in their names.  We invoke sed twice because it is the
27801   # simplest approach to changing $(DEPDIR) to its actual value in the
27802   # expansion.
27803   for file in `sed -n "
27804     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27805        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27806     # Make sure the directory exists.
27807     test -f "$dirpart/$file" && continue
27808     fdir=`$as_dirname -- "$file" ||
27809 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27810          X"$file" : 'X\(//\)[^/]' \| \
27811          X"$file" : 'X\(//\)$' \| \
27812          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27813 echo X"$file" |
27814     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27815             s//\1/
27816             q
27817           }
27818           /^X\(\/\/\)[^/].*/{
27819             s//\1/
27820             q
27821           }
27822           /^X\(\/\/\)$/{
27823             s//\1/
27824             q
27825           }
27826           /^X\(\/\).*/{
27827             s//\1/
27828             q
27829           }
27830           s/.*/./; q'`
27831     { as_dir=$dirpart/$fdir
27832   case $as_dir in #(
27833   -*) as_dir=./$as_dir;;
27834   esac
27835   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27836     as_dirs=
27837     while :; do
27838       case $as_dir in #(
27839       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27840       *) as_qdir=$as_dir;;
27841       esac
27842       as_dirs="'$as_qdir' $as_dirs"
27843       as_dir=`$as_dirname -- "$as_dir" ||
27844 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27845          X"$as_dir" : 'X\(//\)[^/]' \| \
27846          X"$as_dir" : 'X\(//\)$' \| \
27847          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27848 echo X"$as_dir" |
27849     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27850             s//\1/
27851             q
27852           }
27853           /^X\(\/\/\)[^/].*/{
27854             s//\1/
27855             q
27856           }
27857           /^X\(\/\/\)$/{
27858             s//\1/
27859             q
27860           }
27861           /^X\(\/\).*/{
27862             s//\1/
27863             q
27864           }
27865           s/.*/./; q'`
27866       test -d "$as_dir" && break
27867     done
27868     test -z "$as_dirs" || eval "mkdir $as_dirs"
27869   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27870 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27871    { (exit 1); exit 1; }; }; }
27872     # echo "creating $dirpart/$file"
27873     echo '# dummy' > "$dirpart/$file"
27874   done
27875 done
27876  ;;
27877     "tools/graspe-slave":F)
27878     for file in                                                 \
27879      tools/graspe-slave           tools/graspe-master           \
27880     ; do                                                        \
27881       test -e $file && chmod +x $file;                          \
27882     done
27883  ;;
27884     "testsuite/Makefile":F)
27885     for file in                                                 \
27886      testsuite/run_tests                                        \
27887      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27888     ; do                                                        \
27889       test -e $file && chmod +x $file;                          \
27890     done
27891  ;;
27892     "testsuite/run_tests":F)
27893     for file in                                                 \
27894      testsuite/run_tests                                        \
27895      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27896     ; do                                                        \
27897       test -e $file && chmod +x $file;                          \
27898     done
27899  ;;
27900     "testsuite/gras/trp_tcp_usage":F)
27901     for file in                                                 \
27902      testsuite/run_tests                                        \
27903      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27904     ; do                                                        \
27905       test -e $file && chmod +x $file;                          \
27906     done
27907  ;;
27908     "testsuite/gras/trp_file_usage":F)
27909     for file in                                                 \
27910      testsuite/run_tests                                        \
27911      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27912     ; do                                                        \
27913       test -e $file && chmod +x $file;                          \
27914     done
27915  ;;
27916     "examples/Makefile":F)
27917     for file in                                                 \
27918      \
27919      examples/msg/run_msg_test                                  \
27920      examples/simdag/test_simdag                                \
27921     ; do                                                        \
27922       test -e $file && chmod +x $file;                          \
27923     done
27924  ;;
27925     "examples/msg/Makefile":F)
27926     for file in                                                 \
27927      \
27928      examples/msg/run_msg_test                                  \
27929      examples/simdag/test_simdag                                \
27930     ; do                                                        \
27931       test -e $file && chmod +x $file;                          \
27932     done
27933  ;;
27934     "examples/msg/basic.tesh":F)
27935     for file in                                                 \
27936      \
27937      examples/msg/run_msg_test                                  \
27938      examples/simdag/test_simdag                                \
27939     ; do                                                        \
27940       test -e $file && chmod +x $file;                          \
27941     done
27942  ;;
27943     "examples/msg/small_plat.tesh":F)
27944     for file in                                                 \
27945      \
27946      examples/msg/run_msg_test                                  \
27947      examples/simdag/test_simdag                                \
27948     ; do                                                        \
27949       test -e $file && chmod +x $file;                          \
27950     done
27951  ;;
27952     "examples/msg/suspend.tesh":F)
27953     for file in                                                 \
27954      \
27955      examples/msg/run_msg_test                                  \
27956      examples/simdag/test_simdag                                \
27957     ; do                                                        \
27958       test -e $file && chmod +x $file;                          \
27959     done
27960  ;;
27961     "examples/msg/flexml_bypass.tesh":F)
27962     for file in                                                 \
27963      \
27964      examples/msg/run_msg_test                                  \
27965      examples/simdag/test_simdag                                \
27966     ; do                                                        \
27967       test -e $file && chmod +x $file;                          \
27968     done
27969  ;;
27970     "examples/simdag/Makefile":F)
27971     for file in                                                 \
27972      \
27973      examples/msg/run_msg_test                                  \
27974      examples/simdag/test_simdag                                \
27975     ; do                                                        \
27976       test -e $file && chmod +x $file;                          \
27977     done
27978  ;;
27979     "examples/simdag/test_simdag":F)
27980     for file in                                                 \
27981      \
27982      examples/msg/run_msg_test                                  \
27983      examples/simdag/test_simdag                                \
27984     ; do                                                        \
27985       test -e $file && chmod +x $file;                          \
27986     done
27987  ;;
27988     "examples/gras/Makefile":F)
27989     for file in                                                 \
27990      \
27991      examples/msg/run_msg_test                                  \
27992      examples/simdag/test_simdag                                \
27993     ; do                                                        \
27994       test -e $file && chmod +x $file;                          \
27995     done
27996  ;;
27997     "examples/gras/ping/Makefile":F)
27998     for file in                                                 \
27999      \
28000      examples/msg/run_msg_test                                  \
28001      examples/simdag/test_simdag                                \
28002     ; do                                                        \
28003       test -e $file && chmod +x $file;                          \
28004     done
28005  ;;
28006     "examples/gras/rpc/Makefile":F)
28007     for file in                                                 \
28008      \
28009      examples/msg/run_msg_test                                  \
28010      examples/simdag/test_simdag                                \
28011     ; do                                                        \
28012       test -e $file && chmod +x $file;                          \
28013     done
28014  ;;
28015     "examples/gras/timer/Makefile":F)
28016     for file in                                                 \
28017      \
28018      examples/msg/run_msg_test                                  \
28019      examples/simdag/test_simdag                                \
28020     ; do                                                        \
28021       test -e $file && chmod +x $file;                          \
28022     done
28023  ;;
28024     "examples/gras/chrono/Makefile":F)
28025     for file in                                                 \
28026      \
28027      examples/msg/run_msg_test                                  \
28028      examples/simdag/test_simdag                                \
28029     ; do                                                        \
28030       test -e $file && chmod +x $file;                          \
28031     done
28032  ;;
28033     "examples/gras/mutual_exclusion/simple_token/Makefile":F)
28034     for file in                                                 \
28035      \
28036      examples/msg/run_msg_test                                  \
28037      examples/simdag/test_simdag                                \
28038     ; do                                                        \
28039       test -e $file && chmod +x $file;                          \
28040     done
28041  ;;
28042     "examples/gras/mmrpc/Makefile":F)
28043     for file in                                                 \
28044      \
28045      examples/msg/run_msg_test                                  \
28046      examples/simdag/test_simdag                                \
28047     ; do                                                        \
28048       test -e $file && chmod +x $file;                          \
28049     done
28050  ;;
28051     "examples/gras/pmm/Makefile":F)
28052     for file in                                                 \
28053      \
28054      examples/msg/run_msg_test                                  \
28055      examples/simdag/test_simdag                                \
28056     ; do                                                        \
28057       test -e $file && chmod +x $file;                          \
28058     done
28059  ;;
28060     "examples/gras/all2all/Makefile":F)
28061     for file in                                                 \
28062      \
28063      examples/msg/run_msg_test                                  \
28064      examples/simdag/test_simdag                                \
28065     ; do                                                        \
28066       test -e $file && chmod +x $file;                          \
28067     done
28068  ;;
28069     "examples/amok/Makefile":F)
28070     for file in                                                 \
28071      \
28072      examples/msg/run_msg_test                                  \
28073      examples/simdag/test_simdag                                \
28074     ; do                                                        \
28075       test -e $file && chmod +x $file;                          \
28076     done
28077  ;;
28078     "examples/amok/bandwidth/Makefile":F)
28079     for file in                                                 \
28080      \
28081      examples/msg/run_msg_test                                  \
28082      examples/simdag/test_simdag                                \
28083     ; do                                                        \
28084       test -e $file && chmod +x $file;                          \
28085     done
28086  ;;
28087     "examples/amok/bandwidth/test_sg":F)
28088     for file in                                                 \
28089      \
28090      examples/msg/run_msg_test                                  \
28091      examples/simdag/test_simdag                                \
28092     ; do                                                        \
28093       test -e $file && chmod +x $file;                          \
28094     done
28095  ;;
28096     "examples/amok/bandwidth/test_rl":F)
28097     for file in                                                 \
28098      \
28099      examples/msg/run_msg_test                                  \
28100      examples/simdag/test_simdag                                \
28101     ; do                                                        \
28102       test -e $file && chmod +x $file;                          \
28103     done
28104  ;;
28105     "examples/amok/saturate/Makefile":F)
28106     for file in                                                 \
28107      \
28108      examples/msg/run_msg_test                                  \
28109      examples/simdag/test_simdag                                \
28110     ; do                                                        \
28111       test -e $file && chmod +x $file;                          \
28112     done
28113  ;;
28114     "examples/amok/saturate/test_sg":F)
28115     for file in                                                 \
28116      \
28117      examples/msg/run_msg_test                                  \
28118      examples/simdag/test_simdag                                \
28119     ; do                                                        \
28120       test -e $file && chmod +x $file;                          \
28121     done
28122  ;;
28123     "examples/amok/saturate/test_rl":F)
28124     for file in                                                 \
28125      \
28126      examples/msg/run_msg_test                                  \
28127      examples/simdag/test_simdag                                \
28128     ; do                                                        \
28129       test -e $file && chmod +x $file;                          \
28130     done
28131  ;;
28132
28133   esac
28134 done # for ac_tag
28135
28136
28137 { (exit 0); exit 0; }
28138 _ACEOF
28139 chmod +x $CONFIG_STATUS
28140 ac_clean_files=$ac_clean_files_save
28141
28142
28143 # configure is writing to config.log, and then calls config.status.
28144 # config.status does its own redirection, appending to config.log.
28145 # Unfortunately, on DOS this fails, as config.log is still kept open
28146 # by configure, so config.status won't be able to write to it; its
28147 # output is simply discarded.  So we exec the FD to /dev/null,
28148 # effectively closing config.log, so it can be properly (re)opened and
28149 # appended to by config.status.  When coming back to configure, we
28150 # need to make the FD available again.
28151 if test "$no_create" != yes; then
28152   ac_cs_success=:
28153   ac_config_status_args=
28154   test "$silent" = yes &&
28155     ac_config_status_args="$ac_config_status_args --quiet"
28156   exec 5>/dev/null
28157   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28158   exec 5>>config.log
28159   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28160   # would make configure fail if this is the last instruction.
28161   $ac_cs_success || { (exit 1); exit 1; }
28162 fi
28163
28164
28165 echo "
28166
28167 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
28168
28169         Compiler:        ${CC} (version: ${GCC_VERSION})
28170
28171         CFlags:          ${CFLAGS}
28172         CPPFlags:        ${CPPFLAGS}
28173         LDFlags:         ${LDFLAGS}
28174
28175         Context backend: ${with_context}
28176 "
28177
28178 if test -e CVS && test x$USE_MAINTAINER_MODE != xyes ; then
28179   echo "WARNING:"
28180   echo "WARNING: you seem to compile the CVS version without the maintainer mode."
28181   echo "WARNING: You won't be able to build archives that way (make dist is likely to fail). "
28182   echo "WARNING: If you want to enable the maintainer mode, juste specify it like this:"
28183   echo "WARNING:"
28184   echo "WARNING: ./configure '--enable-maintainer-mode' $ac_configure_args"
28185   echo "WARNING:"
28186 fi
28187 echo $build_id > stamp.configure
28188
28189 exit 0;