/[gcl]/gcl/configure
ViewVC logotype

Diff of /gcl/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.179 by camm, Thu Jun 16 17:02:15 2005 UTC revision 1.180 by camm, Thu Jun 16 21:42:46 2005 UTC
# Line 4291  EOF Line 4291  EOF
4291    
4292    
4293    
 echo $ac_n "checking "finding default linker script"""... $ac_c" 1>&6  
 echo "configure:4296: checking "finding default linker script"" >&5  
 touch unixport/gcl.script  
 echo "int main() {return 0;}" >foo.c  
 $CC -Wl,--verbose foo.c -o foo 2>&1 | \  
     awk '/==================================================/ {i=1-i;next} {if (i) print}' >gcl.script  
 rm -rf foo.c foo  
 if test "`cat gcl.script | wc -l`" != "0" ; then  
   echo "$ac_t""got it" 1>&6  
   echo $ac_n "checking "trying to lower heap start"""... $ac_c" 1>&6  
 echo "configure:4305: checking "trying to lower heap start"" >&5  
   cp gcl.script gcl.script.def  
   cat gcl.script.def | awk '/SIZEOF_HEADERS/ {gsub("0x...","0x000",$0);} {print}' |  sed 's,\. = 0x10000000;,/*. = 0x10000000;*/,1' >gcl.script  
   if diff gcl.script.def gcl.script >/dev/null 2>&1 ; then  
      echo "$ac_t"""cannot or not needed"" 1>&6  
      rm -f gcl.script gcl.script.def  
   else  
      echo $ac_n "checking "linker script"""... $ac_c" 1>&6  
 echo "configure:4313: checking "linker script"" >&5  
      echo "int main() {return 0;}" >foo.c  
      if $CC -Wl,-T gcl.script foo.c -o foo >/dev/null 2>&1 && ./foo >/dev/null 2>&1 ; then  
           echo "$ac_t"""done"" 1>&6  
           rm -f gcl.script.def  
           LDFLAGS="$LDFLAGS -Wl,-T gcl.script "  
           cp gcl.script unixport  
      else  
           echo "$ac_t"""failed"" 1>&6  
           rm -f gcl.script gcl.script.def  
      fi    
      rm -rf foo.c foo  
   fi  
 else  
   echo "$ac_t"""none"" 1>&6  
   rm -f gcl.script  
 fi  
   
 old_LDFLAGS="$LDFLAGS"  
 LDFLAGS="$LDFLAGS $TLDFLAGS"  
