- Location:
- /trunk/gsdl
- Files:
-
- 5 added
- 1 deleted
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
/trunk/gsdl/packages/mg-1.3d/config.h.in
r20 r30 52 52 direction of stack growth for your system; otherwise it will be 53 53 automatically deduced at run-time. 54 55 56 54 STACK_DIRECTION > 0 => grows toward higher addresses 55 STACK_DIRECTION < 0 => grows toward lower addresses 56 STACK_DIRECTION = 0 => direction of growth unknown 57 57 */ 58 58 #undef STACK_DIRECTION … … 99 99 #undef HAVE_FTIME 100 100 101 /* Define if you have the ftruncate function. */ 102 #undef HAVE_FTRUNCATE 103 101 104 /* Define if you have the getpagesize function. */ 102 105 #undef HAVE_GETPAGESIZE … … 114 117 #undef HAVE_SETBUFFER 115 118 119 /* Define if you have the strcasecmp function. */ 120 #undef HAVE_STRCASECMP 121 116 122 /* Define if you have the strftime function. */ 117 123 #undef HAVE_STRFTIME 124 125 /* Define if you have the strstr function. */ 126 #undef HAVE_STRSTR 118 127 119 128 /* Define if you have the strtol function. */ -
/trunk/gsdl/packages/mg-1.3d/configure
r20 r30 2 2 3 3 # Guess values for system-dependent variables and create Makefiles. 4 # Generated automatically using autoconf version 2. 45 # Copyright (C) 1992, 1993, 1994Free Software Foundation, Inc.4 # Generated automatically using autoconf version 2.12 5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 6 6 # 7 7 # This configure script is free software; the Free Software Foundation … … 39 39 x_includes=NONE 40 40 x_libraries=NONE 41 bindir='${exec_prefix}/bin' 42 sbindir='${exec_prefix}/sbin' 43 libexecdir='${exec_prefix}/libexec' 44 datadir='${prefix}/share' 45 sysconfdir='${prefix}/etc' 46 sharedstatedir='${prefix}/com' 47 localstatedir='${prefix}/var' 48 libdir='${exec_prefix}/lib' 49 includedir='${prefix}/include' 50 oldincludedir='/usr/include' 51 infodir='${prefix}/info' 52 mandir='${prefix}/man' 41 53 42 54 # Initialize some other variables. 43 55 subdirs= 56 MFLAGS= MAKEFLAGS= 57 # Maximum number of lines to put in a shell here document. 58 ac_max_here_lines=12 44 59 45 60 ac_prev= … … 63 78 case "$ac_option" in 64 79 65 -build | --build | --buil | --bui | --bu | --b) 80 -bindir | --bindir | --bindi | --bind | --bin | --bi) 81 ac_prev=bindir ;; 82 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 83 bindir="$ac_optarg" ;; 84 85 -build | --build | --buil | --bui | --bu) 66 86 ac_prev=build ;; 67 -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)87 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 68 88 build="$ac_optarg" ;; 69 89 … … 74 94 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 75 95 cache_file="$ac_optarg" ;; 96 97 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 98 ac_prev=datadir ;; 99 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 100 | --da=*) 101 datadir="$ac_optarg" ;; 76 102 77 103 -disable-* | --disable-*) … … 125 151 --prefix=PREFIX install architecture-independent files in PREFIX 126 152 [$ac_default_prefix] 127 --exec-prefix= PREFIX install architecture-dependent files inPREFIX153 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 128 154 [same as prefix] 155 --bindir=DIR user executables in DIR [EPREFIX/bin] 156 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 157 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 158 --datadir=DIR read-only architecture-independent data in DIR 159 [PREFIX/share] 160 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 161 --sharedstatedir=DIR modifiable architecture-independent data in DIR 162 [PREFIX/com] 163 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 164 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 165 --includedir=DIR C header files in DIR [PREFIX/include] 166 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 167 --infodir=DIR info documentation in DIR [PREFIX/info] 168 --mandir=DIR man documentation in DIR [PREFIX/man] 129 169 --srcdir=DIR find the sources in DIR [configure dir or ..] 130 170 --program-prefix=PREFIX prepend PREFIX to installed program names 131 171 --program-suffix=SUFFIX append SUFFIX to installed program names 132 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 172 --program-transform-name=PROGRAM 173 run sed PROGRAM on installed program names 174 EOF 175 cat << EOF 133 176 Host type: 134 177 --build=BUILD configure for building on BUILD [BUILD=HOST] … … 142 185 --x-includes=DIR X include files are in DIR 143 186 --x-libraries=DIR X library files are in DIR 144 --enable and --with options recognized:$ac_help 145 EOF 187 EOF 188 if test -n "$ac_help"; then 189 echo "--enable and --with options recognized:$ac_help" 190 fi 146 191 exit 0 ;; 147 192 … … 151 196 host="$ac_optarg" ;; 152 197 198 -includedir | --includedir | --includedi | --included | --include \ 199 | --includ | --inclu | --incl | --inc) 200 ac_prev=includedir ;; 201 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 202 | --includ=* | --inclu=* | --incl=* | --inc=*) 203 includedir="$ac_optarg" ;; 204 205 -infodir | --infodir | --infodi | --infod | --info | --inf) 206 ac_prev=infodir ;; 207 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 208 infodir="$ac_optarg" ;; 209 210 -libdir | --libdir | --libdi | --libd) 211 ac_prev=libdir ;; 212 -libdir=* | --libdir=* | --libdi=* | --libd=*) 213 libdir="$ac_optarg" ;; 214 215 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 216 | --libexe | --libex | --libe) 217 ac_prev=libexecdir ;; 218 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 219 | --libexe=* | --libex=* | --libe=*) 220 libexecdir="$ac_optarg" ;; 221 222 -localstatedir | --localstatedir | --localstatedi | --localstated \ 223 | --localstate | --localstat | --localsta | --localst \ 224 | --locals | --local | --loca | --loc | --lo) 225 ac_prev=localstatedir ;; 226 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 227 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 228 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 229 localstatedir="$ac_optarg" ;; 230 231 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 232 ac_prev=mandir ;; 233 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 234 mandir="$ac_optarg" ;; 235 153 236 -nfp | --nfp | --nf) 154 237 # Obsolete; use --without-fp. … … 162 245 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 163 246 no_recursion=yes ;; 247 248 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 249 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 250 | --oldin | --oldi | --old | --ol | --o) 251 ac_prev=oldincludedir ;; 252 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 253 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 254 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 255 oldincludedir="$ac_optarg" ;; 164 256 165 257 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) … … 203 295 silent=yes ;; 204 296 297 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 298 ac_prev=sbindir ;; 299 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 300 | --sbi=* | --sb=*) 301 sbindir="$ac_optarg" ;; 302 303 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 304 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 305 | --sharedst | --shareds | --shared | --share | --shar \ 306 | --sha | --sh) 307 ac_prev=sharedstatedir ;; 308 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 309 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 310 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 311 | --sha=* | --sh=*) 312 sharedstatedir="$ac_optarg" ;; 313 205 314 -site | --site | --sit) 206 315 ac_prev=site ;; … … 213 322 srcdir="$ac_optarg" ;; 214 323 324 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 325 | --syscon | --sysco | --sysc | --sys | --sy) 326 ac_prev=sysconfdir ;; 327 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 328 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 329 sysconfdir="$ac_optarg" ;; 330 215 331 -target | --target | --targe | --targ | --tar | --ta | --t) 216 332 ac_prev=target ;; … … 222 338 223 339 -version | --version | --versio | --versi | --vers) 224 echo "configure generated by autoconf version 2. 4"340 echo "configure generated by autoconf version 2.12" 225 341 exit 0 ;; 226 342 … … 268 384 ;; 269 385 270 *) 386 *) 271 387 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 272 388 echo "configure: warning: $ac_option: invalid host type" 1>&2 … … 324 440 325 441 # NLS nuisances. 326 # Only set LANG and LC_ALL to C if already set. 327 # These must not be set unconditionally because not all systems understand 328 # e.g. LANG=C (notably SCO). 442 # Only set these to C if already set. These must not be set unconditionally 443 # because not all systems understand e.g. LANG=C (notably SCO). 444 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 445 # Non-C LC_CTYPE values break the ctype check. 446 if test "${LANG+set}" = set; then LANG=C; export LANG; fi 329 447 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 330 if test "${LANG+set}" = set; then LANG=C; export LANG; fi 448 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 449 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 331 450 332 451 # confdefs.h avoids OS command line length limits that DEFS can exceed. … … 388 507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 389 508 ac_cpp='$CPP $CPPFLAGS' 390 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' 391 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' 509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 510 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 511 cross_compiling=$ac_cv_prog_cc_cross 392 512 393 513 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then … … 408 528 program_transform_name= 409 529 else 410 # Double any \ or $. 411 echo 's,\\,\\\\,g; s,\$,$$,g' > conftestsed 530 # Double any \ or $. echo might interpret backslashes. 531 cat <<\EOF_SED > conftestsed 532 s,\\,\\\\,g; s,\$,$$,g 533 EOF_SED 412 534 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 413 535 rm -f conftestsed … … 437 559 438 560 439 for ac_prog in $CCC c++ g++ gcc CC cxx 561 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ 440 562 do 441 563 # Extract the first word of "$ac_prog", so it can be a program name with args. 442 564 set dummy $ac_prog; ac_word=$2 443 565 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 566 echo "configure:567: checking for $ac_word" >&5 444 567 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 445 568 echo $ac_n "(cached) $ac_c" 1>&6 … … 471 594 472 595 596 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 597 echo "configure:598: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 598 599 ac_ext=C 600 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 601 ac_cpp='$CXXCPP $CPPFLAGS' 602 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 603 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 604 cross_compiling=$ac_cv_prog_cxx_cross 605 606 cat > conftest.$ac_ext <<EOF 607 #line 608 "configure" 608 #include "confdefs.h" 609 main(){return(0);} 610 EOF 611 if { (eval echo configure:612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 612 ac_cv_prog_cxx_works=yes 613 # If we can't run a trivial program, we are probably using a cross compiler. 614 if (./conftest; exit) 2>/dev/null; then 615 ac_cv_prog_cxx_cross=no 616 else 617 ac_cv_prog_cxx_cross=yes 618 fi 619 else 620 echo "configure: failed program was:" >&5 621 cat conftest.$ac_ext >&5 622 ac_cv_prog_cxx_works=no 623 fi 624 rm -fr conftest* 625 ac_ext=c 626 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 627 ac_cpp='$CPP $CPPFLAGS' 628 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 629 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 630 cross_compiling=$ac_cv_prog_cc_cross 631 632 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 633 if test $ac_cv_prog_cxx_works = no; then 634 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } 635 fi 636 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 637 echo "configure:638: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 638 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 639 cross_compiling=$ac_cv_prog_cxx_cross 640 473 641 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 642 echo "configure:643: checking whether we are using GNU C++" >&5 474 643 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 475 644 echo $ac_n "(cached) $ac_c" 1>&6 … … 480 649 #endif 481 650 EOF 482 if ${CXX-g++} -E conftest.C 2>&5| egrep yes >/dev/null 2>&1; then651 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 483 652 ac_cv_prog_gxx=yes 484 653 else … … 486 655 fi 487 656 fi 657 488 658 echo "$ac_t""$ac_cv_prog_gxx" 1>&6 659 489 660 if test $ac_cv_prog_gxx = yes; then 490 661 GXX=yes 491 if test "${CXXFLAGS+set}" != set; then 492 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 493 if eval "test \"`echo '$''{'ac_cv_prog_gxx_g'+set}'`\" = set"; then 662 ac_test_CXXFLAGS="${CXXFLAGS+set}" 663 ac_save_CXXFLAGS="$CXXFLAGS" 664 CXXFLAGS= 665 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 666 echo "configure:667: checking whether ${CXX-g++} accepts -g" >&5 667 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 494 668 echo $ac_n "(cached) $ac_c" 1>&6 495 669 else 496 670 echo 'void f(){}' > conftest.cc 497 671 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then 498 ac_cv_prog_gxx_g=yes 499 else 500 ac_cv_prog_gxx_g=no 501 fi 502 rm -f conftest* 503 504 fi 505 echo "$ac_t""$ac_cv_prog_gxx_g" 1>&6 506 if test $ac_cv_prog_gxx_g = yes; then 507 CXXFLAGS="-g -O" 508 else 509 CXXFLAGS="-O" 510 fi 672 ac_cv_prog_cxx_g=yes 673 else 674 ac_cv_prog_cxx_g=no 675 fi 676 rm -f conftest* 677 678 fi 679 680 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 681 if test "$ac_test_CXXFLAGS" = set; then 682 CXXFLAGS="$ac_save_CXXFLAGS" 683 elif test $ac_cv_prog_cxx_g = yes; then 684 CXXFLAGS="-g -O2" 685 else 686 CXXFLAGS="-O2" 511 687 fi 512 688 else … … 520 696 set dummy $ac_prog; ac_word=$2 521 697 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 698 echo "configure:699: checking for $ac_word" >&5 522 699 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then 523 700 echo $ac_n "(cached) $ac_c" 1>&6 … … 552 729 set dummy $ac_prog; ac_word=$2 553 730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 731 echo "configure:732: checking for $ac_word" >&5 554 732 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 555 733 echo $ac_n "(cached) $ac_c" 1>&6 … … 583 761 set dummy gcc; ac_word=$2 584 762 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 763 echo "configure:764: checking for $ac_word" >&5 585 764 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 586 765 echo $ac_n "(cached) $ac_c" 1>&6 … … 598 777 done 599 778 IFS="$ac_save_ifs" 600 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"601 779 fi 602 780 fi … … 608 786 fi 609 787 788 if test -z "$CC"; then 789 # Extract the first word of "cc", so it can be a program name with args. 790 set dummy cc; ac_word=$2 791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 792 echo "configure:793: checking for $ac_word" >&5 793 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 794 echo $ac_n "(cached) $ac_c" 1>&6 795 else 796 if test -n "$CC"; then 797 ac_cv_prog_CC="$CC" # Let the user override the test. 798 else 799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 800 ac_prog_rejected=no 801 for ac_dir in $PATH; do 802 test -z "$ac_dir" && ac_dir=. 803 if test -f $ac_dir/$ac_word; then 804 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 805 ac_prog_rejected=yes 806 continue 807 fi 808 ac_cv_prog_CC="cc" 809 break 810 fi 811 done 812 IFS="$ac_save_ifs" 813 if test $ac_prog_rejected = yes; then 814 # We found a bogon in the path, so make sure we never use it. 815 set dummy $ac_cv_prog_CC 816 shift 817 if test $# -gt 0; then 818 # We chose a different compiler from the bogus one. 819 # However, it has the same basename, so the bogon will be chosen 820 # first if we set CC to just the basename; use the full file name. 821 shift 822 set dummy "$ac_dir/$ac_word" "$@" 823 shift 824 ac_cv_prog_CC="$@" 825 fi 826 fi 827 fi 828 fi 829 CC="$ac_cv_prog_CC" 830 if test -n "$CC"; then 831 echo "$ac_t""$CC" 1>&6 832 else 833 echo "$ac_t""no" 1>&6 834 fi 835 836 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 837 fi 838 839 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 840 echo "configure:841: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 841 842 ac_ext=c 843 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 844 ac_cpp='$CPP $CPPFLAGS' 845 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 846 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 847 cross_compiling=$ac_cv_prog_cc_cross 848 849 cat > conftest.$ac_ext <<EOF 850 #line 851 "configure" 851 #include "confdefs.h" 852 main(){return(0);} 853 EOF 854 if { (eval echo configure:855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 855 ac_cv_prog_cc_works=yes 856 # If we can't run a trivial program, we are probably using a cross compiler. 857 if (./conftest; exit) 2>/dev/null; then 858 ac_cv_prog_cc_cross=no 859 else 860 ac_cv_prog_cc_cross=yes 861 fi 862 else 863 echo "configure: failed program was:" >&5 864 cat conftest.$ac_ext >&5 865 ac_cv_prog_cc_works=no 866 fi 867 rm -fr conftest* 868 869 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 870 if test $ac_cv_prog_cc_works = no; then 871 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 872 fi 873 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 874 echo "configure:875: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 875 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 876 cross_compiling=$ac_cv_prog_cc_cross 610 877 611 878 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 879 echo "configure:880: checking whether we are using GNU C" >&5 612 880 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 613 881 echo $ac_n "(cached) $ac_c" 1>&6 … … 618 886 #endif 619 887 EOF 620 if ${CC-cc} -E conftest.c 2>&5| egrep yes >/dev/null 2>&1; then888 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 621 889 ac_cv_prog_gcc=yes 622 890 else … … 624 892 fi 625 893 fi 894 626 895 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 896 627 897 if test $ac_cv_prog_gcc = yes; then 628 898 GCC=yes 629 if test "${CFLAGS+set}" != set; then 630 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 631 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then 899 ac_test_CFLAGS="${CFLAGS+set}" 900 ac_save_CFLAGS="$CFLAGS" 901 CFLAGS= 902 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 903 echo "configure:904: checking whether ${CC-cc} accepts -g" >&5 904 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 632 905 echo $ac_n "(cached) $ac_c" 1>&6 633 906 else 634 907 echo 'void f(){}' > conftest.c 635 908 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 636 ac_cv_prog_gcc_g=yes 637 else 638 ac_cv_prog_gcc_g=no 639 fi 640 rm -f conftest* 641 642 fi 643 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6 644 if test $ac_cv_prog_gcc_g = yes; then 645 CFLAGS="-g -O" 646 else 647 CFLAGS="-O" 648 fi 909 ac_cv_prog_cc_g=yes 910 else 911 ac_cv_prog_cc_g=no 912 fi 913 rm -f conftest* 914 915 fi 916 917 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 918 if test "$ac_test_CFLAGS" = set; then 919 CFLAGS="$ac_save_CFLAGS" 920 elif test $ac_cv_prog_cc_g = yes; then 921 CFLAGS="-g -O2" 922 else 923 CFLAGS="-O2" 649 924 fi 650 925 else … … 683 958 # ./install, which can be erroneously created by make from ./install.sh. 684 959 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 960 echo "configure:961: checking for a BSD compatible install" >&5 685 961 if test -z "$INSTALL"; then 686 962 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 687 963 echo $ac_n "(cached) $ac_c" 1>&6 688 964 else 689 IFS="${IFS= }"; ac_save_ ifs="$IFS"; IFS="${IFS}:"965 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 690 966 for ac_dir in $PATH; do 691 967 # Account for people who put trailing slashes in PATH elements. … … 710 986 esac 711 987 done 712 IFS="$ac_save_ifs" 713 # As a last resort, use the slow shell script. 714 test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh" 715 fi 716 INSTALL="$ac_cv_path_install" 988 IFS="$ac_save_IFS" 989 990 fi 991 if test "${ac_cv_path_install+set}" = set; then 992 INSTALL="$ac_cv_path_install" 993 else 994 # As a last resort, use the slow shell script. We don't cache a 995 # path for INSTALL within a source directory, because that will 996 # break other packages using the cache if that directory is 997 # removed, or if the path is relative. 998 INSTALL="$ac_install_sh" 999 fi 717 1000 fi 718 1001 echo "$ac_t""$INSTALL" 1>&6 … … 725 1008 726 1009 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1010 echo "configure:1011: checking whether ln -s works" >&5 727 1011 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 728 1012 echo $ac_n "(cached) $ac_c" 1>&6 … … 745 1029 746 1030 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 747 set dummy ${MAKE-make}; ac_make=$2 1031 echo "configure:1032: checking whether ${MAKE-make} sets \${MAKE}" >&5 1032 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 748 1033 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 749 1034 echo $ac_n "(cached) $ac_c" 1>&6 … … 773 1058 set dummy ranlib; ac_word=$2 774 1059 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1060 echo "configure:1061: checking for $ac_word" >&5 775 1061 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 776 1062 echo $ac_n "(cached) $ac_c" 1>&6 … … 800 1086 801 1087 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1088 echo "configure:1089: checking how to run the C preprocessor" >&5 802 1089 # On Suns, sometimes $CPP names a directory. 803 1090 if test -n "$CPP" && test -d "$CPP"; then … … 814 1101 # not just through cpp. 815 1102 cat > conftest.$ac_ext <<EOF 816 #line 817"configure"1103 #line 1104 "configure" 817 1104 #include "confdefs.h" 818 1105 #include <assert.h> 819 1106 Syntax Error 820 1107 EOF 821 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1109 { (eval echo configure:1110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 822 1110 ac_err=`grep -v '^ *+' conftest.out` 823 1111 if test -z "$ac_err"; then … … 825 1113 else 826 1114 echo "$ac_err" >&5 1115 echo "configure: failed program was:" >&5 1116 cat conftest.$ac_ext >&5 827 1117 rm -rf conftest* 828 1118 CPP="${CC-cc} -E -traditional-cpp" 829 1119 cat > conftest.$ac_ext <<EOF 830 #line 831 "configure"1120 #line 1121 "configure" 831 1121 #include "confdefs.h" 832 1122 #include <assert.h> 833 1123 Syntax Error 834 1124 EOF 835 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1125 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1126 { (eval echo configure:1127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 836 1127 ac_err=`grep -v '^ *+' conftest.out` 837 1128 if test -z "$ac_err"; then … … 839 1130 else 840 1131 echo "$ac_err" >&5 1132 echo "configure: failed program was:" >&5 1133 cat conftest.$ac_ext >&5 841 1134 rm -rf conftest* 842 1135 CPP=/lib/cpp … … 854 1147 855 1148 echo $ac_n "checking for AIX""... $ac_c" 1>&6 1149 echo "configure:1150: checking for AIX" >&5 856 1150 cat > conftest.$ac_ext <<EOF 857 #line 858"configure"1151 #line 1152 "configure" 858 1152 #include "confdefs.h" 859 1153 #ifdef _AIX … … 877 1171 878 1172 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 1173 echo "configure:1174: checking for POSIXized ISC" >&5 879 1174 if test -d /etc/conf/kconfig.d && 880 1175 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 … … 896 1191 fi 897 1192 898 ac_safe=`echo "minix/config.h" | tr './\055' '___'`1193 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` 899 1194 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 1195 echo "configure:1196: checking for minix/config.h" >&5 900 1196 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 901 1197 echo $ac_n "(cached) $ac_c" 1>&6 902 1198 else 903 1199 cat > conftest.$ac_ext <<EOF 904 #line 905"configure"1200 #line 1201 "configure" 905 1201 #include "confdefs.h" 906 1202 #include <minix/config.h> 907 1203 EOF 908 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1205 { (eval echo configure:1206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 909 1206 ac_err=`grep -v '^ *+' conftest.out` 910 1207 if test -z "$ac_err"; then … … 913 1210 else 914 1211 echo "$ac_err" >&5 1212 echo "configure: failed program was:" >&5 1213 cat conftest.$ac_ext >&5 915 1214 rm -rf conftest* 916 1215 eval "ac_cv_header_$ac_safe=no" … … 942 1241 943 1242 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 1243 echo "configure:1244: checking for ${CC-cc} option to accept ANSI C" >&5 944 1244 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then 945 1245 echo $ac_n "(cached) $ac_c" 1>&6 … … 957 1257 CFLAGS="$ac_save_CFLAGS $ac_arg" 958 1258 cat > conftest.$ac_ext <<EOF 959 #line 960 "configure"1259 #line 1260 "configure" 960 1260 #include "confdefs.h" 961 1261 #if !defined(__STDC__) || __STDC__ != 1 … … 963 1263 #endif 964 1264 965 int main() { return 0; } 966 int t() { 1265 int main() { 967 1266 int test (int i, double x); 968 1267 struct s1 {int (*f) (int a);}; … … 970 1269 ; return 0; } 971 1270 EOF 972 if eval $ac_compile; then1271 if { (eval echo configure:1272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 973 1272 rm -rf conftest* 974 1273 ac_cv_prog_cc_stdc="$ac_arg"; break 975 fi 976 rm -f conftest* 977 1274 else 1275 echo "configure: failed program was:" >&5 1276 cat conftest.$ac_ext >&5 1277 fi 1278 rm -f conftest* 978 1279 done 979 1280 CFLAGS="$ac_save_CFLAGS" … … 989 1290 990 1291 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 1292 echo "configure:1293: checking for function prototypes" >&5 991 1293 if test "$ac_cv_prog_cc_stdc" != no; then 992 1294 echo "$ac_t""yes" 1>&6 … … 1002 1304 1003 1305 echo $ac_n "checking for working const""... $ac_c" 1>&6 1306 echo "configure:1307: checking for working const" >&5 1004 1307 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1005 1308 echo $ac_n "(cached) $ac_c" 1>&6 1006 1309 else 1007 1310 cat > conftest.$ac_ext <<EOF 1008 #line 1009 "configure" 1009 #include "confdefs.h" 1010 1011 int main() { return 0; } 1012 int t() { 1311 #line 1312 "configure" 1312 #include "confdefs.h" 1313 1314 int main() { 1013 1315 1014 1316 /* Ultrix mips cc rejects this. */ … … 1019 1321 /* NEC SVR4.0.2 mips cc rejects this. */ 1020 1322 struct point {int x, y;}; 1021 static struct point const zero ;1323 static struct point const zero = {0,0}; 1022 1324 /* AIX XL C 1.02.0.0 rejects this. 1023 1325 It does not let you subtract one const X* pointer from another in an arm … … 1056 1358 ; return 0; } 1057 1359 EOF 1058 if eval $ac_compile; then1360 if { (eval echo configure:1361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1059 1361 rm -rf conftest* 1060 1362 ac_cv_c_const=yes 1061 1363 else 1364 echo "configure: failed program was:" >&5 1365 cat conftest.$ac_ext >&5 1062 1366 rm -rf conftest* 1063 1367 ac_cv_c_const=no 1064 1368 fi 1065 1369 rm -f conftest* 1066 1067 fi 1370 fi 1371 1068 1372 echo "$ac_t""$ac_cv_c_const" 1>&6 1069 1373 if test $ac_cv_c_const = no; then … … 1074 1378 fi 1075 1379 1076 # If we cannot run a trivial program, we must be cross compiling.1077 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&61078 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then1079 echo $ac_n "(cached) $ac_c" 1>&61080 else1081 if test "$cross_compiling" = yes; then1082 ac_cv_c_cross=yes1083 else1084 cat > conftest.$ac_ext <<EOF1085 #line 1086 "configure"1086 #include "confdefs.h"1087 main(){return(0);}1088 EOF1089 eval $ac_link1090 if test -s conftest && (./conftest; exit) 2>/dev/null; then1091 ac_cv_c_cross=no1092 else1093 ac_cv_c_cross=yes1094 fi1095 fi1096 rm -fr conftest*1097 fi1098 cross_compiling=$ac_cv_c_cross1099 echo "$ac_t""$ac_cv_c_cross" 1>&61100 1101 1380 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1381 echo "configure:1382: checking for ANSI C header files" >&5 1102 1382 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1103 1383 echo $ac_n "(cached) $ac_c" 1>&6 1104 1384 else 1105 1385 cat > conftest.$ac_ext <<EOF 1106 #line 1 107 "configure"1386 #line 1387 "configure" 1107 1387 #include "confdefs.h" 1108 1388 #include <stdlib.h> … … 1111 1391 #include <float.h> 1112 1392 EOF 1113 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1394 { (eval echo configure:1395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1114 1395 ac_err=`grep -v '^ *+' conftest.out` 1115 1396 if test -z "$ac_err"; then … … 1118 1399 else 1119 1400 echo "$ac_err" >&5 1401 echo "configure: failed program was:" >&5 1402 cat conftest.$ac_ext >&5 1120 1403 rm -rf conftest* 1121 1404 ac_cv_header_stdc=no … … 1126 1409 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1127 1410 cat > conftest.$ac_ext <<EOF 1128 #line 1 129"configure"1411 #line 1412 "configure" 1129 1412 #include "confdefs.h" 1130 1413 #include <string.h> … … 1144 1427 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1145 1428 cat > conftest.$ac_ext <<EOF 1146 #line 1 147"configure"1429 #line 1430 "configure" 1147 1430 #include "confdefs.h" 1148 1431 #include <stdlib.h> … … 1162 1445 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1163 1446 if test "$cross_compiling" = yes; then 1164 ac_cv_header_stdc=no1165 else 1166 cat > conftest.$ac_ext <<EOF1167 #line 1 168"configure"1447 : 1448 else 1449 cat > conftest.$ac_ext <<EOF 1450 #line 1451 "configure" 1168 1451 #include "confdefs.h" 1169 1452 #include <ctype.h> … … 1176 1459 1177 1460 EOF 1178 eval $ac_link 1179 if test -s conftest && (./conftest; exit) 2>/dev/null;then1461 if { (eval echo configure:1462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 1462 then 1180 1463 : 1181 1464 else 1465 echo "configure: failed program was:" >&5 1466 cat conftest.$ac_ext >&5 1467 rm -fr conftest* 1182 1468 ac_cv_header_stdc=no 1183 1469 fi 1184 fi1185 1470 rm -fr conftest* 1186 1471 fi 1187 fi 1472 1473 fi 1474 fi 1475 1188 1476 echo "$ac_t""$ac_cv_header_stdc" 1>&6 1189 1477 if test $ac_cv_header_stdc = yes; then … … 1195 1483 1196 1484 echo $ac_n "checking for off_t""... $ac_c" 1>&6 1485 echo "configure:1486: checking for off_t" >&5 1197 1486 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then 1198 1487 echo $ac_n "(cached) $ac_c" 1>&6 1199 1488 else 1200 1489 cat > conftest.$ac_ext <<EOF 1201 #line 1 202"configure"1490 #line 1491 "configure" 1202 1491 #include "confdefs.h" 1203 1492 #include <sys/types.h> 1204 1493 #if STDC_HEADERS 1205 1494 #include <stdlib.h> 1495 #include <stddef.h> 1206 1496 #endif 1207 1497 EOF 1208 1498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1209 egrep "off_t " >/dev/null 2>&1; then1499 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 1210 1500 rm -rf conftest* 1211 1501 ac_cv_type_off_t=yes … … 1226 1516 1227 1517 echo $ac_n "checking for size_t""... $ac_c" 1>&6 1518 echo "configure:1519: checking for size_t" >&5 1228 1519 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 1229 1520 echo $ac_n "(cached) $ac_c" 1>&6 1230 1521 else 1231 1522 cat > conftest.$ac_ext <<EOF 1232 #line 1 233"configure"1523 #line 1524 "configure" 1233 1524 #include "confdefs.h" 1234 1525 #include <sys/types.h> 1235 1526 #if STDC_HEADERS 1236 1527 #include <stdlib.h> 1528 #include <stddef.h> 1237 1529 #endif 1238 1530 EOF 1239 1531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1240 egrep "size_t " >/dev/null 2>&1; then1532 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 1241 1533 rm -rf conftest* 1242 1534 ac_cv_type_size_t=yes … … 1257 1549 1258 1550 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 1551 echo "configure:1552: checking whether time.h and sys/time.h may both be included" >&5 1259 1552 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 1260 1553 echo $ac_n "(cached) $ac_c" 1>&6 1261 1554 else 1262 1555 cat > conftest.$ac_ext <<EOF 1263 #line 1 264"configure"1556 #line 1557 "configure" 1264 1557 #include "confdefs.h" 1265 1558 #include <sys/types.h> 1266 1559 #include <sys/time.h> 1267 1560 #include <time.h> 1268 int main() { return 0; } 1269 int t() { 1561 int main() { 1270 1562 struct tm *tp; 1271 1563 ; return 0; } 1272 1564 EOF 1273 if eval $ac_compile; then1565 if { (eval echo configure:1566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1274 1566 rm -rf conftest* 1275 1567 ac_cv_header_time=yes 1276 1568 else 1569 echo "configure: failed program was:" >&5 1570 cat conftest.$ac_ext >&5 1277 1571 rm -rf conftest* 1278 1572 ac_cv_header_time=no 1279 1573 fi 1280 1574 rm -f conftest* 1281 1282 fi 1575 fi 1576 1283 1577 echo "$ac_t""$ac_cv_header_time" 1>&6 1284 1578 if test $ac_cv_header_time = yes; then … … 1290 1584 1291 1585 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 1586 echo "configure:1587: checking whether struct tm is in sys/time.h or time.h" >&5 1292 1587 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 1293 1588 echo $ac_n "(cached) $ac_c" 1>&6 1294 1589 else 1295 1590 cat > conftest.$ac_ext <<EOF 1296 #line 1 297"configure"1591 #line 1592 "configure" 1297 1592 #include "confdefs.h" 1298 1593 #include <sys/types.h> 1299 1594 #include <time.h> 1300 int main() { return 0; } 1301 int t() { 1595 int main() { 1302 1596 struct tm *tp; tp->tm_sec; 1303 1597 ; return 0; } 1304 1598 EOF 1305 if eval $ac_compile; then1599 if { (eval echo configure:1600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1306 1600 rm -rf conftest* 1307 1601 ac_cv_struct_tm=time.h 1308 1602 else 1603 echo "configure: failed program was:" >&5 1604 cat conftest.$ac_ext >&5 1309 1605 rm -rf conftest* 1310 1606 ac_cv_struct_tm=sys/time.h 1311 1607 fi 1312 1608 rm -f conftest* 1313 1314 fi 1609 fi 1610 1315 1611 echo "$ac_t""$ac_cv_struct_tm" 1>&6 1316 1612 if test $ac_cv_struct_tm = sys/time.h; then … … 1324 1620 if test "$ac_cv_prog_cc_stdc" = '-Xc'; then 1325 1621 cat > conftest.$ac_ext <<EOF 1326 #line 1 327"configure"1622 #line 1623 "configure" 1327 1623 #include "confdefs.h" 1328 1624 #include <stdio.h> 1329 1625 1330 int main() { return 0; } 1331 int t() { 1626 int main() { 1332 1627 FILE *rubbish = popen("yes", "r"); 1333 1628 ; return 0; } 1334 1629 EOF 1335 if eval $ac_compile; then1630 if { (eval echo configure:1631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1336 1631 : 1337 1632 else 1633 echo "configure: failed program was:" >&5 1634 cat conftest.$ac_ext >&5 1338 1635 rm -rf conftest* 1339 1636 CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa' 1340 1637 fi 1341 1638 rm -f conftest* 1342 1343 fi 1344 1345 1346 echo $ac_n "checking for -lm""... $ac_c" 1>&6 1347 if eval "test \"`echo '$''{'ac_cv_lib_m'+set}'`\" = set"; then 1639 fi 1640 1641 1642 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 1643 echo "configure:1644: checking for main in -lm" >&5 1644 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` 1645 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1348 1646 echo $ac_n "(cached) $ac_c" 1>&6 1349 1647 else … … 1351 1649 LIBS="-lm $LIBS" 1352 1650 cat > conftest.$ac_ext <<EOF 1353 #line 1354 "configure" 1354 #include "confdefs.h" 1355 1356 int main() { return 0; } 1357 int t() { 1651 #line 1652 "configure" 1652 #include "confdefs.h" 1653 1654 int main() { 1358 1655 main() 1359 1656 ; return 0; } 1360 1657 EOF 1361 if eval $ac_link; then 1362 rm -rf conftest* 1363 eval "ac_cv_lib_m=yes" 1364 else 1365 rm -rf conftest* 1366 eval "ac_cv_lib_m=no" 1658 if { (eval echo configure:1659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1659 rm -rf conftest* 1660 eval "ac_cv_lib_$ac_lib_var=yes" 1661 else 1662 echo "configure: failed program was:" >&5 1663 cat conftest.$ac_ext >&5 1664 rm -rf conftest* 1665 eval "ac_cv_lib_$ac_lib_var=no" 1367 1666 fi 1368 1667 rm -f conftest* … … 1370 1669 1371 1670 fi 1372 if eval "test \"`echo '$ac_cv_lib_' m`\" = yes"; then1671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1373 1672 echo "$ac_t""yes" 1>&6 1374 ac_tr_lib=HAVE_LIB`echo m | tr '[a-z]' '[A-Z]'` 1673 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1674 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1375 1675 cat >> confdefs.h <<EOF 1376 1676 #define $ac_tr_lib 1 … … 1387 1687 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h 1388 1688 do 1389 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`1689 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1390 1690 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 1691 echo "configure:1692: checking for $ac_hdr that defines DIR" >&5 1391 1692 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then 1392 1693 echo $ac_n "(cached) $ac_c" 1>&6 1393 1694 else 1394 1695 cat > conftest.$ac_ext <<EOF 1395 #line 1 396"configure"1696 #line 1697 "configure" 1396 1697 #include "confdefs.h" 1397 1698 #include <sys/types.h> 1398 1699 #include <$ac_hdr> 1399 int main() { return 0; } 1400 int t() { 1700 int main() { 1401 1701 DIR *dirp = 0; 1402 1702 ; return 0; } 1403 1703 EOF 1404 if eval $ac_compile; then1704 if { (eval echo configure:1705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1405 1705 rm -rf conftest* 1406 1706 eval "ac_cv_header_dirent_$ac_safe=yes" 1407 1707 else 1708 echo "configure: failed program was:" >&5 1709 cat conftest.$ac_ext >&5 1408 1710 rm -rf conftest* 1409 1711 eval "ac_cv_header_dirent_$ac_safe=no" 1410 1712 fi 1411 1713 rm -f conftest* 1412 1413 1714 fi 1414 1715 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then 1415 1716 echo "$ac_t""yes" 1>&6 1416 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`1717 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1417 1718 cat >> confdefs.h <<EOF 1418 1719 #define $ac_tr_hdr 1 … … 1425 1726 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 1426 1727 if test $ac_header_dirent = dirent.h; then 1427 echo $ac_n "checking for -ldir""... $ac_c" 1>&6 1428 if eval "test \"`echo '$''{'ac_cv_lib_dir'+set}'`\" = set"; then 1728 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 1729 echo "configure:1730: checking for opendir in -ldir" >&5 1730 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` 1731 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1429 1732 echo $ac_n "(cached) $ac_c" 1>&6 1430 1733 else … … 1432 1735 LIBS="-ldir $LIBS" 1433 1736 cat > conftest.$ac_ext <<EOF 1434 #line 1435 "configure" 1435 #include "confdefs.h" 1436 1437 int main() { return 0; } 1438 int t() { 1737 #line 1738 "configure" 1738 #include "confdefs.h" 1739 /* Override any gcc2 internal prototype to avoid an error. */ 1740 /* We use char because int might match the return type of a gcc2 1741 builtin and then its argument prototype would still apply. */ 1742 char opendir(); 1743 1744 int main() { 1439 1745 opendir() 1440 1746 ; return 0; } 1441 1747 EOF 1442 if eval $ac_link; then 1443 rm -rf conftest* 1444 eval "ac_cv_lib_dir=yes" 1445 else 1446 rm -rf conftest* 1447 eval "ac_cv_lib_dir=no" 1748 if { (eval echo configure:1749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1749 rm -rf conftest* 1750 eval "ac_cv_lib_$ac_lib_var=yes" 1751 else 1752 echo "configure: failed program was:" >&5 1753 cat conftest.$ac_ext >&5 1754 rm -rf conftest* 1755 eval "ac_cv_lib_$ac_lib_var=no" 1448 1756 fi 1449 1757 rm -f conftest* … … 1451 1759 1452 1760 fi 1453 if eval "test \"`echo '$ac_cv_lib_' dir`\" = yes"; then1761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1454 1762 echo "$ac_t""yes" 1>&6 1455 1763 LIBS="$LIBS -ldir" … … 1459 1767 1460 1768 else 1461 echo $ac_n "checking for -lx""... $ac_c" 1>&6 1462 if eval "test \"`echo '$''{'ac_cv_lib_x'+set}'`\" = set"; then 1769 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 1770 echo "configure:1771: checking for opendir in -lx" >&5 1771 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` 1772 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1463 1773 echo $ac_n "(cached) $ac_c" 1>&6 1464 1774 else … … 1466 1776 LIBS="-lx $LIBS" 1467 1777 cat > conftest.$ac_ext <<EOF 1468 #line 1469 "configure" 1469 #include "confdefs.h" 1470 1471 int main() { return 0; } 1472 int t() { 1778 #line 1779 "configure" 1779 #include "confdefs.h" 1780 /* Override any gcc2 internal prototype to avoid an error. */ 1781 /* We use char because int might match the return type of a gcc2 1782 builtin and then its argument prototype would still apply. */ 1783 char opendir(); 1784 1785 int main() { 1473 1786 opendir() 1474 1787 ; return 0; } 1475 1788 EOF 1476 if eval $ac_link; then 1477 rm -rf conftest* 1478 eval "ac_cv_lib_x=yes" 1479 else 1480 rm -rf conftest* 1481 eval "ac_cv_lib_x=no" 1789 if { (eval echo configure:1790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1790 rm -rf conftest* 1791 eval "ac_cv_lib_$ac_lib_var=yes" 1792 else 1793 echo "configure: failed program was:" >&5 1794 cat conftest.$ac_ext >&5 1795 rm -rf conftest* 1796 eval "ac_cv_lib_$ac_lib_var=no" 1482 1797 fi 1483 1798 rm -f conftest* … … 1485 1800 1486 1801 fi 1487 if eval "test \"`echo '$ac_cv_lib_' x`\" = yes"; then1802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1488 1803 echo "$ac_t""yes" 1>&6 1489 1804 LIBS="$LIBS -lx" … … 1495 1810 1496 1811 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1812 echo "configure:1813: checking for ANSI C header files" >&5 1497 1813 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1498 1814 echo $ac_n "(cached) $ac_c" 1>&6 1499 1815 else 1500 1816 cat > conftest.$ac_ext <<EOF 1501 #line 1 502"configure"1817 #line 1818 "configure" 1502 1818 #include "confdefs.h" 1503 1819 #include <stdlib.h> … … 1506 1822 #include <float.h> 1507 1823 EOF 1508 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1825 { (eval echo configure:1826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1509 1826 ac_err=`grep -v '^ *+' conftest.out` 1510 1827 if test -z "$ac_err"; then … … 1513 1830 else 1514 1831 echo "$ac_err" >&5 1832 echo "configure: failed program was:" >&5 1833 cat conftest.$ac_ext >&5 1515 1834 rm -rf conftest* 1516 1835 ac_cv_header_stdc=no … … 1521 1840 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1522 1841 cat > conftest.$ac_ext <<EOF 1523 #line 1 524"configure"1842 #line 1843 "configure" 1524 1843 #include "confdefs.h" 1525 1844 #include <string.h> … … 1539 1858 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1540 1859 cat > conftest.$ac_ext <<EOF 1541 #line 1 542"configure"1860 #line 1861 "configure" 1542 1861 #include "confdefs.h" 1543 1862 #include <stdlib.h> … … 1557 1876 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1558 1877 if test "$cross_compiling" = yes; then 1559 ac_cv_header_stdc=no1560 else 1561 cat > conftest.$ac_ext <<EOF1562 #line 1 563"configure"1878 : 1879 else 1880 cat > conftest.$ac_ext <<EOF 1881 #line 1882 "configure" 1563 1882 #include "confdefs.h" 1564 1883 #include <ctype.h> … … 1571 1890 1572 1891 EOF 1573 eval $ac_link 1574 if test -s conftest && (./conftest; exit) 2>/dev/null;then1892 if { (eval echo configure:1893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 1893 then 1575 1894 : 1576 1895 else 1896 echo "configure: failed program was:" >&5 1897 cat conftest.$ac_ext >&5 1898 rm -fr conftest* 1577 1899 ac_cv_header_stdc=no 1578 1900 fi 1579 fi1580 1901 rm -fr conftest* 1581 1902 fi 1582 fi 1903 1904 fi 1905 fi 1906 1583 1907 echo "$ac_t""$ac_cv_header_stdc" 1>&6 1584 1908 if test $ac_cv_header_stdc = yes; then … … 1591 1915 for ac_hdr in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h 1592 1916 do 1593 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`1917 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1594 1918 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1919 echo "configure:1920: checking for $ac_hdr" >&5 1595 1920 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1596 1921 echo $ac_n "(cached) $ac_c" 1>&6 1597 1922 else 1598 1923 cat > conftest.$ac_ext <<EOF 1599 #line 1 600"configure"1924 #line 1925 "configure" 1600 1925 #include "confdefs.h" 1601 1926 #include <$ac_hdr> 1602 1927 EOF 1603 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1929 { (eval echo configure:1930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1604 1930 ac_err=`grep -v '^ *+' conftest.out` 1605 1931 if test -z "$ac_err"; then … … 1608 1934 else 1609 1935 echo "$ac_err" >&5 1936 echo "configure: failed program was:" >&5 1937 cat conftest.$ac_ext >&5 1610 1938 rm -rf conftest* 1611 1939 eval "ac_cv_header_$ac_safe=no" … … 1615 1943 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1616 1944 echo "$ac_t""yes" 1>&6 1617 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`1945 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1618 1946 cat >> confdefs.h <<EOF 1619 1947 #define $ac_tr_hdr 1 … … 1626 1954 1627 1955 cat > conftest.$ac_ext <<EOF 1628 #line 1 629"configure"1956 #line 1957 "configure" 1629 1957 #include "confdefs.h" 1630 1958 #include <stdio.h> … … 1641 1969 1642 1970 cat > conftest.$ac_ext <<EOF 1643 #line 1 644"configure"1971 #line 1972 "configure" 1644 1972 #include "confdefs.h" 1645 1973 #include <stdio.h> … … 1656 1984 1657 1985 cat > conftest.$ac_ext <<EOF 1658 #line 1 659"configure"1986 #line 1987 "configure" 1659 1987 #include "confdefs.h" 1660 1988 #include <sys/procfs.h> … … 1674 2002 # for constant arguments. Useless! 1675 2003 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 2004 echo "configure:2005: checking for working alloca.h" >&5 1676 2005 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 1677 2006 echo $ac_n "(cached) $ac_c" 1>&6 1678 2007 else 1679 2008 cat > conftest.$ac_ext <<EOF 1680 #line 1681"configure"2009 #line 2010 "configure" 1681 2010 #include "confdefs.h" 1682 2011 #include <alloca.h> 1683 int main() { return 0; } 1684 int t() { 2012 int main() { 1685 2013 char *p = alloca(2 * sizeof(int)); 1686 2014 ; return 0; } 1687 2015 EOF 1688 if eval $ac_link; then2016 if { (eval echo configure:2017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1689 2017 rm -rf conftest* 1690 2018 ac_cv_header_alloca_h=yes 1691 2019 else 2020 echo "configure: failed program was:" >&5 2021 cat conftest.$ac_ext >&5 1692 2022 rm -rf conftest* 1693 2023 ac_cv_header_alloca_h=no 1694 2024 fi 1695 2025 rm -f conftest* 1696 1697 fi 2026 fi 2027 1698 2028 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 1699 2029 if test $ac_cv_header_alloca_h = yes; then … … 1705 2035 1706 2036 echo $ac_n "checking for alloca""... $ac_c" 1>&6 1707 if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then 2037 echo "configure:2038: checking for alloca" >&5 2038 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 1708 2039 echo $ac_n "(cached) $ac_c" 1>&6 1709 2040 else 1710 2041 cat > conftest.$ac_ext <<EOF 1711 #line 1712"configure"2042 #line 2043 "configure" 1712 2043 #include "confdefs.h" 1713 2044 … … 1728 2059 #endif 1729 2060 1730 int main() { return 0; } 1731 int t() { 2061 int main() { 1732 2062 char *p = (char *) alloca(1); 1733 2063 ; return 0; } 1734 2064 EOF 1735 if eval $ac_link; then 1736 rm -rf conftest* 1737 ac_cv_func_alloca=yes 1738 else 1739 rm -rf conftest* 1740 ac_cv_func_alloca=no 1741 fi 1742 rm -f conftest* 1743 1744 fi 1745 echo "$ac_t""$ac_cv_func_alloca" 1>&6 1746 if test $ac_cv_func_alloca = yes; then 2065 if { (eval echo configure:2066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2066 rm -rf conftest* 2067 ac_cv_func_alloca_works=yes 2068 else 2069 echo "configure: failed program was:" >&5 2070 cat conftest.$ac_ext >&5 2071 rm -rf conftest* 2072 ac_cv_func_alloca_works=no 2073 fi 2074 rm -f conftest* 2075 fi 2076 2077 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 2078 if test $ac_cv_func_alloca_works = yes; then 1747 2079 cat >> confdefs.h <<\EOF 1748 2080 #define HAVE_ALLOCA 1 … … 1751 2083 fi 1752 2084 1753 if test $ac_cv_func_alloca = no; then2085 if test $ac_cv_func_alloca_works = no; then 1754 2086 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 1755 2087 # that cause trouble. Some versions do not even contain alloca or … … 1763 2095 1764 2096 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 2097 echo "configure:2098: checking whether alloca needs Cray hooks" >&5 1765 2098 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 1766 2099 echo $ac_n "(cached) $ac_c" 1>&6 1767 2100 else 1768 2101 cat > conftest.$ac_ext <<EOF 1769 #line 1770"configure"2102 #line 2103 "configure" 1770 2103 #include "confdefs.h" 1771 2104 #if defined(CRAY) && ! defined(CRAY2) … … 1787 2120 1788 2121 fi 2122 1789 2123 echo "$ac_t""$ac_cv_os_cray" 1>&6 1790 2124 if test $ac_cv_os_cray = yes; then 1791 2125 for ac_func in _getb67 GETB67 getb67; do 1792 2126 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2127 echo "configure:2128: checking for $ac_func" >&5 1793 2128 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1794 2129 echo $ac_n "(cached) $ac_c" 1>&6 1795 2130 else 1796 2131 cat > conftest.$ac_ext <<EOF 1797 #line 1798"configure"2132 #line 2133 "configure" 1798 2133 #include "confdefs.h" 1799 2134 /* System header to define __stub macros and hopefully few prototypes, … … 1801 2136 #include <assert.h> 1802 2137 /* Override any gcc2 internal prototype to avoid an error. */ 1803 char $ac_func(); 1804 1805 int main() { return 0; } 1806 int t() { 2138 /* We use char because int might match the return type of a gcc2 2139 builtin and then its argument prototype would still apply. */ 2140 char $ac_func(); 2141 2142 int main() { 1807 2143 1808 2144 /* The GNU C library defines this for functions which it implements … … 1817 2153 ; return 0; } 1818 2154 EOF 1819 if eval $ac_link; then2155 if { (eval echo configure:2156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1820 2156 rm -rf conftest* 1821 2157 eval "ac_cv_func_$ac_func=yes" 1822 2158 else 2159 echo "configure: failed program was:" >&5 2160 cat conftest.$ac_ext >&5 1823 2161 rm -rf conftest* 1824 2162 eval "ac_cv_func_$ac_func=no" 1825 2163 fi 1826 2164 rm -f conftest* 1827 1828 fi 2165 fi 2166 1829 2167 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 1830 2168 echo "$ac_t""yes" 1>&6 … … 1842 2180 1843 2181 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 2182 echo "configure:2183: checking stack direction for C alloca" >&5 1844 2183 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 1845 2184 echo $ac_n "(cached) $ac_c" 1>&6 … … 1848 2187 ac_cv_c_stack_direction=0 1849 2188 else 1850 cat > conftest.$ac_ext <<EOF1851 #line 1852"configure"2189 cat > conftest.$ac_ext <<EOF 2190 #line 2191 "configure" 1852 2191 #include "confdefs.h" 1853 2192 find_stack_direction () … … 1868 2207 } 1869 2208 EOF 1870 eval $ac_link 1871 if test -s conftest && (./conftest; exit) 2>/dev/null;then2209 if { (eval echo configure:2210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 2210 then 1872 2211 ac_cv_c_stack_direction=1 1873 2212 else 2213 echo "configure: failed program was:" >&5 2214 cat conftest.$ac_ext >&5 2215 rm -fr conftest* 1874 2216 ac_cv_c_stack_direction=-1 1875 2217 fi 1876 fi1877 2218 rm -fr conftest* 1878 2219 fi 2220 2221 fi 2222 1879 2223 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 1880 2224 cat >> confdefs.h <<EOF … … 1885 2229 1886 2230 if test $ac_cv_prog_gcc = yes; then 1887 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 2231 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 2232 echo "configure:2233: checking whether ${CC-cc} needs -traditional" >&5 1888 2233 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then 1889 2234 echo $ac_n "(cached) $ac_c" 1>&6 … … 1891 2236 ac_pattern="Autoconf.*'x'" 1892 2237 cat > conftest.$ac_ext <<EOF 1893 #line 1894"configure"2238 #line 2239 "configure" 1894 2239 #include "confdefs.h" 1895 2240 #include <sgtty.h> … … 1909 2254 if test $ac_cv_prog_gcc_traditional = no; then 1910 2255 cat > conftest.$ac_ext <<EOF 1911 #line 1912"configure"2256 #line 2257 "configure" 1912 2257 #include "confdefs.h" 1913 2258 #include <termio.h> … … 1923 2268 fi 1924 2269 fi 1925 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 2270 2271 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 1926 2272 if test $ac_cv_prog_gcc_traditional = yes; then 1927 2273 CC="$CC -traditional" … … 1930 2276 1931 2277 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2278 echo "configure:2279: checking return type of signal handlers" >&5 1932 2279 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 1933 2280 echo $ac_n "(cached) $ac_c" 1>&6 1934 2281 else 1935 2282 cat > conftest.$ac_ext <<EOF 1936 #line 1937"configure"2283 #line 2284 "configure" 1937 2284 #include "confdefs.h" 1938 2285 #include <sys/types.h> … … 1942 2289 #endif 1943 2290 #ifdef __cplusplus 1944 extern "C" 2291 extern "C" void (*signal (int, void (*)(int)))(int); 2292 #else 2293 void (*signal ()) (); 1945 2294 #endif 1946 void (*signal ()) (); 1947 int main() { return 0; } 1948 int t() { 2295 2296 int main() { 1949 2297 int i; 1950 2298 ; return 0; } 1951 2299 EOF 1952 if eval $ac_compile; then2300 if { (eval echo configure:2301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1953 2301 rm -rf conftest* 1954 2302 ac_cv_type_signal=void 1955 2303 else 2304 echo "configure: failed program was:" >&5 2305 cat conftest.$ac_ext >&5 1956 2306 rm -rf conftest* 1957 2307 ac_cv_type_signal=int 1958 2308 fi 1959 2309 rm -f conftest* 1960 1961 fi 2310 fi 2311 1962 2312 echo "$ac_t""$ac_cv_type_signal" 1>&6 1963 2313 cat >> confdefs.h <<EOF … … 1967 2317 1968 2318 echo $ac_n "checking for vprintf""... $ac_c" 1>&6 2319 echo "configure:2320: checking for vprintf" >&5 1969 2320 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then 1970 2321 echo $ac_n "(cached) $ac_c" 1>&6 1971 2322 else 1972 2323 cat > conftest.$ac_ext <<EOF 1973 #line 1974"configure"2324 #line 2325 "configure" 1974 2325 #include "confdefs.h" 1975 2326 /* System header to define __stub macros and hopefully few prototypes, … … 1977 2328 #include <assert.h> 1978 2329 /* Override any gcc2 internal prototype to avoid an error. */ 1979 char vprintf(); 1980 1981 int main() { return 0; } 1982 int t() { 2330 /* We use char because int might match the return type of a gcc2 2331 builtin and then its argument prototype would still apply. */ 2332 char vprintf(); 2333 2334 int main() { 1983 2335 1984 2336 /* The GNU C library defines this for functions which it implements … … 1993 2345 ; return 0; } 1994 2346 EOF 1995 if eval $ac_link; then2347 if { (eval echo configure:2348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1996 2348 rm -rf conftest* 1997 2349 eval "ac_cv_func_vprintf=yes" 1998 2350 else 2351 echo "configure: failed program was:" >&5 2352 cat conftest.$ac_ext >&5 1999 2353 rm -rf conftest* 2000 2354 eval "ac_cv_func_vprintf=no" 2001 2355 fi 2002 2356 rm -f conftest* 2003 2004 fi 2357 fi 2358 2005 2359 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then 2006 2360 echo "$ac_t""yes" 1>&6 … … 2015 2369 if test "$ac_cv_func_vprintf" != yes; then 2016 2370 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 2371 echo "configure:2372: checking for _doprnt" >&5 2017 2372 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then 2018 2373 echo $ac_n "(cached) $ac_c" 1>&6 2019 2374 else 2020 2375 cat > conftest.$ac_ext <<EOF 2021 #line 2 022"configure"2376 #line 2377 "configure" 2022 2377 #include "confdefs.h" 2023 2378 /* System header to define __stub macros and hopefully few prototypes, … … 2025 2380 #include <assert.h> 2026 2381 /* Override any gcc2 internal prototype to avoid an error. */ 2027 char _doprnt(); 2028 2029 int main() { return 0; } 2030 int t() { 2382 /* We use char because int might match the return type of a gcc2 2383 builtin and then its argument prototype would still apply. */ 2384 char _doprnt(); 2385 2386 int main() { 2031 2387 2032 2388 /* The GNU C library defines this for functions which it implements … … 2041 2397 ; return 0; } 2042 2398 EOF 2043 if eval $ac_link; then2399 if { (eval echo configure:2400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2044 2400 rm -rf conftest* 2045 2401 eval "ac_cv_func__doprnt=yes" 2046 2402 else 2403 echo "configure: failed program was:" >&5 2404 cat conftest.$ac_ext >&5 2047 2405 rm -rf conftest* 2048 2406 eval "ac_cv_func__doprnt=no" 2049 2407 fi 2050 2408 rm -f conftest* 2051 2052 fi 2409 fi 2410 2053 2411 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then 2054 2412 echo "$ac_t""yes" 1>&6 … … 2066 2424 do 2067 2425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2426 echo "configure:2427: checking for $ac_func" >&5 2068 2427 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2069 2428 echo $ac_n "(cached) $ac_c" 1>&6 2070 2429 else 2071 2430 cat > conftest.$ac_ext <<EOF 2072 #line 2 073"configure"2431 #line 2432 "configure" 2073 2432 #include "confdefs.h" 2074 2433 /* System header to define __stub macros and hopefully few prototypes, … … 2076 2435 #include <assert.h> 2077 2436 /* Override any gcc2 internal prototype to avoid an error. */ 2078 char $ac_func(); 2079 2080 int main() { return 0; } 2081 int t() { 2437 /* We use char because int might match the return type of a gcc2 2438 builtin and then its argument prototype would still apply. */ 2439 char $ac_func(); 2440 2441 int main() { 2082 2442 2083 2443 /* The GNU C library defines this for functions which it implements … … 2092 2452 ; return 0; } 2093 2453 EOF 2094 if eval $ac_link; then2454 if { (eval echo configure:2455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2095 2455 rm -rf conftest* 2096 2456 eval "ac_cv_func_$ac_func=yes" 2097 2457 else 2458 echo "configure: failed program was:" >&5 2459 cat conftest.$ac_ext >&5 2098 2460 rm -rf conftest* 2099 2461 eval "ac_cv_func_$ac_func=no" 2100 2462 fi 2101 2463 rm -f conftest* 2102 2103 fi 2464 fi 2465 2104 2466 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2105 2467 echo "$ac_t""yes" 1>&6 2106 ac_tr_func=HAVE_`echo $ac_func | tr ' [a-z]' '[A-Z]'`2468 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2107 2469 cat >> confdefs.h <<EOF 2108 2470 #define $ac_tr_func 1 … … 2117 2479 do 2118 2480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2481 echo "configure:2482: checking for $ac_func" >&5 2119 2482 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2120 2483 echo $ac_n "(cached) $ac_c" 1>&6 2121 2484 else 2122 2485 cat > conftest.$ac_ext <<EOF 2123 #line 2 124"configure"2486 #line 2487 "configure" 2124 2487 #include "confdefs.h" 2125 2488 /* System header to define __stub macros and hopefully few prototypes, … … 2127 2490 #include <assert.h> 2128 2491 /* Override any gcc2 internal prototype to avoid an error. */ 2129 char $ac_func(); 2130 2131 int main() { return 0; } 2132 int t() { 2492 /* We use char because int might match the return type of a gcc2 2493 builtin and then its argument prototype would still apply. */ 2494 char $ac_func(); 2495 2496 int main() { 2133 2497 2134 2498 /* The GNU C library defines this for functions which it implements … … 2143 2507 ; return 0; } 2144 2508 EOF 2145 if eval $ac_link; then2509 if { (eval echo configure:2510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2146 2510 rm -rf conftest* 2147 2511 eval "ac_cv_func_$ac_func=yes" 2148 2512 else 2513 echo "configure: failed program was:" >&5 2514 cat conftest.$ac_ext >&5 2149 2515 rm -rf conftest* 2150 2516 eval "ac_cv_func_$ac_func=no" 2151 2517 fi 2152 2518 rm -f conftest* 2153 2154 fi 2519 fi 2520 2155 2521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2156 2522 echo "$ac_t""yes" 1>&6 2157 : 2523 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2524 cat >> confdefs.h <<EOF 2525 #define $ac_tr_func 1 2526 EOF 2527 2158 2528 else 2159 2529 echo "$ac_t""no" 1>&6 2160 2530 LIBOBJS="$LIBOBJS ${ac_func}.o" 2161 2531 fi 2162 2163 2532 done 2533 2164 2534 2165 2535 … … 2168 2538 # --------------------------------------------------------------------------- 2169 2539 echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6 2540 echo "configure:2541: checking for HP-UX needing gmalloc" >&5 2170 2541 if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then 2171 2542 echo "$ac_t""yes" 1>&6 … … 2180 2551 do 2181 2552 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2553 echo "configure:2554: checking for $ac_func" >&5 2182 2554 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2183 2555 echo $ac_n "(cached) $ac_c" 1>&6 2184 2556 else 2185 2557 cat > conftest.$ac_ext <<EOF 2186 #line 2 187"configure"2558 #line 2559 "configure" 2187 2559 #include "confdefs.h" 2188 2560 /* System header to define __stub macros and hopefully few prototypes, … … 2190 2562 #include <assert.h> 2191 2563 /* Override any gcc2 internal prototype to avoid an error. */ 2192 char $ac_func(); 2193 2194 int main() { return 0; } 2195 int t() { 2564 /* We use char because int might match the return type of a gcc2 2565 builtin and then its argument prototype would still apply. */ 2566 char $ac_func(); 2567 2568 int main() { 2196 2569 2197 2570 /* The GNU C library defines this for functions which it implements … … 2206 2579 ; return 0; } 2207 2580 EOF 2208 if eval $ac_link; then2581 if { (eval echo configure:2582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2209 2582 rm -rf conftest* 2210 2583 eval "ac_cv_func_$ac_func=yes" 2211 2584 else 2585 echo "configure: failed program was:" >&5 2586 cat conftest.$ac_ext >&5 2212 2587 rm -rf conftest* 2213 2588 eval "ac_cv_func_$ac_func=no" 2214 2589 fi 2215 2590 rm -f conftest* 2216 2217 fi 2591 fi 2592 2218 2593 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2219 2594 echo "$ac_t""yes" 1>&6 2220 ac_tr_func=HAVE_`echo $ac_func | tr ' [a-z]' '[A-Z]'`2595 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2221 2596 cat >> confdefs.h <<EOF 2222 2597 #define $ac_tr_func 1 … … 2231 2606 2232 2607 echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6 2608 echo "configure:2609: checking if malloc debugging is wanted" >&5 2233 2609 # Check whether --with-dmalloc or --without-dmalloc was given. 2234 withval="$with_dmalloc" 2235 if test -n "$withval"; then 2610 if test "${with_dmalloc+set}" = set; then 2611 withval="$with_dmalloc" 2236 2612 if test "$withval" = yes; then 2237 2613 echo "$ac_t""yes" 1>&6 … … 2251 2627 2252 2628 echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6 2629 echo "configure:2630: checking which of rx or regex is wanted" >&5 2253 2630 # Check whether --with-regex or --without-regex was given. 2254 withval="$with_regex" 2255 if test -n "$withval"; then 2631 if test "${with_regex+set}" = set; then 2632 withval="$with_regex" 2256 2633 if test "$withval" = yes; then 2257 2634 ac_with_regex=1 … … 2268 2645 echo "$ac_t""rx" 1>&6 2269 2646 echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6 2647 echo "configure:2648: checking for re_rx_search" >&5 2270 2648 if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then 2271 2649 echo $ac_n "(cached) $ac_c" 1>&6 2272 2650 else 2273 2651 cat > conftest.$ac_ext <<EOF 2274 #line 2 275"configure"2652 #line 2653 "configure" 2275 2653 #include "confdefs.h" 2276 2654 /* System header to define __stub macros and hopefully few prototypes, … … 2278 2656 #include <assert.h> 2279 2657 /* Override any gcc2 internal prototype to avoid an error. */ 2280 char re_rx_search(); 2281 2282 int main() { return 0; } 2283 int t() { 2658 /* We use char because int might match the return type of a gcc2 2659 builtin and then its argument prototype would still apply. */ 2660 char re_rx_search(); 2661 2662 int main() { 2284 2663 2285 2664 /* The GNU C library defines this for functions which it implements … … 2294 2673 ; return 0; } 2295 2674 EOF 2296 if eval $ac_link; then2675 if { (eval echo configure:2676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2297 2676 rm -rf conftest* 2298 2677 eval "ac_cv_func_re_rx_search=yes" 2299 2678 else 2679 echo "configure: failed program was:" >&5 2680 cat conftest.$ac_ext >&5 2300 2681 rm -rf conftest* 2301 2682 eval "ac_cv_func_re_rx_search=no" 2302 2683 fi 2303 2684 rm -f conftest* 2304 2305 fi 2685 fi 2686 2306 2687 if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then 2307 2688 echo "$ac_t""yes" 1>&6 … … 2340 2721 # 2341 2722 EOF 2723 # The following way of writing the cache mishandles newlines in values, 2724 # but we know of no workaround that is simple, portable, and efficient. 2725 # So, don't put newlines in cache variables' values. 2342 2726 # Ultrix sh set writes to stderr and can't be redirected directly, 2343 2727 # and sets the high bit in the cache file unless we assign to the vars. 2344 2728 (set) 2>&1 | 2345 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \ 2346 >> confcache 2729 case `(ac_space=' '; set) 2>&1` in 2730 *ac_space=\ *) 2731 # `set' does not quote correctly, so add quotes (double-quote substitution 2732 # turns \\\\ into \\, and sed turns \\ into \). 2733 sed -n \ 2734 -e "s/'/'\\\\''/g" \ 2735 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 2736 ;; 2737 *) 2738 # `set' quotes correctly as required by POSIX, so do not add quotes. 2739 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 2740 ;; 2741 esac >> confcache 2347 2742 if cmp -s $cache_file confcache; then 2348 2743 : … … 2399 2794 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 2400 2795 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 2401 echo "$CONFIG_STATUS generated by autoconf version 2. 4"2796 echo "$CONFIG_STATUS generated by autoconf version 2.12" 2402 2797 exit 0 ;; 2403 2798 -help | --help | --hel | --he | --h) … … 2412 2807 trap 'rm -fr `echo "Makefile src/text/Makefile src/images/Makefile 2413 2808 src/scripts/Makefile lib/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 2414 2415 # Protect against being on the right side of a sed subst in config.status. 2416 sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 2417 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF 2809 EOF 2810 cat >> $CONFIG_STATUS <<EOF 2811 2812 # Protect against being on the right side of a sed subst in config.status. 2813 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 2814 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 2418 2815 $ac_vpsub 2419 2816 $extrasub … … 2427 2824 s%@prefix@%$prefix%g 2428 2825 s%@program_transform_name@%$program_transform_name%g 2826 s%@bindir@%$bindir%g 2827 s%@sbindir@%$sbindir%g 2828 s%@libexecdir@%$libexecdir%g 2829 s%@datadir@%$datadir%g 2830 s%@sysconfdir@%$sysconfdir%g 2831 s%@sharedstatedir@%$sharedstatedir%g 2832 s%@localstatedir@%$localstatedir%g 2833 s%@libdir@%$libdir%g 2834 s%@includedir@%$includedir%g 2835 s%@oldincludedir@%$oldincludedir%g 2836 s%@infodir@%$infodir%g 2837 s%@mandir@%$mandir%g 2429 2838 s%@PACKAGE@%$PACKAGE%g 2430 2839 s%@VERSION@%$VERSION%g … … 2446 2855 CEOF 2447 2856 EOF 2857 2858 cat >> $CONFIG_STATUS <<\EOF 2859 2860 # Split the substitutions into bite-sized pieces for seds with 2861 # small command number limits, like on Digital OSF/1 and HP-UX. 2862 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 2863 ac_file=1 # Number of current file. 2864 ac_beg=1 # First line for current file. 2865 ac_end=$ac_max_sed_cmds # Line after last line for current file. 2866 ac_more_lines=: 2867 ac_sed_cmds="" 2868 while $ac_more_lines; do 2869 if test $ac_beg -gt 1; then 2870 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 2871 else 2872 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 2873 fi 2874 if test ! -s conftest.s$ac_file; then 2875 ac_more_lines=false 2876 rm -f conftest.s$ac_file 2877 else 2878 if test -z "$ac_sed_cmds"; then 2879 ac_sed_cmds="sed -f conftest.s$ac_file" 2880 else 2881 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 2882 fi 2883 ac_file=`expr $ac_file + 1` 2884 ac_beg=$ac_end 2885 ac_end=`expr $ac_end + $ac_max_sed_cmds` 2886 fi 2887 done 2888 if test -z "$ac_sed_cmds"; then 2889 ac_sed_cmds=cat 2890 fi 2891 EOF 2892 2448 2893 cat >> $CONFIG_STATUS <<EOF 2449 2894 … … 2453 2898 cat >> $CONFIG_STATUS <<\EOF 2454 2899 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 2455 # Support "outfile[:infile ]", defaulting infile="outfile.in".2900 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2456 2901 case "$ac_file" in 2457 *:*) ac_file_in=`echo "$ac_file"|sed 's% .*:%%'`2902 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2458 2903 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2459 2904 *) ac_file_in="${ac_file}.in" ;; 2460 2905 esac 2461 2906 2462 # Adjust relative srcdir, etc.for subdirectories.2907 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 2463 2908 2464 2909 # Remove last slash and all that follows it. Not all systems have dirname. … … 2488 2933 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 2489 2934 esac 2935 2490 2936 echo creating "$ac_file" 2491 2937 rm -f "$ac_file" … … 2496 2942 *) ac_comsub= ;; 2497 2943 esac 2944 2945 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2498 2946 sed -e "$ac_comsub 2499 2947 s%@configure_input@%$configure_input%g … … 2501 2949 s%@top_srcdir@%$top_srcdir%g 2502 2950 s%@INSTALL@%$INSTALL%g 2503 " -f conftest.subs $ac_given_srcdir/$ac_file_in> $ac_file2951 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 2504 2952 fi; done 2505 rm -f conftest.s ubs2953 rm -f conftest.s* 2506 2954 2507 2955 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where … … 2524 2972 ac_eD='%g' 2525 2973 2526 CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"} 2974 if test "${CONFIG_HEADERS+set}" != set; then 2975 EOF 2976 cat >> $CONFIG_STATUS <<EOF 2977 CONFIG_HEADERS="config.h" 2978 EOF 2979 cat >> $CONFIG_STATUS <<\EOF 2980 fi 2527 2981 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 2528 # Support "outfile[:infile ]", defaulting infile="outfile.in".2982 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2529 2983 case "$ac_file" in 2530 *:*) ac_file_in=`echo "$ac_file"|sed 's% .*:%%'`2984 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2531 2985 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2532 2986 *) ac_file_in="${ac_file}.in" ;; … … 2536 2990 2537 2991 rm -f conftest.frag conftest.in conftest.out 2538 cp $ac_given_srcdir/$ac_file_in conftest.in 2992 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2993 cat $ac_file_inputs > conftest.in 2539 2994 2540 2995 EOF … … 2542 2997 # Transform confdefs.h into a sed script conftest.vals that substitutes 2543 2998 # the proper values into config.h.in to produce config.h. And first: 2544 # Protect against being on the right side of a sed subst in config.status. 2999 # Protect against being on the right side of a sed subst in config.status. 2545 3000 # Protect against being in an unquoted here document in config.status. 2546 3001 rm -f conftest.vals … … 2548 3003 s/[\\&%]/\\&/g 2549 3004 s%[\\$`]%\\&%g 2550 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp3005 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 2551 3006 s%ac_d%ac_u%gp 2552 3007 s%ac_u%ac_e%gp … … 2564 3019 # Break up conftest.vals because some shells have a limit on 2565 3020 # the size of here documents, and old seds have small limits too. 2566 # Maximum number of lines to put in a single here document.2567 ac_max_here_lines=122568 3021 2569 3022 rm -f conftest.tail … … 2596 3049 rm -f conftest.h 2597 3050 else 3051 # Remove last slash and all that follows it. Not all systems have dirname. 3052 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 3053 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 3054 # The file is in a subdirectory. 3055 test ! -d "$ac_dir" && mkdir "$ac_dir" 3056 fi 2598 3057 rm -f $ac_file 2599 3058 mv conftest.h $ac_file … … 2601 3060 fi; done 2602 3061 2603 3062 EOF 3063 cat >> $CONFIG_STATUS <<EOF 3064 3065 EOF 3066 cat >> $CONFIG_STATUS <<\EOF 2604 3067 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 2605 3068 exit 0 -
/trunk/gsdl/packages/mg-1.3d/lib/Makefile.in
r20 r30 37 37 DEFS = @DEFS@ 38 38 RANLIB = @RANLIB@ 39 40 ########################################## 41 # Uncomment for compiling for the nzdl project 42 # 43 CFLAGS = @CFLAGS@ -DQUIET 44 ########################################## 45 39 46 40 47 prefix = @prefix@ … … 76 83 bitio_m_mems.h bitio_stdio.h huffman_stdio.h sptree.h \ 77 84 regex.h rx.h pathmax.h getpagesize.h \ 78 random.h 85 random.h frenchstem.h 79 86 80 87 SOURCES = \ … … 86 93 timing.c regex.c rx.c \ 87 94 alloca.c error.c xmalloc.c strstr.c \ 88 gmalloc.c ftruncate.c strcasecmp.c random.c 95 gmalloc.c ftruncate.c strcasecmp.c random.c \ 96 frenchstem.c 89 97 90 98 OBJECTS = @ALLOCA@ @LIBOBJS@ \ … … 96 104 timing$o regex$o rx$o \ 97 105 error$o xmalloc$o \ 98 gmalloc$o random$o 106 gmalloc$o random$o frenchstem$o 99 107 100 108 DISTFILES = Makefile.in $(HEADERS) $(SOURCES) -
/trunk/gsdl/packages/mg-1.3d/lib/WIN32.MAK
r20 r30 31 31 #CFLAGS = -g -O 32 32 CPPFLAGS = 33 DEFS = -D HAVE_CONFIG_H -D__WIN32__ -D_LITTLE_ENDIAN33 DEFS = -DQUIET -DHAVE_CONFIG_H -D__WIN32__ -D_LITTLE_ENDIAN 34 34 35 35 COMPILE = $(CC) -c $(DEFS) -I. -I.. … … 53 53 bitio_m_mem.h bitio_random.h huffman_mem.h perf_hash.h \ 54 54 bitio_m_mems.h bitio_stdio.h huffman_stdio.h sptree.h \ 55 regex.hrx.h pathmax.h getpagesize.h \56 random.h 55 rx.h pathmax.h getpagesize.h \ 56 random.h win32in.h frenchstem.h 57 57 58 58 SOURCES = \ … … 62 62 bitio_mem.c getopt.c huffman_stdio.c sptree.c \ 63 63 bitio_mems.c getopt1.c local_strings.c stem.c \ 64 timing.c regex.crx.c \64 timing.c rx.c \ 65 65 alloca.c error.c xmalloc.c strstr.c \ 66 ftruncate.c strcasecmp.c random.c 66 ftruncate.c strcasecmp.c random.c win32in.c \ 67 frenchstem.c 67 68 68 OBJECTS = rx .obj\69 OBJECTS = rx$o \ 69 70 bitio_random$o heap$o memlib$o \ 70 71 bitio_stdio$o huffman$o messages$o \ … … 72 73 bitio_mem$o getopt$o huffman_stdio$o sptree$o \ 73 74 bitio_mems$o getopt1$o local_strings$o stem$o \ 74 timing$o regex$o\75 timing$o \ 75 76 error$o xmalloc$o \ 76 random$o 77 random$o win32in$o frenchstem$o 77 78 78 79 DISTFILES = Makefile.in $(HEADERS) $(SOURCES) … … 101 102 102 103 mostlyclean: 103 rm -f *.o *_.o104 del *.obj 104 105 105 106 clean: mostlyclean 106 rm -flibmg.lib107 del libmg.lib 107 108 108 109 distclean: clean -
/trunk/gsdl/packages/mg-1.3d/lib/alloca.c
r20 r30 26 26 # include <win32cfg.h> 27 27 # else 28 # include < config.h>28 # include <sysfuncs.h> 29 29 # endif 30 30 #endif -
/trunk/gsdl/packages/mg-1.3d/lib/error.c
r20 r30 22 22 # include <win32cfg.h> 23 23 # else 24 # include < config.h>24 # include <sysfuncs.h> 25 25 # endif 26 26 #endif -
/trunk/gsdl/packages/mg-1.3d/lib/frenchstem.c
r20 r30 1 /************************************************************************** 2 * 3 * frenchstem.c -- a simple french stemmer 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 * 19 * $Id$ 20 * 21 **************************************************************************/ 1 22 2 static char * frenchstem (word) 3 char *word; 4 { 5 int len = strlen(word)-1; 6 if (len > 4) { 7 if (word[len]=='x') { 8 if (word[len-1]=='u' && word[len-2]=='a') { 9 word[len-1]='l'; 23 #include "frenchstem.h" 24 25 26 27 /* ========================================================================= 28 * Function: frenchstem 29 * Description: a simple french stemmer 30 * Input: a word string with the length in the first byte 31 * Output: the stemmed word 32 * ========================================================================= */ 33 34 void frenchstem (unsigned char *word) { 35 unsigned char *wordstart = word + 1; /* points to first letter of word */ 36 int last = (int)word[0]-1; /* last points to the last character */ 37 38 if (last > 4) { 39 if (wordstart[last]=='x') { 40 if (wordstart[last-1]=='u' && wordstart[last-2]=='a') { 41 wordstart[last-1]='l'; 10 42 } 11 word [len]='\0';12 return(word);13 } 14 else {15 if (word [len]=='s')16 {word [len]='\0';len--;}17 if (word [len]=='r')18 {word [len]='\0';len--;}19 if (word [len]=='e')20 {word [len]='\0';len--;}21 if (word [len]=='é')/* letter with accent e + ' */22 {word [len]='\0';len--;}23 if (word [len] == word[len-1])24 word[len]='\0';43 wordstart[last]='\0'; 44 last--; 45 46 } else { 47 if (wordstart[last]=='s' && last>=0) 48 {wordstart[last]='\0'; last--;} 49 if (wordstart[last]=='r' && last>=0) 50 {wordstart[last]='\0'; last--;} 51 if (wordstart[last]=='e' && last>=0) 52 {wordstart[last]='\0'; last--;} 53 if (wordstart[last]=='é' && last>=0) /* letter with accent e + ' */ 54 {wordstart[last]='\0'; last--;} 55 if (wordstart[last]==wordstart[last-1] && last>=1) 56 {wordstart[last]='\0'; last--;} 25 57 } /* end else */ 58 59 word[0] = (unsigned char)(last+1); 26 60 } /* end if (len > 4) */ 27 return(word);28 61 } -
/trunk/gsdl/packages/mg-1.3d/lib/ftruncate.c
r20 r30 6 6 # include <win32cfg.h> 7 7 # else 8 # include < config.h>8 # include <sysfuncs.h> 9 9 # endif 10 10 #endif -
/trunk/gsdl/packages/mg-1.3d/lib/getopt.c
r20 r30 23 23 24 24 #ifdef HAVE_CONFIG_H 25 #include " config.h"25 #include "sysfuncs.h" 26 26 #endif 27 27 -
/trunk/gsdl/packages/mg-1.3d/lib/getopt1.c
r20 r30 19 19 20 20 #ifdef HAVE_CONFIG_H 21 #include " config.h"21 #include "sysfuncs.h" 22 22 #endif 23 23 -
/trunk/gsdl/packages/mg-1.3d/lib/gmalloc.c
r20 r30 34 34 35 35 #ifdef HAVE_CONFIG_H 36 #include < config.h>36 #include <sysfuncs.h> 37 37 #endif 38 38 -
/trunk/gsdl/packages/mg-1.3d/lib/messages.c
r20 r30 24 24 /* 25 25 $Log$ 26 Revision 1.1 1998/11/17 09:32:14 rjmcnab 27 *** empty log message *** 26 Revision 1.2 1998/11/23 03:38:06 rjmcnab 27 28 combined unix and windows versions of mg 29 30 Revision 1.1 1998/11/19 03:00:32 sjboddie 31 Added windows gdbm and mg versions 28 32 29 33 * Revision 1.1 1994/08/22 00:24:48 tes … … 72 76 char *s, *pfx; 73 77 va_list args; 78 79 #ifdef QUIET 80 return; /* stop those messages!!!! */ 81 #endif 82 74 83 va_start (args, fmt); 75 84 vsprintf (buf, fmt, args); -
/trunk/gsdl/packages/mg-1.3d/lib/regex.c
r20 r30 31 31 # include <win32cfg.h> 32 32 # else 33 # include < config.h>33 # include <sysfuncs.h> 34 34 # endif 35 35 #endif … … 57 57 /* If we are not linking with Emacs proper, 58 58 we can't use the relocating allocator 59 even if config.h says that we can. */59 even if sysfuncs.h says that we can. */ 60 60 #undef REL_ALLOC 61 61 … … 160 160 eliminate the && through constant folding." */ 161 161 162 #if defined (STDC_HEADERS) || (!defined (isascii) && !defined (HAVE_ISASCII)) 163 #define ISASCII(c) 1 164 #else 165 #define ISASCII(c) isascii(c) 162 #ifndef ISASCII 163 # if defined (STDC_HEADERS) || (!defined (isascii) && !defined (HAVE_ISASCII)) 164 # define ISASCII(c) 1 165 # else 166 # define ISASCII(c) isascii(c) 167 # endif 166 168 #endif 167 169 … … 966 968 967 969 /* When using GNU C, we are not REALLY using the C alloca, no matter 968 what config.h may say. So don't take precautions for it. */970 what sysfuncs.h may say. So don't take precautions for it. */ 969 971 #ifdef __GNUC__ 970 972 #undef C_ALLOCA -
/trunk/gsdl/packages/mg-1.3d/lib/rx.c
r20 r30 36 36 # include <malloc.h> 37 37 # else 38 # include < config.h>38 # include <sysfuncs.h> 39 39 # endif 40 40 #endif -
/trunk/gsdl/packages/mg-1.3d/lib/rx.h
r20 r30 2185 2185 * that make sense only in Emacs. 2186 2186 */ 2187 #include " config.h"2187 #include "sysfuncs.h" 2188 2188 #include "lisp.h" 2189 2189 #include "buffer.h" -
/trunk/gsdl/packages/mg-1.3d/lib/xmalloc.c
r20 r30 20 20 # include <win32cfg.h> 21 21 # else 22 # include < config.h>22 # include <sysfuncs.h> 23 23 # endif 24 24 #endif -
/trunk/gsdl/packages/mg-1.3d/src/text/MGPASS.C
r20 r30 49 49 /* 50 50 $Log$ 51 Revision 1.3 1998/11/24 03:39:23 rjmcnab 52 53 Fixed a small error in the windows compilation 54 55 Revision 1.2 1998/11/24 01:29:39 rjmcnab 56 57 Fixed a few problems with the windows build 58 51 59 Revision 1.1 1998/11/17 09:34:12 rjmcnab 52 60 *** empty log message *** … … 82 90 FILE *Comp_Stats = NULL; 83 91 int comp_stat_point = 0; 84 u_longbytes_processed = 0;92 double bytes_processed = 0; 85 93 int num_docs = 0; 86 u_longbytes_received = 0;94 double bytes_received = 0; 87 95 int stem_method = 0; 88 96 -
/trunk/gsdl/packages/mg-1.3d/src/text/WIN32.MAK
r20 r30 14 14 #CFLAGS = -g -O 15 15 CPPFLAGS = 16 DEFS = -D HAVE_CONFIG_H -D__WIN32__ -D_LITTLE_ENDIAN16 DEFS = -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DHAVE_CONFIG_H -D__WIN32__ -D_LITTLE_ENDIAN 17 17 #INSTALL = /usr/local/gnu/bin/install -c 18 18 #INSTALL_DATA = ${INSTALL} -m 644 … … 78 78 ivf.pass2.c mg_text_estimate.c text_get.c \ 79 79 lists.c mg_text_merge.c weights.c \ 80 query_term_list.c mgpass.c builder.cpp80 mgpass.c query_term_list.c 81 81 82 82 HEADERS = \ … … 105 105 mg_hilite_words$e mg_invf_merge$e \ 106 106 mg_text_merge$e bool_tester$e mgpass$e \ 107 mg_stem_idx$e mgstemidxlist$e mg_decompress_text$e\108 builder$e107 mg_stem_idx$e mgstemidxlist$e \ 108 mg_decompress_text$e 109 109 110 110 MAN = mgquery.1 mg_weights_build.1 mgstat.1 mg_invf_dump.1 mg_invf_dict.1 \ … … 117 117 118 118 119 all: $(EXEC) 119 all: $(EXEC) libtextin.lib 120 120 121 121 … … 253 253 $(LINK) $(PERF_HASH_OBJS) $(LIBS) 254 254 255 STEM_IDX_OBJS = \ 256 mg_stem_idx$o mg_files$o stemmer$o locallib$o \ 255 STEM_IDX_OBJS = mg_stem_idx$o mg_files$o stemmer$o locallib$o \ 257 256 mg_errors$o term_lists$o 258 257 … … 265 264 $(LINK) $(STEM_IDX_LIST_OBJS) $(LIBS) 266 265 267 DECOMPRESS_TEXT_OBJS = \ 268 mg_decompress_text$o mg_files$o mg_errors$o \ 269 text_get$o locallib$o backend$o stem_search$o \ 270 term_lists$o stemmer$o weights$o invf_get$o lists$o 266 DECOMPRESS_TEXT_OBJS = mg_decompress_text$o query_term_list$o mg_files$o mg_errors$o \ 267 text_get$o locallib$o backend$o stem_search$o \ 268 term_lists$o stemmer$o weights$o invf_get$o lists$o 271 269 272 270 mg_decompress_text$e: $(DECOMPRESS_TEXT_OBJS) … … 317 315 318 316 317 LIB_OBJS = \ 318 query_term_list$o \ 319 locallib$o lists$o \ 320 query.ranked$o query.docnums$o stem_search$o \ 321 environment$o commands$o weights$o text_get$o stemmer$o \ 322 read_line$o mg_errors$o backend$o invf_get$o \ 323 term_lists$o bool_tree$o bool_parser$o bool_optimiser$o bool_query$o 324 325 libtextin.lib: $(LIB_OBJS) 326 del libtextin.lib 327 lib /out:libtextin.lib $(LIB_OBJS) 328 329 319 330 mostlyclean: 320 331 rm -f *$o _*.c _*.o *._c *._o core core.* -
/trunk/gsdl/packages/mg-1.3d/src/text/bool_parser.c
r20 r30 1 1 #ifndef lint 2 static char yysccsid[] = "@(#)yaccpar 1. 8 (Berkeley) 01/20/90";2 static char yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93"; 3 3 #endif 4 4 #define YYBYACC 1 5 #define YYMAJOR 1 6 #define YYMINOR 9 7 #define yyclearin (yychar=(-1)) 8 #define yyerrok (yyerrflag=0) 9 #define YYRECOVERING (yyerrflag!=0) 10 #define YYPREFIX "yy" 5 11 #line 25 "bool_parser.y" 6 12 … … 46 52 bool_tree_node *node; 47 53 } YYSTYPE; 48 #line 49"y.tab.c"54 #line 55 "y.tab.c" 49 55 #define TERM 257 50 56 #define YYERRCODE 256 … … 158 164 }; 159 165 #endif 160 #define yyclearin (yychar=(-1))161 #define yyerrok (yyerrflag=0)162 166 #ifdef YYSTACKSIZE 163 # ifndef YYMAXDEPTH167 #undef YYMAXDEPTH 164 168 #define YYMAXDEPTH YYSTACKSIZE 165 #endif166 169 #else 167 170 #ifdef YYMAXDEPTH … … 401 404 402 405 403 #line 40 4"y.tab.c"406 #line 407 "y.tab.c" 404 407 #define YYABORT goto yyabort 408 #define YYREJECT goto yyabort 405 409 #define YYACCEPT goto yyaccept 406 410 #define YYERROR goto yyerrlab … … 440 444 if (yychar <= YYMAXTOKEN) yys = yyname[yychar]; 441 445 if (!yys) yys = "illegal-symbol"; 442 printf(" yydebug: state %d, reading %d (%s)\n", yystate,443 yychar, yys);446 printf("%sdebug: state %d, reading %d (%s)\n", 447 YYPREFIX, yystate, yychar, yys); 444 448 } 445 449 #endif … … 450 454 #if YYDEBUG 451 455 if (yydebug) 452 printf(" yydebug: state %d, shifting to state %d\n",453 yystate, yytable[yyn]);456 printf("%sdebug: state %d, shifting to state %d\n", 457 YYPREFIX, yystate, yytable[yyn]); 454 458 #endif 455 459 if (yyssp >= yyss + yystacksize - 1) … … 491 495 #if YYDEBUG 492 496 if (yydebug) 493 printf(" yydebug: state %d, error recovery shifting\494 to state %d\n", *yyssp, yytable[yyn]);497 printf("%sdebug: state %d, error recovery shifting\ 498 to state %d\n", YYPREFIX, *yyssp, yytable[yyn]); 495 499 #endif 496 500 if (yyssp >= yyss + yystacksize - 1) … … 506 510 #if YYDEBUG 507 511 if (yydebug) 508 printf(" yydebug: error recovery discarding state %d\n",509 *yyssp);512 printf("%sdebug: error recovery discarding state %d\n", 513 YYPREFIX, *yyssp); 510 514 #endif 511 515 if (yyssp <= yyss) goto yyabort; … … 524 528 if (yychar <= YYMAXTOKEN) yys = yyname[yychar]; 525 529 if (!yys) yys = "illegal-symbol"; 526 printf(" yydebug: state %d, error recovery discards token %d (%s)\n",527 yystate, yychar, yys);530 printf("%sdebug: state %d, error recovery discards token %d (%s)\n", 531 YYPREFIX, yystate, yychar, yys); 528 532 } 529 533 #endif … … 534 538 #if YYDEBUG 535 539 if (yydebug) 536 printf(" yydebug: state %d, reducing by rule %d (%s)\n",537 yystate, yyn, yyrule[yyn]);540 printf("%sdebug: state %d, reducing by rule %d (%s)\n", 541 YYPREFIX, yystate, yyn, yyrule[yyn]); 538 542 #endif 539 543 yym = yylen[yyn]; … … 577 581 { yyval.node = CreateBoolTreeNode(N_or, yyvsp[-2].node, yyvsp[0].node); } 578 582 break; 579 #line 58 0"y.tab.c"583 #line 584 "y.tab.c" 580 584 } 581 585 yyssp -= yym; … … 587 591 #if YYDEBUG 588 592 if (yydebug) 589 printf(" yydebug: after reduction, shifting from state 0 to\590 state %d\n", YY FINAL);593 printf("%sdebug: after reduction, shifting from state 0 to\ 594 state %d\n", YYPREFIX, YYFINAL); 591 595 #endif 592 596 yystate = YYFINAL; … … 602 606 if (yychar <= YYMAXTOKEN) yys = yyname[yychar]; 603 607 if (!yys) yys = "illegal-symbol"; 604 printf(" yydebug: state %d, reading %d (%s)\n",605 YY FINAL, yychar, yys);608 printf("%sdebug: state %d, reading %d (%s)\n", 609 YYPREFIX, YYFINAL, yychar, yys); 606 610 } 607 611 #endif … … 617 621 #if YYDEBUG 618 622 if (yydebug) 619 printf(" yydebug: after reduction, shifting from state %d \620 to state %d\n", *yyssp, yystate);623 printf("%sdebug: after reduction, shifting from state %d \ 624 to state %d\n", YYPREFIX, *yyssp, yystate); 621 625 #endif 622 626 if (yyssp >= yyss + yystacksize - 1) -
/trunk/gsdl/packages/mg-1.3d/src/text/mg_hilite_words.c
r20 r30 628 628 * ========================================================================= */ 629 629 630 void 630 int 631 631 main (int argc, char *argv[]) 632 632 { … … 684 684 #endif 685 685 686 } 686 return 0; 687 } -
/trunk/gsdl/packages/mg-1.3d/src/text/stemmer.h
r20 r30 44 44 45 45 #endif 46 47 48 49 50 -
/trunk/gsdl/src/library/gdbmclass.cpp
r20 r30 574 574 return 1; 575 575 } 576 577 // functions related to sorting 578 579 // returns whatever comes after ':#:' in str 580 // -- this is a nasty hack that I'm sure Rodger will want to change ;-) 581 text_t get_section_str(const text_t &str) { 582 583 text_t ret; 584 int found = 0; 585 586 text_t::const_iterator here = str.begin(); 587 text_t::const_iterator end = str.end(); 588 589 while (here != end) { 590 if (found) { 591 ret.push_back(*here); 592 } else { 593 here = findchar (here, end, ':'); 594 if ((*(here+1) == '#') && (*(here+2) == ':')) { 595 found = 1; 596 here = here+2; 597 } 598 } 599 here ++; 600 } 601 return ret; 602 } 603 604 // removes leading spaces and leading 'the' 'a' and 'an' 605 // from string 606 void alphabetize_string_english (text_t &text) { 607 608 if (text.empty()) return; 609 610 text_t firstword; 611 char *word; 612 613 text_t::iterator here = text.begin(); 614 text_t::const_iterator end = text.end(); 615 616 if ((*here != ' ') && (*here != 'a') && (*here != 'A') && 617 (*here != 't') && (*here != 'T')) return; 618 619 int foundchar = 0; 620 while (here != end) { 621 if (*here == ' ' && !foundchar) {here ++; continue;} 622 if (*here == ' ' && foundchar) { 623 text.erase(text.begin(), (here+1)); 624 break; 625 } 626 foundchar ++; 627 if (foundchar == 1) { 628 getdelimitstr (here, end, ' ', firstword); 629 word = firstword.getcstr(); 630 if ((_stricmp(word, "the") != 0) && (_stricmp(word, "a") != 0) && 631 (_stricmp(word, "an") != 0)) break; 632 } 633 here ++; 634 } 635 delete word; 636 } 637 638 // removes leading space, puts last name before 639 // any preceeding names 640 void alphabetize_string_name (text_t &text) { 641 642 if (text.empty()) return; 643 644 text_t lastname; 645 char *lname; 646 vector<text_t> words; 647 splitchar (text.begin(), text.end(), ' ', words); 648 lastname = words.back(); 649 words.pop_back(); 650 lname = lastname.getcstr(); 651 652 while ((_stricmp(lname, "jnr") == 0) || (_stricmp(lname, "snr") == 0) || 653 (_stricmp(lname, "esq") == 0)) { 654 lastname = words.back(); 655 words.pop_back(); 656 lname = lastname.getcstr(); 657 } 658 659 text.clear(); 660 joinchar (words, ' ', text); 661 text = lastname + text; 662 } 663 664 char ** string_add (char **array, int *len, char *str) { 665 char **ret; 666 667 ret = (char**)realloc(array, (*len+1)*sizeof(char*)); 668 ret[*len] = (char*)strdup(str); 669 (*len) ++; 670 671 return ret; 672 } 673 674 void string_sort (char **array, int len) { 675 qsort((void*)array, (unsigned int)(len), sizeof(char*), compare_str); 676 } 677 678 static int compare_str (const void *e1, const void *e2) { 679 return _stricmp(*((char**)e1), *((char**)e2)); 680 } 681 682 void string_free(char **array, int len) { 683 for (int i = 0; i < len; i++) 684 free (array[i]); 685 free (array); 686 } -
/trunk/gsdl/src/library/gdbmclass.h
r20 r30 82 82 void get_first_section(const text_t &instring, text_t &returnstring); 83 83 int is_number (text_t &text); 84 text_t get_section_str(const text_t &str); 85 void alphabetize_string_english (text_t &text); 86 void alphabetize_string_name (text_t &text); 87 char ** string_add (char **array, int *len, char *str); 88 void string_sort (char **array, int len); 89 static int compare_str (const void *e1, const void *e2); 90 void string_free(char **array, int len); 84 91 #endif
Note:
See TracChangeset
for help on using the changeset viewer.