4294  echo $ac_n "checking "finding DBEGIN"""... $ac_c" 1>&6  echo $ac_n "checking "finding DBEGIN"""... $ac_c" 1>&6
4295  echo "configure:4334: checking "finding DBEGIN"" >&5  echo "configure:4296: checking "finding DBEGIN"" >&5
4296  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4297    dbegin=0    dbegin=0
4298  else  else
4299    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4300  #line 4339 "configure"  #line 4301 "configure"
4301  #include "confdefs.h"  #include "confdefs.h"
4302  #include <stdio.h>  #include <stdio.h>
4303              #include <stdlib.h>              #include <stdlib.h>
# Line 4374  if (!syscall(SYS_personality,PER_LINUX)) Line 4336  if (!syscall(SYS_personality,PER_LINUX))
4336    return 0;    return 0;
4337  }  }
4338  EOF  EOF
4339  if { (eval echo configure:4378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4340  then  then
4341    dbegin=`cat conftest1`    dbegin=`cat conftest1`
4342  else  else
# Line 4386  fi Line 4348  fi
4348  rm -fr conftest*  rm -fr conftest*
4349  fi  fi
4350    
4351  cat >> confdefs.h <<EOF  #AC_DEFINE_UNQUOTED(DBEGIN,$dbegin)
4352  #define DBEGIN $dbegin \  echo "$ac_t""$dbegin" 1>&6
 /* where data begins */  
   
 EOF  
   
 echo "$ac_t""got $dbegin" 1>&6  
 LDFLAGS="$old_LDFLAGS"  
   
 echo $ac_n "checking "for heap shared library heap ceiling"""... $ac_c" 1>&6  
 echo "configure:4400: checking "for heap shared library heap ceiling"" >&5  
 echo "int main() {return 0;}" >foo.c  
 $CC foo.c -o foo  
 heap_ceiling=`ldd foo | tail -n 1 | awk '{print $NF}' | tr -d '()'`  
 heap_ceiling=`awk 'END {if (h<d) print 0; else print h}' h=$heap_ceiling d=$dbegin configure.in`  
 echo "$ac_t"""got $heap_ceiling"" 1>&6  
 cat >> confdefs.h <<EOF  
 #define SHARED_LIB_HEAP_CEILING $heap_ceiling  
 EOF  
   
4353    
4354  # pagewidth  # pagewidth
4355  echo $ac_n "checking for pagewidth""... $ac_c" 1>&6  echo $ac_n "checking for pagewidth""... $ac_c" 1>&6
4356  echo "configure:4413: checking for pagewidth" >&5  echo "configure:4357: checking for pagewidth" >&5
4357  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4358    PAGEWIDTH=0    PAGEWIDTH=0
4359  else  else
4360    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4361  #line 4418 "configure"  #line 4362 "configure"
4362  #include "confdefs.h"  #include "confdefs.h"
4363  #include <stdio.h>  #include <stdio.h>
4364              #include <unistd.h>              #include <unistd.h>
# Line 4424  int main() {size_t i=getpagesize(),j; Line 4368  int main() {size_t i=getpagesize(),j;
4368              fprintf(fp,"%u",j);              fprintf(fp,"%u",j);
4369              return 0;}              return 0;}
4370  EOF  EOF
4371  if { (eval echo configure:4428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4372  then  then
4373    PAGEWIDTH=`cat conftest1`    PAGEWIDTH=`cat conftest1`
4374  else  else
# Line 4443  EOF Line 4387  EOF
4387    
4388    
4389    
4390  echo $ac_n "checking "for maxpage revision"""... $ac_c" 1>&6  
4391  echo "configure:4448: checking "for maxpage revision"" >&5  echo $ac_n "checking "finding CSTACK_ADDRESS"""... $ac_c" 1>&6
4392    echo "configure:4393: checking "finding CSTACK_ADDRESS"" >&5
4393  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4394    tmp_maxpage=0    cstack_address=0
4395  else  else
4396    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4397  #line 4453 "configure"  #line 4398 "configure"
4398  #include "confdefs.h"  #include "confdefs.h"
4399  #include <stdio.h>  #include <stdio.h>
4400  main()  main()
4401  {  {
4402    char *b;    void *v ;
   unsigned long i,j;  
4403    FILE *fp = fopen("conftest1","w");    FILE *fp = fopen("conftest1","w");
4404    j=((unsigned long)$enable_maxpage <<$PAGEWIDTH) + $dbegin;    unsigned long i,j;
4405    j=$heap_ceiling && j>$heap_ceiling ? $heap_ceiling : j;  
4406    j-=$dbegin;    j=1;
4407    for (i=1;i<=j;i<<=1);    j<<=$PAGEWIDTH;
4408    if (i>j) i>>=1;    j<<=4;
4409    fprintf(fp,"%ld",i>>$PAGEWIDTH);    j--;
4410      i=(unsigned long)&v;
4411      i+=j;
4412      i&=~j;
4413      fprintf(fp,"0x%lx",i-1);
4414    fclose(fp);    fclose(fp);
4415    return 0;    return 0;
4416  }  }
4417  EOF  EOF
4418  if { (eval echo configure:4471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4419  then  then
4420    tmp_maxpage=`cat conftest1`    cstack_address=`cat conftest1`
4421  else  else
4422    echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
4423    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
4424    rm -fr conftest*    rm -fr conftest*
4425    tmp_maxpage=0    cstack_address=0
4426  fi  fi
4427  rm -fr conftest*  rm -fr conftest*
4428  fi  fi
4429    
 if test "$tmp_maxpage" != "$enable_maxpage" ; then  
    enable_maxpage=$tmp_maxpage  
    echo "$ac_t"""got $enable_maxpage"" 1>&6  
 #   AC_DEFINE_UNQUOTED(MAXPAGE,$enable_maxpage)  
 else  
    echo "$ac_t"""$enable_maxpage is OK"" 1>&6  
 fi  
4430  cat >> confdefs.h <<EOF  cat >> confdefs.h <<EOF
4431  #define MAXPAGE $enable_maxpage  #define CSTACK_ADDRESS $cstack_address
4432  EOF  EOF
4433    
4434    echo "$ac_t""$cstack_address" 1>&6
4435    
4436  echo $ac_n "checking "finding CSTACK_ADDRESS"""... $ac_c" 1>&6  echo $ac_n "checking "NEG_CSTACK_ADDRESS"""... $ac_c" 1>&6
4437  echo "configure:4496: checking "finding CSTACK_ADDRESS"" >&5  echo "configure:4438: checking "NEG_CSTACK_ADDRESS"" >&5
4438  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4439    cstack_address=0    echo "$ac_t""no" 1>&6
4440  else  else
4441    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4442  #line 4501 "configure"  #line 4443 "configure"
4443  #include "confdefs.h"  #include "confdefs.h"
4444  #include <stdio.h>  #include <stdio.h>
4445  main()  main()
4446  {  {
4447    void *v ;    return (long)$cstack_address<0 ? 0 : -1;
   FILE *fp = fopen("conftest1","w");  
   unsigned long i,j,k;  
   
   for (i=2,k=1;i;k=i,i<<=1);  
   for (i=j=k;j && i<(unsigned long)&v;j>>=1,i|=j);  
   i&=-0x1000;  
   fprintf(fp,"%ld",i-1);  
   fclose(fp);  
   return 0;  
4448  }  }
4449  EOF  EOF
4450  if { (eval echo configure:4518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4451  then  then
4452    cstack_address=`cat conftest1`    echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
4453    #define NEG_CSTACK_ADDRESS 1
4454    EOF
4455    
4456  else  else
4457    echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
4458    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
4459    rm -fr conftest*    rm -fr conftest*
4460    cstack_address=0    echo "$ac_t""no" 1>&6
4461  fi  fi
4462  rm -fr conftest*  rm -fr conftest*
4463  fi  fi
4464    
 cat >> confdefs.h <<EOF  
 #define CSTACK_ADDRESS $cstack_address  
 EOF  
4465    
 echo "$ac_t""got $cstack_address" 1>&6  
4466    
4467  echo $ac_n "checking "finding CSTACK_ALIGNMENT"""... $ac_c" 1>&6  echo $ac_n "checking "finding CSTACK_ALIGNMENT"""... $ac_c" 1>&6
4468  echo "configure:4537: checking "finding CSTACK_ALIGNMENT"" >&5  echo "configure:4469: checking "finding CSTACK_ALIGNMENT"" >&5
4469  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4470    cstack_alignment=0    cstack_alignment=0
4471  else  else
4472    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4473  #line 4542 "configure"  #line 4474 "configure"
4474  #include "confdefs.h"  #include "confdefs.h"
4475  #include <stdio.h>  #include <stdio.h>
4476  main()  main()
# Line 4555  main() Line 4487  main()
4487    return 0;    return 0;
4488  }  }
4489  EOF  EOF
4490  if { (eval echo configure:4559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4491  then  then
4492    cstack_alignment=`cat conftest1`    cstack_alignment=`cat conftest1`
4493  else  else
# Line 4568  rm -fr conftest* Line 4500  rm -fr conftest*
4500  fi  fi
4501    
4502  cat >> confdefs.h <<EOF  cat >> confdefs.h <<EOF
4503  #define CSTACK_ALIGNMENT $cstack_alignment \  #define CSTACK_ALIGNMENT $cstack_alignment
   
4504  EOF  EOF
4505    
4506  echo "$ac_t""got $cstack_alignment" 1>&6  echo "$ac_t""$cstack_alignment" 1>&6
4507    
4508  echo $ac_n "checking "finding CSTACK_DIRECTION"""... $ac_c" 1>&6  echo $ac_n "checking "finding CSTACK_DIRECTION"""... $ac_c" 1>&6
4509  echo "configure:4579: checking "finding CSTACK_DIRECTION"" >&5  echo "configure:4510: checking "finding CSTACK_DIRECTION"" >&5
4510  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4511    cstack_direction=0    cstack_direction=0
4512  else  else
4513    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4514  #line 4584 "configure"  #line 4515 "configure"
4515  #include "confdefs.h"  #include "confdefs.h"
4516  #include <stdio.h>  #include <stdio.h>
4517  void *  void *
# Line 4599  main() Line 4530  main()
4530    return 0;    return 0;
4531  }  }
4532  EOF  EOF
4533  if { (eval echo configure:4603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4534  then  then
4535    cstack_direction=`cat conftest1`    cstack_direction=`cat conftest1`
4536  else  else
# Line 4612  rm -fr conftest* Line 4543  rm -fr conftest*
4543  fi  fi
4544    
4545  cat >> confdefs.h <<EOF  cat >> confdefs.h <<EOF
4546  #define CSTACK_DIRECTION $cstack_direction \  #define CSTACK_DIRECTION $cstack_direction
4547    EOF
4548    
4549    echo "$ac_t""$cstack_direction" 1>&6
4550    
4551    
4552    ## Don't lower heap start if C stack is below default dbegin, as we're
4553    # likely to get more heap this way.
4554    if awk 'END {exit (unsigned long)d<(unsigned long)c ? 0 : 1}'d=$dbegin c=$cstack_address /dev/null ; then
4555    
4556       echo $ac_n "checking "finding default linker script"""... $ac_c" 1>&6
4557    echo "configure:4558: checking "finding default linker script"" >&5
4558       touch unixport/gcl.script
4559       echo "int main() {return 0;}" >foo.c
4560       $CC -Wl,--verbose foo.c -o foo 2>&1 | \
4561           awk '/==================================================/ {i=1-i;next} {if (i) print}' >gcl.script
4562       rm -rf foo.c foo
4563       if test "`cat gcl.script | wc -l`" != "0" ; then
4564          echo "$ac_t""got it" 1>&6
4565          echo $ac_n "checking "trying to lower heap start"""... $ac_c" 1>&6
4566    echo "configure:4567: checking "trying to lower heap start"" >&5
4567          cp gcl.script gcl.script.def
4568          cat gcl.script.def | awk '/SIZEOF_HEADERS/ {gsub("0x...","0x000",$0);} {print}' |  sed 's,\. = 0x10000000;,/*. = 0x10000000;*/,1' >gcl.script
4569          if diff gcl.script.def gcl.script >/dev/null 2>&1 ; then
4570             echo "$ac_t"""cannot or not needed"" 1>&6
4571             rm -f gcl.script gcl.script.def
4572          else
4573             echo $ac_n "checking "linker script"""... $ac_c" 1>&6
4574    echo "configure:4575: checking "linker script"" >&5
4575             echo "int main() {return 0;}" >foo.c
4576             if $CC -Wl,-T gcl.script foo.c -o foo >/dev/null 2>&1 && ./foo >/dev/null 2>&1 ; then
4577                echo "$ac_t"""done"" 1>&6
4578                rm -f gcl.script.def
4579                LDFLAGS="$LDFLAGS -Wl,-T gcl.script "
4580                cp gcl.script unixport
4581             else
4582                 echo "$ac_t"""failed"" 1>&6
4583                 rm -f gcl.script gcl.script.def
4584             fi      
4585             rm -rf foo.c foo
4586          fi
4587       else
4588         echo "$ac_t"""none"" 1>&6
4589         rm -f gcl.script
4590       fi
4591    
4592       old_LDFLAGS="$LDFLAGS"
4593       LDFLAGS="$LDFLAGS $TLDFLAGS"
4594       echo $ac_n "checking "revised DBEGIN"""... $ac_c" 1>&6
4595    echo "configure:4596: checking "revised DBEGIN"" >&5
4596       if test "$cross_compiling" = yes; then
4597      dbegin=0
4598    else
4599      cat > conftest.$ac_ext <<EOF
4600    #line 4601 "configure"
4601    #include "confdefs.h"
4602    #include <stdio.h>
4603                   #include <stdlib.h>
4604                   #ifdef NEED_NONRANDOM_SBRK
4605                   #include <syscall.h>
4606                   #include <linux/personality.h>
4607                   #include <unistd.h>
4608                   #endif
4609                   int
4610                   main(int argc,char * argv[])
4611                   {
4612                     char *b;
4613                     FILE *fp;
4614    
4615                     #ifdef NEED_NONRANDOM_SBRK
4616                     #if SIZEOF_LONG == 4
4617                     if (!syscall(SYS_personality,PER_LINUX32))
4618                     #else
4619                     if (!syscall(SYS_personality,PER_LINUX))
4620                     #endif
4621                        execvp(argv[0],argv);
4622                     #endif  
4623                     b = (void *) malloc(1000);
4624                     fp = fopen("conftest1","w");
4625    
4626                     #ifdef _WIN32
4627                       fprintf ( fp,"0x%lx", 0x1a000000 );  /* Windows custom allocation from this point up */
4628                     #else
4629                     #if defined (__APPLE__) && defined (__MACH__)
4630                       fprintf(fp,"get_dbegin()");
4631                     #else
4632                       fprintf(fp,"0x%lx",((unsigned long) b) & ~(unsigned long)0xffffff);
4633                     #endif
4634                     #endif
4635                       fclose(fp);
4636                       return 0;}
4637    EOF
4638    if { (eval echo configure:4639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4639    then
4640      dbegin=`cat conftest1`
4641    else
4642      echo "configure: failed program was:" >&5
4643      cat conftest.$ac_ext >&5
4644      rm -fr conftest*
4645      dbegin=0
4646    fi
4647    rm -fr conftest*
4648    fi
4649    
4650       cat >> confdefs.h <<EOF
4651    #define DBEGIN $dbegin
4652    EOF
4653    
4654       echo "$ac_t""got $dbegin" 1>&6
4655       LDFLAGS="$old_LDFLAGS"
4656    
4657    fi
4658    
4659    echo $ac_n "checking "for shared library/C stack ceiling to heap"""... $ac_c" 1>&6
4660    echo "configure:4661: checking "for shared library/C stack ceiling to heap"" >&5
4661    echo "int main() {return 0;}" >foo.c
4662    $CC foo.c -o foo
4663    heap_ceiling=`ldd foo | tail -n 1 | awk '{print $NF}' | tr -d '()'`
4664    heap_ceiling=`awk 'END {if ((unsigned long)h<(unsigned long)c) print h; else print c}' h=$heap_ceiling c=$cstack_address /dev/null`
4665    heap_ceiling=`awk 'END {if ((unsigned long)h<(unsigned long)d) print 0; else print h}' h=$heap_ceiling d=$dbegin /dev/null`
4666    echo "$ac_t""$heap_ceiling" 1>&6
4667    cat >> confdefs.h <<EOF
4668    #define SHARED_LIB_HEAP_CEILING $heap_ceiling
4669    EOF
4670    
4671    
4672    echo $ac_n "checking "for maxpage revision"""... $ac_c" 1>&6
4673    echo "configure:4674: checking "for maxpage revision"" >&5
4674    if test "$cross_compiling" = yes; then
4675      tmp_maxpage=0
4676    else
4677      cat > conftest.$ac_ext <<EOF
4678    #line 4679 "configure"
4679    #include "confdefs.h"
4680    #include <stdio.h>
4681    main()
4682    {
4683      char *b;
4684      unsigned long i,j;
4685      FILE *fp = fopen("conftest1","w");
4686      j=((unsigned long)$enable_maxpage <<$PAGEWIDTH) + $dbegin;
4687      j=$heap_ceiling && j>$heap_ceiling ? $heap_ceiling : j;
4688      j-=$dbegin;
4689      for (i=1;i<=j;i<<=1);
4690      if (i>j) i>>=1;
4691      fprintf(fp,"%ld",i>>$PAGEWIDTH);
4692      fclose(fp);
4693      return 0;
4694    }
4695    EOF
4696    if { (eval echo configure:4697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4697    then
4698      tmp_maxpage=`cat conftest1`
4699    else
4700      echo "configure: failed program was:" >&5
4701      cat conftest.$ac_ext >&5
4702      rm -fr conftest*
4703      tmp_maxpage=0
4704    fi
4705    rm -fr conftest*
4706    fi
4707    
4708    if test "$tmp_maxpage" != "$enable_maxpage" ; then
4709       enable_maxpage=$tmp_maxpage
4710       echo "$ac_t""$enable_maxpage" 1>&6
4711    else
4712       echo "$ac_t"""$enable_maxpage is OK"" 1>&6
4713    fi
4714    cat >> confdefs.h <<EOF
4715    #define MAXPAGE $enable_maxpage
4716  EOF  EOF
4717    
 echo "$ac_t""got $cstack_direction" 1>&6  
4718    
4719  echo $ac_n "checking "for C stack size floor from heap """... $ac_c" 1>&6  echo $ac_n "checking "for C stack size floor from heap """... $ac_c" 1>&6
4720  echo "configure:4623: checking "for C stack size floor from heap "" >&5  echo "configure:4721: checking "for C stack size floor from heap "" >&5
4721  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4722    tmp_cssize=0    tmp_cssize=0
4723  else  else
4724    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4725  #line 4628 "configure"  #line 4726 "configure"
4726  #include "confdefs.h"  #include "confdefs.h"
4727  #include <stdio.h>  #include <stdio.h>
4728  int  int
# Line 4634  main() Line 4732  main()
4732    FILE *fp = fopen("conftest1","w");    FILE *fp = fopen("conftest1","w");
4733    unsigned long j,k;    unsigned long j,k;
4734        
4735    j=((unsigned long)&b) + $cstack_direction * $enable_cssize;    j=$cstack_address + $cstack_direction * $enable_cssize;
4736    k=($dbegin + ((unsigned long)$enable_maxpage << $PAGEWIDTH));    k=($dbegin + ((unsigned long)$enable_maxpage << $PAGEWIDTH));
4737    j=abs(j-((unsigned long)&b))!=$enable_cssize || j<k ? k : j;    j=abs(j-$cstack_address)!=$enable_cssize || (j<k && $dbegin < $cstack_address) ? k : j;
4738    j-=((unsigned long)&b);    j-=$cstack_address;
4739    j*=$cstack_direction;    j*=$cstack_direction;
4740    fprintf(fp,"%lu",j);    fprintf(fp,"%lu",j);
4741    fclose(fp);    fclose(fp);
4742    return 0;    return 0;
4743  }  }
4744  EOF  EOF
4745  if { (eval echo configure:4648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4746  then  then
4747    tmp_cssize=`cat conftest1`    tmp_cssize=`cat conftest1`
4748  else  else
# Line 4663  if test "$tmp_cssize" != "$enable_cssize Line 4761  if test "$tmp_cssize" != "$enable_cssize
4761  else  else
4762     echo "$ac_t"""$enable_cssize is OK"" 1>&6     echo "$ac_t"""$enable_cssize is OK"" 1>&6
4763  fi  fi
4764  cat >> confdefs.h <<EOF  #AC_DEFINE_UNQUOTED(CSSIZE,$enable_cssize)
 #define CSSIZE $enable_cssize  
 EOF  
   
4765    
4766  echo $ac_n "checking "for C stack size limit from fixnum table """... $ac_c" 1>&6  echo $ac_n "checking "for C stack size limit from fixnum table """... $ac_c" 1>&6
4767  echo "configure:4673: checking "for C stack size limit from fixnum table "" >&5  echo "configure:4768: checking "for C stack size limit from fixnum table "" >&5
4768  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4769    tmp_cssize=0    tmp_cssize=0
4770  else  else
4771    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4772  #line 4678 "configure"  #line 4773 "configure"
4773  #include "confdefs.h"  #include "confdefs.h"
4774  #include <stdio.h>  #include <stdio.h>
4775  int  int
# Line 4688  main() Line 4783  main()
4783    if ($cstack_direction>0) {    if ($cstack_direction>0) {
4784      k=$cstack_address + ((-(unsigned long)$cstack_address)>>1);      k=$cstack_address + ((-(unsigned long)$cstack_address)>>1);
4785      j=j<$cstack_address || j > k ? k : j;      j=j<$cstack_address || j > k ? k : j;
4786        j=$cstack_address < $dbegin && j > $dbegin ? $dbegin : j;
4787    }    }
4788    j-=$cstack_address;    j-=$cstack_address;
4789    j*=$cstack_direction;    j*=$cstack_direction;
# Line 4696  main() Line 4792  main()
4792    return 0;    return 0;
4793  }  }
4794  EOF  EOF
4795  if { (eval echo configure:4700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4796  then  then
4797    tmp_cssize=`cat conftest1`    tmp_cssize=`cat conftest1`
4798  else  else
# Line 4719  cat >> confdefs.h <<EOF Line 4815  cat >> confdefs.h <<EOF
4815  EOF  EOF
4816    
4817    
4818  cstack_top=0  mem_top=0
4819  cstack_range=0  mem_range=0
4820  echo $ac_n "checking "finding cstack top"""... $ac_c" 1>&6  echo $ac_n "checking "mem top"""... $ac_c" 1>&6
4821  echo "configure:4726: checking "finding cstack top"" >&5  echo "configure:4822: checking "mem top"" >&5
4822  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4823    cstack_top=0    mem_top=0
4824  else  else
4825    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4826  #line 4731 "configure"  #line 4827 "configure"
4827  #include "confdefs.h"  #include "confdefs.h"
4828  #include <stdio.h>  #include <stdio.h>
4829  int  int
4830  main()  main()
4831  {  {
4832    void *v;    void *v;
4833    unsigned long i,j,k;    unsigned long i,j,k,l,m;
4834    FILE *fp = fopen("conftest1","w");    FILE *fp = fopen("conftest1","w");
4835    
4836    for (i=2,k=1;i;k=i,i<<=1);    for (i=2,k=1;i;k=i,i<<=1);
4837    for (i=j=k;j && i<(unsigned long)&v + ($cstack_direction==1 ? $enable_cssize : 0);j>>=1,i|=j);    l=$cstack_address + ($cstack_direction==1 ? $enable_cssize : 0);
4838    fprintf(fp,"0x%lx",i&-0x1000);    m=$dbegin + ((unsigned long)$enable_maxpage << $PAGEWIDTH);
4839      l=l<m ? m : l;
4840      for (i=j=k;j && i<l;j>>=1,i|=j);
4841      j=1;
4842      j<<=$PAGEWIDTH;
4843      j<<=4;
4844      j--;
4845      i+=j;
4846      i&=~j;
4847      fprintf(fp,"0x%lx",i);
4848    fclose(fp);    fclose(fp);
4849    return 0;    return 0;}
 }  
4850  EOF  EOF
4851  if { (eval echo configure:4748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4852  then  then
4853    cstack_top=`cat conftest1`    mem_top=`cat conftest1`
4854  else  else
4855    echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
4856    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
4857    rm -fr conftest*    rm -fr conftest*
4858    cstack_top=0    mem_top=0
4859  fi  fi
4860  rm -fr conftest*  rm -fr conftest*
4861  fi  fi
4862    
4863  echo "$ac_t""got $cstack_top" 1>&6  echo "$ac_t""got $mem_top" 1>&6
4864  if test "$cstack_top" != "0" ; then  if test "$mem_top" != "0" ; then
4865     echo $ac_n "checking "finding over cstack half range"""... $ac_c" 1>&6     echo $ac_n "checking "finding upper mem half range"""... $ac_c" 1>&6
4866  echo "configure:4763: checking "finding over cstack half range"" >&5  echo "configure:4867: checking "finding upper mem half range"" >&5
4867     if test "$cross_compiling" = yes; then     if test "$cross_compiling" = yes; then
4868    cstack_range=0    mem_range=0
4869  else  else
4870    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4871  #line 4768 "configure"  #line 4872 "configure"
4872  #include "confdefs.h"  #include "confdefs.h"
4873  #include <stdio.h>  #include <stdio.h>
4874     int     int
# Line 4773  else Line 4877  else
4877       unsigned long j;       unsigned long j;
4878       FILE *fp = fopen("conftest1","w");       FILE *fp = fopen("conftest1","w");
4879    
4880       for (j=1;j && !(j& $cstack_top);j<<=1);       for (j=1;j && !(j& $mem_top);j<<=1);
4881       fprintf(fp,"0x%lx",j>>1);       fprintf(fp,"0x%lx",j>>1);
4882       fclose(fp);       fclose(fp);
4883       return 0;       return 0;
4884     }     }
4885  EOF  EOF
4886  if { (eval echo configure:4783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4887  then  then
4888    cstack_range=`cat conftest1`    mem_range=`cat conftest1`
4889  else  else
4890    echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
4891    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
4892    rm -fr conftest*    rm -fr conftest*
4893    cstack_range=0    mem_range=0
4894  fi  fi
4895  rm -fr conftest*  rm -fr conftest*
4896  fi  fi
4897    
4898     echo "$ac_t""got $cstack_range" 1>&6     echo "$ac_t""got $mem_range" 1>&6
4899     if test "$cstack_range" != "0" ; then     if test "$mem_range" != "0" ; then
4900          cat >> confdefs.h <<EOF          cat >> confdefs.h <<EOF
4901  #define CSTACK_TOP $cstack_top  #define MEM_TOP $mem_top
4902  EOF  EOF
4903    
4904        cat >> confdefs.h <<EOF        cat >> confdefs.h <<EOF
4905  #define CSTACK_RANGE $cstack_range  #define MEM_RANGE $mem_range
4906  EOF  EOF
4907    
4908     fi     fi
4909  fi  fi
4910    
4911  if test "$enable_immfix" = "yes" ; then  if test "$enable_immfix" = "yes" ; then
4912    if test "$cstack_top" != "0" ; then    if test "$mem_top" != "0" ; then
4913       if test "$cstack_range" != "0" ; then       if test "$mem_range" != "0" ; then
4914          cat >> confdefs.h <<EOF          cat >> confdefs.h <<EOF
4915  #define IM_FIX_BASE $cstack_top  #define IM_FIX_BASE $mem_top
4916  EOF  EOF
4917    
4918          cat >> confdefs.h <<EOF          cat >> confdefs.h <<EOF
4919  #define IM_FIX_LIM $cstack_range  #define IM_FIX_LIM $mem_range
4920  EOF  EOF
4921    
4922       fi       fi
# Line 4821  fi Line 4925  fi
4925    
4926    
4927  echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6  echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6
4928  echo "configure:4825: checking "sizeof long long int"" >&5  echo "configure:4929: checking "sizeof long long int"" >&5
4929  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4930    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
4931    
4932  else  else
4933    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4934  #line 4831 "configure"  #line 4935 "configure"
4935  #include "confdefs.h"  #include "confdefs.h"
4936  #include <stdio.h>  #include <stdio.h>
4937  main()  main()
# Line 4837  main() Line 4941  main()
4941  }  }
4942    
4943  EOF  EOF
4944  if { (eval echo configure:4841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4945  then  then
4946    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
4947  #define HAVE_LONG_LONG 1  #define HAVE_LONG_LONG 1
# Line 4897  FLISP="saved_$SYSTEM" Line 5001  FLISP="saved_$SYSTEM"
5001  for ac_func in getcwd  for ac_func in getcwd
5002  do  do
5003  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5004  echo "configure:4901: checking for $ac_func" >&5  echo "configure:5005: checking for $ac_func" >&5
5005  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5006    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5007  else  else
5008    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5009  #line 4906 "configure"  #line 5010 "configure"
5010  #include "confdefs.h"  #include "confdefs.h"
5011  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5012      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 4925  $ac_func(); Line 5029  $ac_func();
5029    
5030  ; return 0; }  ; return 0; }
5031  EOF  EOF
5032  if { (eval echo configure:4929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5033    rm -rf conftest*    rm -rf conftest*
5034    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
5035  else  else
# Line 4952  done Line 5056  done
5056  for ac_func in getwd  for ac_func in getwd
5057  do  do
5058  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5059  echo "configure:4956: checking for $ac_func" >&5  echo "configure:5060: checking for $ac_func" >&5
5060  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5061    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5062  else  else
5063    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5064  #line 4961 "configure"  #line 5065 "configure"
5065  #include "confdefs.h"  #include "confdefs.h"
5066  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5067      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 4980  $ac_func(); Line 5084  $ac_func();
5084    
5085  ; return 0; }  ; return 0; }
5086  EOF  EOF
5087  if { (eval echo configure:4984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5088    rm -rf conftest*    rm -rf conftest*
5089    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
5090  else  else
# Line 5005  fi Line 5109  fi
5109  done  done
5110    
5111  echo $ac_n "checking for uname""... $ac_c" 1>&6  echo $ac_n "checking for uname""... $ac_c" 1>&6
5112  echo "configure:5009: checking for uname" >&5  echo "configure:5113: checking for uname" >&5
5113  if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then
5114    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5115  else  else
5116    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5117  #line 5014 "configure"  #line 5118 "configure"
5118  #include "confdefs.h"  #include "confdefs.h"
5119  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5120      which can conflict with char uname(); below.  */      which can conflict with char uname(); below.  */
# Line 5033  uname(); Line 5137  uname();
5137    
5138  ; return 0; }  ; return 0; }
5139  EOF  EOF
5140  if { (eval echo configure:5037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5141    rm -rf conftest*    rm -rf conftest*
5142    eval "ac_cv_func_uname=yes"    eval "ac_cv_func_uname=yes"
5143  else  else
# Line 5057  EOF Line 5161  EOF
5161  fi  fi
5162    
5163  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
5164  echo "configure:5061: checking for gettimeofday" >&5  echo "configure:5165: checking for gettimeofday" >&5
5165  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
5166    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5167  else  else
5168    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5169  #line 5066 "configure"  #line 5170 "configure"
5170  #include "confdefs.h"  #include "confdefs.h"
5171  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5172      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday(); below.  */
# Line 5085  gettimeofday(); Line 5189  gettimeofday();
5189    
5190  ; return 0; }  ; return 0; }
5191  EOF  EOF
5192  if { (eval echo configure:5089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5193    rm -rf conftest*    rm -rf conftest*
5194    eval "ac_cv_func_gettimeofday=yes"    eval "ac_cv_func_gettimeofday=yes"
5195  else  else
# Line 5114  for ac_hdr in sys/ioctl.h Line 5218  for ac_hdr in sys/ioctl.h
5218  do  do
5219  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5220  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5221  echo "configure:5118: checking for $ac_hdr" >&5  echo "configure:5222: checking for $ac_hdr" >&5
5222  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5223    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5224  else  else
5225    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5226  #line 5123 "configure"  #line 5227 "configure"
5227  #include "confdefs.h"  #include "confdefs.h"
5228  #include <$ac_hdr>  #include <$ac_hdr>
5229  EOF  EOF
5230  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5231  { (eval echo configure:5128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5232  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5233  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5234    rm -rf conftest*    rm -rf conftest*
# Line 5156  for ac_hdr in elf.h elf_abi.h Line 5260  for ac_hdr in elf.h elf_abi.h
5260  do  do
5261  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5262  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5263  echo "configure:5160: checking for $ac_hdr" >&5  echo "configure:5264: checking for $ac_hdr" >&5
5264  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5265    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5266  else  else
5267    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5268  #line 5165 "configure"  #line 5269 "configure"
5269  #include "confdefs.h"  #include "confdefs.h"
5270  #include <$ac_hdr>  #include <$ac_hdr>
5271  EOF  EOF
5272  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5273  { (eval echo configure:5170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5274  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5275  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5276    rm -rf conftest*    rm -rf conftest*
# Line 5206  done Line 5310  done
5310  #--------------------------------------------------------------------  #--------------------------------------------------------------------
5311    
5312  echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6  echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6
5313  echo "configure:5210: checking for BSDgettimeofday" >&5  echo "configure:5314: checking for BSDgettimeofday" >&5
5314  if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then
5315    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5316  else  else
5317    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5318  #line 5215 "configure"  #line 5319 "configure"
5319  #include "confdefs.h"  #include "confdefs.h"
5320  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5321      which can conflict with char BSDgettimeofday(); below.  */      which can conflict with char BSDgettimeofday(); below.  */
# Line 5234  BSDgettimeofday(); Line 5338  BSDgettimeofday();
5338    
5339  ; return 0; }  ; return 0; }
5340  EOF  EOF
5341  if { (eval echo configure:5238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5342    rm -rf conftest*    rm -rf conftest*
5343    eval "ac_cv_func_BSDgettimeofday=yes"    eval "ac_cv_func_BSDgettimeofday=yes"
5344  else  else
# Line 5255  EOF Line 5359  EOF
5359  else  else
5360    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
5361  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
5362  echo "configure:5259: checking for gettimeofday" >&5  echo "configure:5363: checking for gettimeofday" >&5
5363  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
5364    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5365  else  else
5366    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5367  #line 5264 "configure"  #line 5368 "configure"
5368  #include "confdefs.h"  #include "confdefs.h"
5369  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5370      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday(); below.  */
# Line 5283  gettimeofday(); Line 5387  gettimeofday();
5387    
5388  ; return 0; }  ; return 0; }
5389  EOF  EOF
5390  if { (eval echo configure:5287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5391    rm -rf conftest*    rm -rf conftest*
5392    eval "ac_cv_func_gettimeofday=yes"    eval "ac_cv_func_gettimeofday=yes"
5393  else  else
# Line 5310  fi Line 5414  fi
5414    
5415    
5416  echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6  echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6
5417  echo "configure:5314: checking for gettimeofday declaration" >&5  echo "configure:5418: checking for gettimeofday declaration" >&5
5418    
5419  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5420  #line 5317 "configure"  #line 5421 "configure"
5421  #include "confdefs.h"  #include "confdefs.h"
5422  #include <sys/time.h>  #include <sys/time.h>
5423  EOF  EOF
# Line 5334  rm -f conftest* Line 5438  rm -f conftest*
5438    
5439    
5440  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
5441  echo "configure:5338: checking for sin in -lm" >&5  echo "configure:5442: checking for sin in -lm" >&5
5442  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
5443  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5444    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5342  else Line 5446  else
5446    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5447  LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
5448  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5449  #line 5346 "configure"  #line 5450 "configure"
5450  #include "confdefs.h"  #include "confdefs.h"
5451  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5452  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 5353  int main() { Line 5457  int main() {
5457  sin()  sin()
5458  ; return 0; }  ; return 0; }
5459  EOF  EOF
5460  if { (eval echo configure:5357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5461    rm -rf conftest*    rm -rf conftest*
5462    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5463  else  else
# Line 5375  true Line 5479  true
5479  fi  fi
5480    
5481  echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6  echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6
5482  echo "configure:5379: checking for main in -lmingwex" >&5  echo "configure:5483: checking for main in -lmingwex" >&5
5483  ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'`
5484  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5485    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5383  else Line 5487  else
5487    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5488  LIBS="-lmingwex  $LIBS"  LIBS="-lmingwex  $LIBS"
5489  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5490  #line 5387 "configure"  #line 5491 "configure"
5491  #include "confdefs.h"  #include "confdefs.h"
5492    
5493  int main() {  int main() {
5494  main()  main()
5495  ; return 0; }  ; return 0; }
5496  EOF  EOF
5497  if { (eval echo configure:5394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5498    rm -rf conftest*    rm -rf conftest*
5499    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5500  else  else
# Line 5418  if test "$try_japi" = "yes" ; then Line 5522  if test "$try_japi" = "yes" ; then
5522  do  do
5523  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5524  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5525  echo "configure:5422: checking for $ac_hdr" >&5  echo "configure:5526: checking for $ac_hdr" >&5
5526  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5527    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5528  else  else
5529    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5530  #line 5427 "configure"  #line 5531 "configure"
5531  #include "confdefs.h"  #include "confdefs.h"
5532  #include <$ac_hdr>  #include <$ac_hdr>
5533  EOF  EOF
5534  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5535  { (eval echo configure:5432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5536  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5537  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5538    rm -rf conftest*    rm -rf conftest*
# Line 5466  if test "$use" = "mingw" ; then Line 5570  if test "$use" = "mingw" ; then
5570  do  do
5571  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5572  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5573  echo "configure:5470: checking for $ac_hdr" >&5  echo "configure:5574: checking for $ac_hdr" >&5
5574  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5575    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5576  else  else
5577    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5578  #line 5475 "configure"  #line 5579 "configure"
5579  #include "confdefs.h"  #include "confdefs.h"
5580  #include <$ac_hdr>  #include <$ac_hdr>
5581  EOF  EOF
5582  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5583  { (eval echo configure:5480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5584  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5585  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5586    rm -rf conftest*    rm -rf conftest*
# Line 5513  else Line 5617  else
5617  do  do
5618  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5619  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5620  echo "configure:5517: checking for $ac_hdr" >&5  echo "configure:5621: checking for $ac_hdr" >&5
5621  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5622    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5623  else  else
5624    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5625  #line 5522 "configure"  #line 5626 "configure"
5626  #include "confdefs.h"  #include "confdefs.h"
5627  #include <$ac_hdr>  #include <$ac_hdr>
5628  EOF  EOF
5629  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5630  { (eval echo configure:5527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5631  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5632  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5633    rm -rf conftest*    rm -rf conftest*
# Line 5563  for ac_hdr in math.h Line 5667  for ac_hdr in math.h
5667  do  do
5668  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5669  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5670  echo "configure:5567: checking for $ac_hdr" >&5  echo "configure:5671: checking for $ac_hdr" >&5
5671  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5672    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5673  else  else
5674    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5675  #line 5572 "configure"  #line 5676 "configure"
5676  #include "confdefs.h"  #include "confdefs.h"
5677  #include <$ac_hdr>  #include <$ac_hdr>
5678  EOF  EOF
5679  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5680  { (eval echo configure:5577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5681  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5682  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5683    rm -rf conftest*    rm -rf conftest*
# Line 5610  for ac_hdr in values.h Line 5714  for ac_hdr in values.h
5714  do  do
5715  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5716  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5717  echo "configure:5614: checking for $ac_hdr" >&5  echo "configure:5718: checking for $ac_hdr" >&5
5718  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5719    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5720  else  else
5721    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5722  #line 5619 "configure"  #line 5723 "configure"
5723  #include "confdefs.h"  #include "confdefs.h"
5724  #include <$ac_hdr>  #include <$ac_hdr>
5725  EOF  EOF
5726  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5727  { (eval echo configure:5624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5728  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5729  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5730    rm -rf conftest*    rm -rf conftest*
# Line 5657  for ac_hdr in float.h Line 5761  for ac_hdr in float.h
5761  do  do
5762  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5763  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5764  echo "configure:5661: checking for $ac_hdr" >&5  echo "configure:5765: checking for $ac_hdr" >&5
5765  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5766    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5767  else  else
5768    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5769  #line 5666 "configure"  #line 5770 "configure"
5770  #include "confdefs.h"  #include "confdefs.h"
5771  #include <$ac_hdr>  #include <$ac_hdr>
5772  EOF  EOF
5773  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5774  { (eval echo configure:5671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5775  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5776  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5777    rm -rf conftest*    rm -rf conftest*
# Line 5703  done Line 5807  done
5807  # test makes sense.  CM  # test makes sense.  CM
5808  #  #
5809  echo $ac_n "checking for isnormal""... $ac_c" 1>&6  echo $ac_n "checking for isnormal""... $ac_c" 1>&6
5810  echo "configure:5707: checking for isnormal" >&5  echo "configure:5811: checking for isnormal" >&5
5811  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
5812    HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6    HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6
5813  else  else
5814    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5815  #line 5712 "configure"  #line 5816 "configure"
5816  #include "confdefs.h"  #include "confdefs.h"
5817  #define _GNU_SOURCE  #define _GNU_SOURCE
5818              #include <math.h>              #include <math.h>
# Line 5717  else Line 5821  else
5821                  return isnormal(f) || !isnormal(f) ? 0 : 1;                  return isnormal(f) || !isnormal(f) ? 0 : 1;
5822                  }                  }
5823  EOF  EOF
5824  if { (eval echo configure:5721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:5825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5825  then  then
5826    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
5827  #define HAVE_ISNORMAL 1  #define HAVE_ISNORMAL 1
# Line 5728  else Line 5832  else
5832    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
5833    rm -fr conftest*    rm -fr conftest*
5834    echo $ac_n "checking for fpclass in ieeefp.h""... $ac_c" 1>&6    echo $ac_n "checking for fpclass in ieeefp.h""... $ac_c" 1>&6
5835  echo "configure:5732: checking for fpclass in ieeefp.h" >&5  echo "configure:5836: checking for fpclass in ieeefp.h" >&5
5836                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
5837    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6
5838  else  else
5839    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5840  #line 5737 "configure"  #line 5841 "configure"
5841  #include "confdefs.h"  #include "confdefs.h"
5842  #include <ieeefp.h>  #include <ieeefp.h>
5843                              int main() {                              int main() {
# Line 5741  else Line 5845  else
5845                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;
5846                                  }                                  }
5847  EOF  EOF
5848  if { (eval echo configure:5745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:5849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5849  then  then
5850    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
5851  #define HAVE_IEEEFP 1  #define HAVE_IEEEFP 1
# Line 5763  fi Line 5867  fi
5867    
5868    
5869  echo $ac_n "checking for isfinite""... $ac_c" 1>&6  echo $ac_n "checking for isfinite""... $ac_c" 1>&6
5870  echo "configure:5767: checking for isfinite" >&5  echo "configure:5871: checking for isfinite" >&5
5871  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
5872    HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6    HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6
5873  else  else
5874    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5875  #line 5772 "configure"  #line 5876 "configure"
5876  #include "confdefs.h"  #include "confdefs.h"
5877  #define _GNU_SOURCE  #define _GNU_SOURCE
5878              #include <math.h>              #include <math.h>
# Line 5777  else Line 5881  else
5881                  return isfinite(f) || !isfinite(f) ? 0 : 1;                  return isfinite(f) || !isfinite(f) ? 0 : 1;
5882                  }                  }
5883  EOF  EOF
5884  if { (eval echo configure:5781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:5885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5885  then  then
5886    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
5887  #define HAVE_ISFINITE 1  #define HAVE_ISFINITE 1
# Line 5788  else Line 5892  else
5892    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
5893    rm -fr conftest*    rm -fr conftest*
5894    echo $ac_n "checking for finite()""... $ac_c" 1>&6    echo $ac_n "checking for finite()""... $ac_c" 1>&6
5895  echo "configure:5792: checking for finite()" >&5  echo "configure:5896: checking for finite()" >&5
5896                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
5897    HAVE_FINITE=0 echo "$ac_t""no" 1>&6    HAVE_FINITE=0 echo "$ac_t""no" 1>&6
5898  else  else
5899    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5900  #line 5797 "configure"  #line 5901 "configure"
5901  #include "confdefs.h"  #include "confdefs.h"
5902  #include <math.h>  #include <math.h>
5903                              #include <ieeefp.h>                              #include <ieeefp.h>
# Line 5802  else Line 5906  else
5906                                  return finite(f) || !finite(f) ? 0 : 1;                                  return finite(f) || !finite(f) ? 0 : 1;
5907                                  }                                  }
5908  EOF  EOF
5909  if { (eval echo configure:5806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:5910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5910  then  then
5911    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
5912  #define HAVE_FINITE 1  #define HAVE_FINITE 1
# Line 5843  fi Line 5947  fi
5947  #          if -lsocket doesn't work by itself.  #          if -lsocket doesn't work by itself.
5948  #--------------------------------------------------------------------  #--------------------------------------------------------------------
5949  echo $ac_n "checking for sockets""... $ac_c" 1>&6  echo $ac_n "checking for sockets""... $ac_c" 1>&6
5950  echo "configure:5847: checking for sockets" >&5  echo "configure:5951: checking for sockets" >&5
5951  tcl_checkBoth=0  tcl_checkBoth=0
5952  echo $ac_n "checking for connect""... $ac_c" 1>&6  echo $ac_n "checking for connect""... $ac_c" 1>&6
5953  echo "configure:5850: checking for connect" >&5  echo "configure:5954: checking for connect" >&5
5954  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
5955    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5956  else  else
5957    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5958  #line 5855 "configure"  #line 5959 "configure"
5959  #include "confdefs.h"  #include "confdefs.h"
5960  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5961      which can conflict with char connect(); below.  */      which can conflict with char connect(); below.  */
# Line 5874  connect(); Line 5978  connect();
5978    
5979  ; return 0; }  ; return 0; }
5980  EOF  EOF
5981  if { (eval echo configure:5878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5982    rm -rf conftest*    rm -rf conftest*
5983    eval "ac_cv_func_connect=yes"    eval "ac_cv_func_connect=yes"
5984  else  else
# Line 5896  fi Line 6000  fi
6000    
6001  if test "$tcl_checkSocket" = 1; then  if test "$tcl_checkSocket" = 1; then
6002      echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6      echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
6003  echo "configure:5900: checking for main in -lsocket" >&5  echo "configure:6004: checking for main in -lsocket" >&5
6004  ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
6005  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6006    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5904  else Line 6008  else
6008    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
6009  LIBS="-lsocket  $LIBS"  LIBS="-lsocket  $LIBS"
6010  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6011  #line 5908 "configure"  #line 6012 "configure"
6012  #include "confdefs.h"  #include "confdefs.h"
6013    
6014  int main() {  int main() {
6015  main()  main()
6016  ; return 0; }  ; return 0; }
6017  EOF  EOF
6018  if { (eval echo configure:5915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6019    rm -rf conftest*    rm -rf conftest*
6020    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
6021  else  else
# Line 5939  if test "$tcl_checkBoth" = 1; then Line 6043  if test "$tcl_checkBoth" = 1; then
6043      tk_oldLibs=$TLIBS      tk_oldLibs=$TLIBS
6044      TLIBS="$TLIBS -lsocket -lnsl"      TLIBS="$TLIBS -lsocket -lnsl"
6045      echo $ac_n "checking for accept""... $ac_c" 1>&6      echo $ac_n "checking for accept""... $ac_c" 1>&6
6046  echo "configure:5943: checking for accept" >&5  echo "configure:6047: checking for accept" >&5
6047  if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
6048    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6049  else  else
6050    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6051  #line 5948 "configure"  #line 6052 "configure"
6052  #include "confdefs.h"  #include "confdefs.h"
6053  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6054      which can conflict with char accept(); below.  */      which can conflict with char accept(); below.  */
# Line 5967  accept(); Line 6071  accept();
6071    
6072  ; return 0; }  ; return 0; }
6073  EOF  EOF
6074  if { (eval echo configure:5971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6075    rm -rf conftest*    rm -rf conftest*
6076    eval "ac_cv_func_accept=yes"    eval "ac_cv_func_accept=yes"
6077  else  else
# Line 5989  fi Line 6093  fi
6093    
6094  fi  fi
6095  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6096  echo "configure:5993: checking for gethostbyname" >&5  echo "configure:6097: checking for gethostbyname" >&5
6097  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6098    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6099  else  else
6100    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6101  #line 5998 "configure"  #line 6102 "configure"
6102  #include "confdefs.h"  #include "confdefs.h"
6103  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6104      which can conflict with char gethostbyname(); below.  */      which can conflict with char gethostbyname(); below.  */
# Line 6017  gethostbyname(); Line 6121  gethostbyname();
6121    
6122  ; return 0; }  ; return 0; }
6123  EOF  EOF
6124  if { (eval echo configure:6021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6125    rm -rf conftest*    rm -rf conftest*
6126    eval "ac_cv_func_gethostbyname=yes"    eval "ac_cv_func_gethostbyname=yes"
6127  else  else
# Line 6035  if eval "test \"`echo '$ac_cv_func_'geth Line 6139  if eval "test \"`echo '$ac_cv_func_'geth
6139  else  else
6140    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
6141  echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6  echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
6142  echo "configure:6039: checking for main in -lnsl" >&5  echo "configure:6143: checking for main in -lnsl" >&5
6143  ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
6144  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6145    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 6043  else Line 6147  else
6147    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
6148  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
6149  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6150  #line 6047 "configure"  #line 6151 "configure"
6151  #include "confdefs.h"  #include "confdefs.h"
6152    
6153  int main() {  int main() {
6154  main()  main()
6155  ; return 0; }  ; return 0; }
6156  EOF  EOF
6157  if { (eval echo configure:6054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6158    rm -rf conftest*    rm -rf conftest*
6159    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
6160  else  else
# Line 6080  if test "$enable_readline" = "yes" ; the Line 6184  if test "$enable_readline" = "yes" ; the
6184  do  do
6185  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6186  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6187  echo "configure:6084: checking for $ac_hdr" >&5  echo "configure:6188: checking for $ac_hdr" >&5
6188  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6189    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6190  else  else
6191    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6192  #line 6089 "configure"  #line 6193 "configure"
6193  #include "confdefs.h"  #include "confdefs.h"
6194  #include <$ac_hdr>  #include <$ac_hdr>
6195  EOF  EOF
6196  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6197  { (eval echo configure:6094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:6198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6198  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6199  if test -z "$ac_err"; then  if test -z "$ac_err"; then
6200    rm -rf conftest*    rm -rf conftest*
# Line 6111  if eval "test \"`echo '$ac_cv_header_'$a Line 6215  if eval "test \"`echo '$ac_cv_header_'$a
6215  #define $ac_tr_hdr 1  #define $ac_tr_hdr 1
6216  EOF  EOF
6217   echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6   echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
6218  echo "configure:6115: checking for main in -lreadline" >&5  echo "configure:6219: checking for main in -lreadline" >&5
6219  ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
6220  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6221    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 6119  else Line 6223  else
6223    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
6224  LIBS="-lreadline -lncurses $LIBS"  LIBS="-lreadline -lncurses $LIBS"
6225  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6226  #line 6123 "configure"  #line 6227 "configure"
6227  #include "confdefs.h"  #include "confdefs.h"
6228    
6229  int main() {  int main() {
6230  main()  main()
6231  ; return 0; }  ; return 0; }
6232  EOF  EOF
6233  if { (eval echo configure:6130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6234    rm -rf conftest*    rm -rf conftest*
6235    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
6236  else  else
# Line 6163  done Line 6267  done
6267    
6268  # These tests discover differences between readline 4.1 and 4.3  # These tests discover differences between readline 4.1 and 4.3
6269          echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6          echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
6270  echo "configure:6167: checking for rl_completion_matches in -lreadline" >&5  echo "configure:6271: checking for rl_completion_matches in -lreadline" >&5
6271  ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`  ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
6272  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6273    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 6171  else Line 6275  else
6275    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
6276  LIBS="-lreadline  $LIBS"  LIBS="-lreadline  $LIBS"
6277  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6278  #line 6175 "configure"  #line 6279 "configure"
6279  #include "confdefs.h"  #include "confdefs.h"
6280  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6281  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 6182  int main() { Line 6286  int main() {
6286  rl_completion_matches()  rl_completion_matches()
6287  ; return 0; }  ; return 0; }
6288  EOF  EOF
6289  if { (eval echo configure:6186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6290    rm -rf conftest*    rm -rf conftest*
6291    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
6292  else  else
# Line 6215  fi Line 6319  fi
6319    
6320    
6321  echo $ac_n "checking For network code for nsocket.c""... $ac_c" 1>&6  echo $ac_n "checking For network code for nsocket.c""... $ac_c" 1>&6
6322  echo "configure:6219: checking For network code for nsocket.c" >&5  echo "configure:6323: checking For network code for nsocket.c" >&5
6323  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6324  #line 6221 "configure"  #line 6325 "configure"
6325  #include "confdefs.h"  #include "confdefs.h"
6326    
6327  #include <sys/time.h>  #include <sys/time.h>
# Line 6244  int main() { Line 6348  int main() {
6348                    
6349  ; return 0; }  ; return 0; }
6350  EOF  EOF
6351  if { (eval echo configure:6248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6352    rm -rf conftest*    rm -rf conftest*
6353    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
6354  #define HAVE_NSOCKET 1  #define HAVE_NSOCKET 1
# Line 6261  rm -f conftest* Line 6365  rm -f conftest*
6365    
6366    
6367  echo $ac_n "checking check for listen using fcntl""... $ac_c" 1>&6  echo $ac_n "checking check for listen using fcntl""... $ac_c" 1>&6
6368  echo "configure:6265: checking check for listen using fcntl" >&5  echo "configure:6369: checking check for listen using fcntl" >&5
6369  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6370  #line 6267 "configure"  #line 6371 "configure"
6371  #include "confdefs.h"  #include "confdefs.h"
6372  #include <stdio.h>  #include <stdio.h>
6373  #include <fcntl.h>  #include <fcntl.h>
# Line 6276  FILE *fp=fopen("configure.in","r"); Line 6380  FILE *fp=fopen("configure.in","r");
6380    
6381  ; return 0; }  ; return 0; }
6382  EOF  EOF
6383  if { (eval echo configure:6280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:6384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6384    rm -rf conftest*    rm -rf conftest*
6385    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
6386  #define LISTEN_USE_FCNTL 1  #define LISTEN_USE_FCNTL 1
# Line 6295  rm -f conftest* Line 6399  rm -f conftest*
6399    
6400    
6401  echo $ac_n "checking for profil""... $ac_c" 1>&6  echo $ac_n "checking for profil""... $ac_c" 1>&6
6402  echo "configure:6299: checking for profil" >&5  echo "configure:6403: checking for profil" >&5
6403  if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then
6404    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6405  else  else
6406    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6407  #line 6304 "configure"  #line 6408 "configure"
6408  #include "confdefs.h"  #include "confdefs.h"
6409  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6410      which can conflict with char profil(); below.  */      which can conflict with char profil(); below.  */
# Line 6323  profil(); Line 6427  profil();
6427    
6428  ; return 0; }  ; return 0; }
6429  EOF  EOF
6430  if { (eval echo configure:6327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6431    rm -rf conftest*    rm -rf conftest*
6432    eval "ac_cv_func_profil=yes"    eval "ac_cv_func_profil=yes"
6433  else  else
# Line 6348  fi Line 6452  fi
6452    
6453    
6454  echo $ac_n "checking for setenv""... $ac_c" 1>&6  echo $ac_n "checking for setenv""... $ac_c" 1>&6
6455  echo "configure:6352: checking for setenv" >&5  echo "configure:6456: checking for setenv" >&5
6456  if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then
6457    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6458  else  else
6459    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6460  #line 6357 "configure"  #line 6461 "configure"
6461  #include "confdefs.h"  #include "confdefs.h"
6462  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6463      which can conflict with char setenv(); below.  */      which can conflict with char setenv(); below.  */
# Line 6376  setenv(); Line 6480  setenv();
6480    
6481  ; return 0; }  ; return 0; }
6482  EOF  EOF
6483  if { (eval echo configure:6380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6484    rm -rf conftest*    rm -rf conftest*
6485    eval "ac_cv_func_setenv=yes"    eval "ac_cv_func_setenv=yes"
6486  else  else
# Line 6402  fi Line 6506  fi
6506    
6507  if test "$no_setenv" = "1" ; then  if test "$no_setenv" = "1" ; then
6508  echo $ac_n "checking for putenv""... $ac_c" 1>&6  echo $ac_n "checking for putenv""... $ac_c" 1>&6
6509  echo "configure:6406: checking for putenv" >&5  echo "configure:6510: checking for putenv" >&5
6510  if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then
6511    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6512  else  else
6513    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6514  #line 6411 "configure"  #line 6515 "configure"
6515  #include "confdefs.h"  #include "confdefs.h"
6516  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6517      which can conflict with char putenv(); below.  */      which can conflict with char putenv(); below.  */
# Line 6430  putenv(); Line 6534  putenv();
6534    
6535  ; return 0; }  ; return 0; }
6536  EOF  EOF
6537  if { (eval echo configure:6434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6538    rm -rf conftest*    rm -rf conftest*
6539    eval "ac_cv_func_putenv=yes"    eval "ac_cv_func_putenv=yes"
6540  else  else
# Line 6456  fi Line 6560  fi
6560  fi  fi
6561    
6562  echo $ac_n "checking for _cleanup""... $ac_c" 1>&6  echo $ac_n "checking for _cleanup""... $ac_c" 1>&6
6563  echo "configure:6460: checking for _cleanup" >&5  echo "configure:6564: checking for _cleanup" >&5
6564  if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then
6565    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6566  else  else
6567    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6568  #line 6465 "configure"  #line 6569 "configure"
6569  #include "confdefs.h"  #include "confdefs.h"
6570  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6571      which can conflict with char _cleanup(); below.  */      which can conflict with char _cleanup(); below.  */
# Line 6484  _cleanup(); Line 6588  _cleanup();
6588    
6589  ; return 0; }  ; return 0; }
6590  EOF  EOF
6591  if { (eval echo configure:6488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6592    rm -rf conftest*    rm -rf conftest*
6593    eval "ac_cv_func__cleanup=yes"    eval "ac_cv_func__cleanup=yes"
6594  else  else
# Line 6510  fi Line 6614  fi
6614  gcl_ok=no  gcl_ok=no
6615    
6616  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6617  #line 6514 "configure"  #line 6618 "configure"
6618  #include "confdefs.h"  #include "confdefs.h"
6619  #include <ctype.h>  #include <ctype.h>
6620  EOF  EOF
# Line 6538  fi Line 6642  fi
6642    
6643  # if test "x$enable_machine" = "x" ; then  # if test "x$enable_machine" = "x" ; then
6644  echo $ac_n "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O""... $ac_c" 1>&6  echo $ac_n "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O""... $ac_c" 1>&6
6645  echo "configure:6542: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5  echo "configure:6646: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5
6646    
6647  case $system in  case $system in
6648         OSF*)         OSF*)
# Line 6569  esac Line 6673  esac
6673    
6674    
6675  echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6  echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6
6676  echo "configure:6573: checking check for SV_ONSTACK" >&5  echo "configure:6677: checking check for SV_ONSTACK" >&5
6677  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6678  #line 6575 "configure"  #line 6679 "configure"
6679  #include "confdefs.h"  #include "confdefs.h"
6680  #include <signal.h>  #include <signal.h>
6681  int joe=SV_ONSTACK;  int joe=SV_ONSTACK;
# Line 6580  int main() { Line 6684  int main() {
6684    
6685  ; return 0; }  ; return 0; }
6686  EOF  EOF
6687  if { (eval echo configure:6584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:6688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6688    rm -rf conftest*    rm -rf conftest*
6689    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
6690  #define HAVE_SV_ONSTACK 1  #define HAVE_SV_ONSTACK 1
# Line 6597  fi Line 6701  fi
6701  rm -f conftest*  rm -f conftest*
6702    
6703  echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6  echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6
6704  echo "configure:6601: checking check for SIGSYS" >&5  echo "configure:6705: checking check for SIGSYS" >&5
6705  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6706  #line 6603 "configure"  #line 6707 "configure"
6707  #include "confdefs.h"  #include "confdefs.h"
6708  #include <signal.h>  #include <signal.h>
6709  int joe=SIGSYS;  int joe=SIGSYS;
# Line 6608  int main() { Line 6712  int main() {
6712    
6713  ; return 0; }  ; return 0; }
6714  EOF  EOF
6715  if { (eval echo configure:6612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:6716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6716    rm -rf conftest*    rm -rf conftest*
6717    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
6718  #define HAVE_SIGSYS 1  #define HAVE_SIGSYS 1
# Line 6626  rm -f conftest* Line 6730  rm -f conftest*
6730    
6731    
6732  echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6  echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6
6733  echo "configure:6630: checking check for SIGEMT" >&5  echo "configure:6734: checking check for SIGEMT" >&5
6734  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6735  #line 6632 "configure"  #line 6736 "configure"
6736  #include "confdefs.h"  #include "confdefs.h"
6737  #include <signal.h>  #include <signal.h>
6738  int joe=SIGEMT;  int joe=SIGEMT;
# Line 6637  int main() { Line 6741  int main() {
6741    
6742  ; return 0; }  ; return 0; }
6743  EOF  EOF
6744  if { (eval echo configure:6641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:6745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6745    rm -rf conftest*    rm -rf conftest*
6746    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
6747  #define HAVE_SIGEMT 1  #define HAVE_SIGEMT 1
# Line 6661  rm -f conftest* Line 6765  rm -f conftest*
6765  do  do
6766  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6767  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6768  echo "configure:6665: checking for $ac_hdr" >&5  echo "configure:6769: checking for $ac_hdr" >&5
6769  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6770    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6771  else  else
6772    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6773  #line 6670 "configure"  #line 6774 "configure"
6774  #include "confdefs.h"  #include "confdefs.h"
6775  #include <$ac_hdr>  #include <$ac_hdr>
6776  EOF  EOF
6777  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6778  { (eval echo configure:6675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:6779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6779  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6780  if test -z "$ac_err"; then  if test -z "$ac_err"; then
6781    rm -rf conftest*    rm -rf conftest*
# Line 6701  done Line 6805  done
6805  do  do
6806  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6807  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6808  echo "configure:6705: checking for $ac_hdr" >&5  echo "configure:6809: checking for $ac_hdr" >&5
6809  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6810    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6811  else  else
6812    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6813  #line 6710 "configure"  #line 6814 "configure"
6814  #include "confdefs.h"  #include "confdefs.h"
6815  #include <$ac_hdr>  #include <$ac_hdr>
6816  EOF  EOF
6817  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6818  { (eval echo configure:6715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:6819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6819  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6820  if test -z "$ac_err"; then  if test -z "$ac_err"; then
6821    rm -rf conftest*    rm -rf conftest*
# Line 6738  fi Line 6842  fi
6842  done  done
6843    
6844          echo $ac_n "checking for sigcontext...""... $ac_c" 1>&6          echo $ac_n "checking for sigcontext...""... $ac_c" 1>&6
6845  echo "configure:6742: checking for sigcontext..." >&5  echo "configure:6846: checking for sigcontext..." >&5
6846          cat > conftest.$ac_ext <<EOF          cat > conftest.$ac_ext <<EOF
6847  #line 6744 "configure"  #line 6848 "configure"
6848  #include "confdefs.h"  #include "confdefs.h"
6849  #include <signal.h>  #include <signal.h>
6850                
# Line 6750  int main() { Line 6854  int main() {
6854                
6855  ; return 0; }  ; return 0; }
6856  EOF  EOF
6857  if { (eval echo configure:6754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:6858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6858    rm -rf conftest*    rm -rf conftest*
6859        
6860          sigcontext_works=1;          sigcontext_works=1;
# Line 6771  fi Line 6875  fi
6875  rm -f conftest*  rm -f conftest*
6876         if test "$sigcontext_works" = 0 ; then         if test "$sigcontext_works" = 0 ; then
6877         echo $ac_n "checking for sigcontext...""... $ac_c" 1>&6         echo $ac_n "checking for sigcontext...""... $ac_c" 1>&6
6878  echo "configure:6775: checking for sigcontext..." >&5  echo "configure:6879: checking for sigcontext..." >&5
6879         cat > conftest.$ac_ext <<EOF         cat > conftest.$ac_ext <<EOF
6880  #line 6777 "configure"  #line 6881 "configure"
6881  #include "confdefs.h"  #include "confdefs.h"
6882  #include <signal.h>  #include <signal.h>
6883               #ifdef HAVE_ASM_SIGCONTEXT_H                   #ifdef HAVE_ASM_SIGCONTEXT_H    
# Line 6789  int main() { Line 6893  int main() {
6893                    
6894  ; return 0; }  ; return 0; }
6895  EOF  EOF
6896  if { (eval echo configure:6793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:6897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6897    rm -rf conftest*    rm -rf conftest*
6898        
6899          cat >> confdefs.h <<\EOF          cat >> confdefs.h <<\EOF
# Line 6831  rm -f conftest* Line 6935  rm -f conftest*
6935  # Extract the first word of "emacs", so it can be a program name with args.  # Extract the first word of "emacs", so it can be a program name with args.
6936  set dummy emacs; ac_word=$2  set dummy emacs; ac_word=$2
6937  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6938  echo "configure:6835: checking for $ac_word" >&5  echo "configure:6939: checking for $ac_word" >&5
6939  if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then
6940    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6941  else  else
# Line 6879  cat >> conftest.el <<EOF Line 6983  cat >> conftest.el <<EOF
6983  EOF  EOF
6984    
6985  echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6  echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6
6986  echo "configure:6883: checking emacs site lisp directory" >&5  echo "configure:6987: checking emacs site lisp directory" >&5
6987  if [ "$EMACS_SITE_LISP" = "unknown" ] ; then  if [ "$EMACS_SITE_LISP" = "unknown" ] ; then
6988          if [ "$EMACS" != "" ] ; then          if [ "$EMACS" != "" ] ; then
6989                  EMACS_SITE_LISP=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `                  EMACS_SITE_LISP=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `
# Line 6903  cat >> conftest.el <<EOF Line 7007  cat >> conftest.el <<EOF
7007  EOF  EOF
7008    
7009  echo $ac_n "checking emacs default.el""... $ac_c" 1>&6  echo $ac_n "checking emacs default.el""... $ac_c" 1>&6
7010  echo "configure:6907: checking emacs default.el" >&5  echo "configure:7011: checking emacs default.el" >&5
7011  if [ "$EMACS" != "" ] ; then  if [ "$EMACS" != "" ] ; then
7012          EMACS_DEFAULT_EL=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `          EMACS_DEFAULT_EL=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `
7013  else  else
# Line 6932  cat >> conftest.el <<EOF Line 7036  cat >> conftest.el <<EOF
7036  EOF  EOF
7037    
7038  echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6  echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6
7039  echo "configure:6936: checking emacs info/dir" >&5  echo "configure:7040: checking emacs info/dir" >&5
7040  if test "$use" = "mingw" ; then  if test "$use" = "mingw" ; then
7041      INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/      INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/
7042  else  else
# Line 6950  echo "$ac_t""$INFO_DIR" 1>&6 Line 7054  echo "$ac_t""$INFO_DIR" 1>&6
7054    
7055    
7056  echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6  echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6
7057  echo "configure:6954: checking for tcl/tk" >&5  echo "configure:7058: checking for tcl/tk" >&5
7058    
7059    
7060  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else
# Line 6973  EOF Line 7077  EOF
7077  # Extract the first word of "tclsh", so it can be a program name with args.  # Extract the first word of "tclsh", so it can be a program name with args.
7078  set dummy tclsh; ac_word=$2  set dummy tclsh; ac_word=$2
7079  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7080  echo "configure:6977: checking for $ac_word" >&5  echo "configure:7081: checking for $ac_word" >&5
7081  if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then
7082    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7083  else  else
# Line 7078  if test -f ${TK_CONFIG_PREFIX}/../bin/tc Line 7182  if test -f ${TK_CONFIG_PREFIX}/../bin/tc
7182     TCL_STUB_LIBS="-L${TK_CONFIG_PREFIX}/lib -ltkstub${TCL_VERSION_DOT_FREE} -ltclstub${TCL_VERSION_DOT_FREE}"     TCL_STUB_LIBS="-L${TK_CONFIG_PREFIX}/lib -ltkstub${TCL_VERSION_DOT_FREE} -ltclstub${TCL_VERSION_DOT_FREE}"
7183  else  else
7184    echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6    echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6
7185  echo "configure:7082: checking for main in -llieee" >&5  echo "configure:7186: checking for main in -llieee" >&5
7186  ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'`
7187  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7188    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 7086  else Line 7190  else
7190    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
7191  LIBS="-llieee  $LIBS"  LIBS="-llieee  $LIBS"
7192  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
7193  #line 7090 "configure"  #line 7194 "configure"
7194  #include "confdefs.h"  #include "confdefs.h"
7195    
7196  int main() {  int main() {
7197  main()  main()
7198  ; return 0; }  ; return 0; }
7199  EOF  EOF
7200  if { (eval echo configure:7097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7201    rm -rf conftest*    rm -rf conftest*
7202    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
7203  else  else
# Line 7160  NOTIFY=$enable_notify Line 7264  NOTIFY=$enable_notify
7264  # the time handling for unixtime, add timezone  # the time handling for unixtime, add timezone
7265    
7266  echo $ac_n "checking alloca""... $ac_c" 1>&6  echo $ac_n "checking alloca""... $ac_c" 1>&6
7267  echo "configure:7164: checking alloca" >&5  echo "configure:7268: checking alloca" >&5
7268  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
7269    gcl_ok=no    gcl_ok=no
7270  else  else
7271    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7272  #line 7169 "configure"  #line 7273 "configure"
7273  #include "confdefs.h"  #include "confdefs.h"
7274    #include <stdio.h>
7275  int main() { exit(alloca(500) != NULL ? 0 : 1);}  int main() { exit(alloca(500) != NULL ? 0 : 1);}
7276  EOF  EOF
7277  if { (eval echo configure:7173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:7278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7278  then  then
7279    :    :
7280  else  else
# Line 7192  else Line 7297  else
7297    gcl_ok=no    gcl_ok=no
7298  else  else
7299    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7300  #line 7196 "configure"  #line 7301 "configure"
7301  #include "confdefs.h"  #include "confdefs.h"
7302  #include <alloca.h>  #include <alloca.h>
7303    int main() { exit(alloca(500) != NULL ? 0 : 1)}    int main() { exit(alloca(500) != NULL ? 0 : 1)}
7304  EOF  EOF
7305  if { (eval echo configure:7201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:7306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7306  then  then
7307    :    :
7308  else  else
# Line 7258  if test $gcl_ok = no ; then     echo "$a Line 7363  if test $gcl_ok = no ; then     echo "$a
7363  # redhat/cygnus released for some reason a buggy version of gcc,  # redhat/cygnus released for some reason a buggy version of gcc,
7364  # which no one else released.   Catch that here.  # which no one else released.   Catch that here.
7365  echo $ac_n "checking Checking for buggy gcc version from redhat""... $ac_c" 1>&6  echo $ac_n "checking Checking for buggy gcc version from redhat""... $ac_c" 1>&6
7366  echo "configure:7262: checking Checking for buggy gcc version from redhat" >&5  echo "configure:7367: checking Checking for buggy gcc version from redhat" >&5
7367  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null
7368     then     then
7369          BROKEN_O4_OPT=1          BROKEN_O4_OPT=1

Legend:
Removed from v.1.179  
changed lines
  Added in v.1.180

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26