comparison configure @ 371:cc15677e0335 r21-2b1

Import from CVS: tag r21-2b1
author cvs
date Mon, 13 Aug 2007 11:03:08 +0200
parents 1d62742628b6
children 6240c7796c7a
comparison
equal deleted inserted replaced
370:bd866891f083 371:cc15677e0335
1 #! /bin/sh 1 #! /bin/sh
2 2
3 #### Configuration script for XEmacs. Largely divergent from FSF. 3 #### Configuration script for XEmacs. Largely divergent from FSF.
4 #### Guess values for system-dependent variables and create Makefiles. 4 #### Guess values for system-dependent variables and create Makefiles.
5 #### Generated automatically using autoconf version 2.13 5 #### Generated automatically using autoconf version 2.12
6 #### Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 6 #### Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois. 7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc. 8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
9 #### Copyright (C) 1995, 1996 Ben Wing. 9 #### Copyright (C) 1995, 1996 Ben Wing.
10 10
89 infodir='${prefix}/info' 89 infodir='${prefix}/info'
90 mandir='${prefix}/man' 90 mandir='${prefix}/man'
91 91
92 subdirs= 92 subdirs=
93 MFLAGS= MAKEFLAGS= 93 MFLAGS= MAKEFLAGS=
94 SHELL=${CONFIG_SHELL-/bin/sh}
95 ac_max_here_lines=12 94 ac_max_here_lines=12
96 95
97 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 96 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
98 97
99 # File descriptor usage: 98 # File descriptor usage:
197 ac_cpp='$CPP '"$xe_cppflags" 196 ac_cpp='$CPP '"$xe_cppflags"
198 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 197 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
199 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 198 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
200 cross_compiling=no 199 cross_compiling=no
201 200
202 ac_exeext=
203 ac_objext=o
204 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 201 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
205 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 202 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
206 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 203 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
207 ac_n= ac_c=' 204 ac_n= ac_c='
208 ' ac_t=' ' 205 ' ac_t=' '
228 libdir='${exec_prefix}/lib' 225 libdir='${exec_prefix}/lib'
229 mandir='${prefix}/man/man1' 226 mandir='${prefix}/man/man1'
230 infodir='${datadir}/${PROGNAME}-${version}/info' 227 infodir='${datadir}/${PROGNAME}-${version}/info'
231 infopath='' 228 infopath=''
232 install_pp='' 229 install_pp=''
233 exe_suffix=''
234 lispdir='${datadir}/${PROGNAME}-${version}/lisp' 230 lispdir='${datadir}/${PROGNAME}-${version}/lisp'
235 pkgdir='${datadir}/${PROGNAME}-${version}/lisp' 231 pkgdir='${datadir}/${PROGNAME}-${version}/lisp'
236 package_path='' 232 package_path=''
237 etcdir='${datadir}/${PROGNAME}-${version}/etc' 233 etcdir='${datadir}/${PROGNAME}-${version}/etc'
238 lockdir='${statedir}/${PROGNAME}/lock' 234 lockdir='${statedir}/${PROGNAME}/lock'
239 archlibdir='${libdir}/${PROGNAME}-${version}/${configuration}' 235 archlibdir='${libdir}/${PROGNAME}-${version}/${configuration}'
240 docdir='${archlibdir}'
241 with_site_lisp='no' 236 with_site_lisp='no'
242 with_menubars='' 237 with_menubars=''
243 with_scrollbars='' 238 with_scrollbars=''
244 with_dialogs='' 239 with_dialogs=''
245 with_file_coding='' 240 with_file_coding=''
255 use_assertions="yes" 250 use_assertions="yes"
256 with_toolbars="" 251 with_toolbars=""
257 with_tty="" 252 with_tty=""
258 use_union_type="no" 253 use_union_type="no"
259 with_dnet="" 254 with_dnet=""
260 with_dragndrop="no"
261 255
262 256
263 257
264 258
265 arguments="$@" 259 arguments="$@"
471 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; 465 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
472 esac 466 esac
473 eval "$opt=\"$val\"" 467 eval "$opt=\"$val\""
474 ;; 468 ;;
475 469
470 "with_xfs" )
471 case "$val" in
472 y | ye | yes ) val=yes ;;
473 n | no | non | none ) val=no ;;
474 * ) (echo "$progname: Usage error:"
475 echo " " "The \`--$optname' option must have one of these values:
476 \`yes', or \`no'."
477 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
478 esac
479 eval "$opt=\"$val\""
480 ;;
481
476 "mail_locking" ) 482 "mail_locking" )
477 case "$val" in 483 case "$val" in
478 lockf ) val=lockf ;; 484 lockf ) val=lockf ;;
479 flock ) val=flock ;; 485 flock ) val=flock ;;
480 file ) val=file ;; 486 file ) val=file ;;
534 ;; 540 ;;
535 541
536 542
537 prefix | exec_prefix | bindir | datadir | statedir | libdir | \ 543 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
538 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \ 544 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \
539 archlibdir | docdir | package_path ) 545 archlibdir | docdir | package_path )
540 if test "$valomitted" = "yes"; then 546 if test "$valomitted" = "yes"; then
541 if test "$#" = 0; then 547 if test "$#" = 0; then
542 (echo "$progname: Usage error:" 548 (echo "$progname: Usage error:"
543 echo " " "The \`--$optname' option requires a value." 549 echo " " "The \`--$optname' option requires a value."
544 echo " Use \`$progname --help' to show usage.") >&2 && exit 1; 550 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
616 statedir | lockdir ) { test "$extra_verbose" = "yes" && cat << \EOF 622 statedir | lockdir ) { test "$extra_verbose" = "yes" && cat << \EOF
617 Defining LOCKDIR_USER_DEFINED 623 Defining LOCKDIR_USER_DEFINED
618 EOF 624 EOF
619 cat >> confdefs.h <<\EOF 625 cat >> confdefs.h <<\EOF
620 #define LOCKDIR_USER_DEFINED 1 626 #define LOCKDIR_USER_DEFINED 1
621 EOF
622 }
623 ;;
624 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
625 Defining DOCDIR_USER_DEFINED
626 EOF
627 cat >> confdefs.h <<\EOF
628 #define DOCDIR_USER_DEFINED 1
629 EOF 627 EOF
630 } 628 }
631 ;; 629 ;;
632 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF 630 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
633 Defining ARCHLIBDIR_USER_DEFINED 631 Defining ARCHLIBDIR_USER_DEFINED
755 ;; 753 ;;
756 esac 754 esac
757 755
758 if test -z "$configuration"; then 756 if test -z "$configuration"; then
759 echo $ac_n "checking "host system type"""... $ac_c" 1>&6 757 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
760 echo "configure:761: checking "host system type"" >&5 758 echo "configure:759: checking "host system type"" >&5
761 if configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess | \ 759 if configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess | \
762 sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` ; then 760 sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` ; then
763 echo "$ac_t""$configuration" 1>&6 761 echo "$ac_t""$configuration" 1>&6
764 else 762 else
765 echo "$ac_t""unknown" 1>&6 763 echo "$ac_t""unknown" 1>&6
769 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 767 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
770 fi 768 fi
771 fi 769 fi
772 770
773 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 771 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
774 echo "configure:775: checking whether ln -s works" >&5 772 echo "configure:773: checking whether ln -s works" >&5
775 773
776 rm -f conftestdata 774 rm -f conftestdata
777 if ln -s X conftestdata 2>/dev/null 775 if ln -s X conftestdata 2>/dev/null
778 then 776 then
779 rm -f conftestdata 777 rm -f conftestdata
794 echo Making symbolic link to "$srcdir/$dir" 792 echo Making symbolic link to "$srcdir/$dir"
795 ${LN_S} "$srcdir/$dir" "$dir" 793 ${LN_S} "$srcdir/$dir" "$dir"
796 fi 794 fi
797 done 795 done
798 796
799
800 absolute_pwd="`pwd`"; 797 absolute_pwd="`pwd`";
801 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd" 798 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
802 then blddir="$PWD" 799 then blddir="$PWD"
803 else blddir="$absolute_pwd"; if test -d "/net"; then 800 else blddir="$absolute_pwd"
804 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
805 blddir=`echo "$blddir" | \
806 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
807 fi
808 fi 801 fi
809 802
810 803
811 case "$srcdir" in 804 case "$srcdir" in
812 /* ) ;; 805 /* ) ;;
813 . ) srcdir="$blddir" ;; 806 . ) srcdir="$blddir" ;;
814 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then 807 * ) srcdir="`cd $srcdir && pwd`" ;;
815 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
816 srcdir=`echo "$srcdir" | \
817 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
818 fi ;;
819 esac 808 esac
820 809
821 if test `pwd` != `sh -c cd $srcdir && pwd` \ 810 if test `pwd` != `sh -c cd $srcdir && pwd` \
822 && test -f "$srcdir/src/config.h"; then 811 && test -f "$srcdir/src/config.h"; then
823 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used" 812 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
834 vpath %.s $(srcdir)\ 823 vpath %.s $(srcdir)\
835 vpath %.in $(srcdir)' 824 vpath %.in $(srcdir)'
836 fi 825 fi
837 826
838 . "$srcdir/version.sh" || exit 1; 827 . "$srcdir/version.sh" || exit 1;
839 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi 828 if test -n "$emacs_beta_version"; then beta=yes; else beta=no; fi
840 : "${extra_verbose=$beta}" 829 : "${extra_verbose=$beta}"
841 version="${emacs_major_version}.${emacs_minor_version}" 830 version="${emacs_major_version}.${emacs_minor_version}"
842 { test "$extra_verbose" = "yes" && cat << EOF 831 { test "$extra_verbose" = "yes" && cat << EOF
843 Defining EMACS_MAJOR_VERSION = $emacs_major_version 832 Defining EMACS_MAJOR_VERSION = $emacs_major_version
844 EOF 833 EOF
853 cat >> confdefs.h <<EOF 842 cat >> confdefs.h <<EOF
854 #define EMACS_MINOR_VERSION $emacs_minor_version 843 #define EMACS_MINOR_VERSION $emacs_minor_version
855 EOF 844 EOF
856 } 845 }
857 846
858 if test -n "$emacs_beta_version" ; then 847 if test -n "$emacs_beta_version"; then
859 if test "$beta" = "yes"; then 848 version="${version}-b${emacs_beta_version}"
860 version="${version}-b${emacs_beta_version}" 849 { test "$extra_verbose" = "yes" && cat << EOF
861 { test "$extra_verbose" = "yes" && cat << EOF
862 Defining EMACS_BETA_VERSION = $emacs_beta_version 850 Defining EMACS_BETA_VERSION = $emacs_beta_version
863 EOF 851 EOF
864 cat >> confdefs.h <<EOF 852 cat >> confdefs.h <<EOF
865 #define EMACS_BETA_VERSION $emacs_beta_version 853 #define EMACS_BETA_VERSION $emacs_beta_version
866 EOF 854 EOF
867 } 855 }
868 856
869 else
870 version="${version}.${emacs_beta_version}"
871 { test "$extra_verbose" = "yes" && cat << EOF
872 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
873 EOF
874 cat >> confdefs.h <<EOF
875 #define EMACS_PATCH_LEVEL $emacs_beta_version
876 EOF
877 }
878
879 fi
880 fi 857 fi
881 { test "$extra_verbose" = "yes" && cat << EOF 858 { test "$extra_verbose" = "yes" && cat << EOF
882 Defining XEMACS_CODENAME = "$xemacs_codename" 859 Defining XEMACS_CODENAME = "$xemacs_codename"
883 EOF 860 EOF
884 cat >> confdefs.h <<EOF 861 cat >> confdefs.h <<EOF
894 EOF 871 EOF
895 } 872 }
896 873
897 874
898 if test "$with_infodock" = "yes"; then 875 if test "$with_infodock" = "yes"; then
899 if test ! -f ../../ID-INSTALL; then 876 if test ! -f ../ID-INSTALL; then
900 echo "Cannot build InfoDock without InfoDock sources" 877 echo "Cannot build InfoDock without InfoDock sources"
901 with_infodock=no 878 with_infodock=no
902 fi 879 fi
903 fi 880 fi
904 881
932 CPPFLAGS="$CPPFLAGS -DINFODOCK" 909 CPPFLAGS="$CPPFLAGS -DINFODOCK"
933 else 910 else
934 PROGNAME=xemacs 911 PROGNAME=xemacs
935 fi 912 fi
936 913
937 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi 914 if test -n "$emacs_beta_version"; then beta=yes; else beta=no; fi
938 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF 915 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
939 Defining ERROR_CHECK_EXTENTS 916 Defining ERROR_CHECK_EXTENTS
940 EOF 917 EOF
941 cat >> confdefs.h <<\EOF 918 cat >> confdefs.h <<\EOF
942 #define ERROR_CHECK_EXTENTS 1 919 #define ERROR_CHECK_EXTENTS 1
1006 } 983 }
1007 984
1008 985
1009 986
1010 echo "checking "the configuration name"" 1>&6 987 echo "checking "the configuration name"" 1>&6
1011 echo "configure:1012: checking "the configuration name"" >&5 988 echo "configure:989: checking "the configuration name"" >&5
1012 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'` 989 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1013 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else 990 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else
1014 exit $? 991 exit $?
1015 fi 992 fi
1016 993
1020 997
1021 machine='' opsys='' 998 machine='' opsys=''
1022 999
1023 case "$canonical" in 1000 case "$canonical" in
1024 sparc-*-* ) machine=sparc ;; 1001 sparc-*-* ) machine=sparc ;;
1025 alpha*-*-* ) machine=alpha ;; 1002 alpha-*-* ) machine=alpha ;;
1026 vax-*-* ) machine=vax ;; 1003 vax-*-* ) machine=vax ;;
1027 mips-dec-* ) machine=pmax ;; 1004 mips-dec-* ) machine=pmax ;;
1028 mips-sgi-irix6* ) machine=iris6d ;;
1029 mips-sgi-* ) machine=iris4d ;; 1005 mips-sgi-* ) machine=iris4d ;;
1030 mips*-linux ) machine=mips ;;
1031 romp-ibm-* ) machine=ibmrt ;; 1006 romp-ibm-* ) machine=ibmrt ;;
1032 rs6000-ibm-aix* ) machine=ibmrs6000 ;; 1007 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1033 powerpc-ibm-aix* ) machine=ibmrs6000 ;; 1008 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1034 powerpc*-* ) machine=powerpc ;; 1009 powerpc*-* ) machine=powerpc ;;
1035 hppa-*-* ) machine=hp800 ;; 1010 hppa-*-* ) machine=hp800 ;;
1036 m88k-dg-* ) machine=aviion ;; 1011 m88k-dg-* ) machine=aviion ;;
1037 m68*-sony-* ) machine=news ;; 1012 m68*-sony-* ) machine=news ;;
1038 mips-sony-* ) machine=news-risc ;; 1013 mips-sony-* ) machine=news-risc ;;
1039 clipper-* ) machine=clipper ;; 1014 clipper-* ) machine=clipper ;;
1040 s390-* ) machine=s390 ;;
1041 esac 1015 esac
1042 1016
1043 case "$canonical" in 1017 case "$canonical" in
1044 *-*-linux* ) opsys=linux ;; 1018 *-*-linux* ) opsys=linux ;;
1045 *-*-netbsd* ) opsys=netbsd ;; 1019 *-*-netbsd* ) opsys=netbsd ;;
1058 *-*-ultrix* ) opsys=ultrix4-3 ;; 1032 *-*-ultrix* ) opsys=ultrix4-3 ;;
1059 1033
1060 *-*-aix3.1* ) opsys=aix3-1 ;; 1034 *-*-aix3.1* ) opsys=aix3-1 ;;
1061 *-*-aix3.2.5 ) opsys=aix3-2-5 ;; 1035 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1062 *-*-aix3* ) opsys=aix3-2 ;; 1036 *-*-aix3* ) opsys=aix3-2 ;;
1063 *-*-aix4.0* ) opsys=aix4 ;; 1037 *-*-aix4.2* ) opsys=aix4-2 ;;
1064 *-*-aix4.1* ) opsys=aix4-1 ;; 1038 *-*-aix4.1* ) opsys=aix4-1 ;;
1065 *-*-aix4* ) opsys=aix4-2 ;; 1039 *-*-aix4* ) opsys=aix4 ;;
1066 1040
1067 *-gnu* ) opsys=gnu ;; 1041 *-gnu* ) opsys=gnu ;;
1068 *-*-bsd4.[01] ) opsys=bsd4-1 ;; 1042 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1069 *-*-bsd4.2 ) opsys=bsd4-2 ;; 1043 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1070 *-*-bsd4.3 ) opsys=bsd4-3 ;; 1044 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1266 machine=mips-siemens opsys=usg5-4 1240 machine=mips-siemens opsys=usg5-4
1267 NON_GNU_CC=/usr/ccs/bin/cc 1241 NON_GNU_CC=/usr/ccs/bin/cc
1268 NON_GNU_CPP=/usr/ccs/lib/cpp 1242 NON_GNU_CPP=/usr/ccs/lib/cpp
1269 ;; 1243 ;;
1270 1244
1271 mips-nec-sysv*)
1272 machine=mips-nec
1273 NON_GNU_CC=/usr/ccs/bin/cc
1274 NON_GNU_CPP=/usr/ccs/lib/cpp
1275 ;;
1276
1277 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;; 1245 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1278 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;; 1246 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1279 mips-sgi-irix3.* ) opsys=irix3-3 ;; 1247 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1280 mips-sgi-irix4.* ) opsys=irix4-0 ;; 1248 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1281 mips-sgi-irix6* ) opsys=irix6-0 ;; 1249 mips-sgi-irix6* ) opsys=irix6-0 ;;
1383 *-esix* ) opsys=esix ;; 1351 *-esix* ) opsys=esix ;;
1384 *-mach* ) opsys=mach-bsd4-3 ;; 1352 *-mach* ) opsys=mach-bsd4-3 ;;
1385 *-xenix* ) opsys=xenix ;; 1353 *-xenix* ) opsys=xenix ;;
1386 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;; 1354 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1387 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;; 1355 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1388 *-bsdi4* ) opsys=bsdos4 ;;
1389 *-bsdi3* ) opsys=bsdos3 ;; 1356 *-bsdi3* ) opsys=bsdos3 ;;
1390 *-bsdi2.1* ) opsys=bsdos2-1 ;; 1357 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1391 *-bsdi2* ) opsys=bsdos2 ;; 1358 *-bsdi2* ) opsys=bsdos2 ;;
1392 *-sco3.2v5* ) opsys=sco5 ; 1359 *-sco3.2v5* ) opsys=sco5 ;
1393 if test "$dynamic" = "yes" ; then 1360 if test "$dynamic" = "yes" ; then
1394 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ; 1361 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1395 else 1362 else
1396 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ; 1363 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1397 fi ;; 1364 fi ;;
1398 *-sysv5* ) opsys=sco7 ;;
1399 *-386bsd* ) opsys=386bsd ;; 1365 *-386bsd* ) opsys=386bsd ;;
1400 *-freebsd* ) opsys=freebsd ;; 1366 *-freebsd* ) opsys=freebsd ;;
1401 *-nextstep* ) opsys=nextstep ;; 1367 *-nextstep* ) opsys=nextstep ;;
1402 *-pc-cygwin32 ) opsys=cygwin32 ;; 1368 *-pc-cygwin32 ) opsys=cygwin32 ;;
1403 esac 1369 esac
1404 ;; 1370 ;;
1405 1371
1406 m68k-*-linux* ) machine=m68k opsys=linux ;; 1372 m68k-*-linux* ) machine=m68k opsys=linux ;;
1407
1408 arm-*-linux* ) machine=arm opsys=linux ;;
1409 1373
1410 esac 1374 esac
1411 1375
1412 if test -z "$machine" -o -z "$opsys"; then 1376 if test -z "$machine" -o -z "$opsys"; then
1413 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems." 1377 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems."
1503 xe_save_CFLAGS="$CFLAGS" 1467 xe_save_CFLAGS="$CFLAGS"
1504 1468
1505 # Extract the first word of "gcc", so it can be a program name with args. 1469 # Extract the first word of "gcc", so it can be a program name with args.
1506 set dummy gcc; ac_word=$2 1470 set dummy gcc; ac_word=$2
1507 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1471 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1508 echo "configure:1509: checking for $ac_word" >&5 1472 echo "configure:1473: checking for $ac_word" >&5
1509 1473
1510 if test -n "$CC"; then 1474 if test -n "$CC"; then
1511 ac_cv_prog_CC="$CC" # Let the user override the test. 1475 ac_cv_prog_CC="$CC" # Let the user override the test.
1512 else 1476 else
1513 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1477 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1514 ac_dummy="$PATH" 1478 for ac_dir in $PATH; do
1515 for ac_dir in $ac_dummy; do
1516 test -z "$ac_dir" && ac_dir=. 1479 test -z "$ac_dir" && ac_dir=.
1517 if test -f $ac_dir/$ac_word; then 1480 if test -f $ac_dir/$ac_word; then
1518 ac_cv_prog_CC="gcc" 1481 ac_cv_prog_CC="gcc"
1519 break 1482 break
1520 fi 1483 fi
1530 1493
1531 if test -z "$CC"; then 1494 if test -z "$CC"; then
1532 # Extract the first word of "cc", so it can be a program name with args. 1495 # Extract the first word of "cc", so it can be a program name with args.
1533 set dummy cc; ac_word=$2 1496 set dummy cc; ac_word=$2
1534 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1497 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1535 echo "configure:1536: checking for $ac_word" >&5 1498 echo "configure:1499: checking for $ac_word" >&5
1536 1499
1537 if test -n "$CC"; then 1500 if test -n "$CC"; then
1538 ac_cv_prog_CC="$CC" # Let the user override the test. 1501 ac_cv_prog_CC="$CC" # Let the user override the test.
1539 else 1502 else
1540 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1541 ac_prog_rejected=no 1504 ac_prog_rejected=no
1542 ac_dummy="$PATH" 1505 for ac_dir in $PATH; do
1543 for ac_dir in $ac_dummy; do
1544 test -z "$ac_dir" && ac_dir=. 1506 test -z "$ac_dir" && ac_dir=.
1545 if test -f $ac_dir/$ac_word; then 1507 if test -f $ac_dir/$ac_word; then
1546 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1508 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1547 ac_prog_rejected=yes 1509 ac_prog_rejected=yes
1548 continue 1510 continue
1572 echo "$ac_t""$CC" 1>&6 1534 echo "$ac_t""$CC" 1>&6
1573 else 1535 else
1574 echo "$ac_t""no" 1>&6 1536 echo "$ac_t""no" 1>&6
1575 fi 1537 fi
1576 1538
1577 if test -z "$CC"; then
1578 case "`uname -s`" in
1579 *win32* | *WIN32*)
1580 # Extract the first word of "cl", so it can be a program name with args.
1581 set dummy cl; ac_word=$2
1582 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1583 echo "configure:1584: checking for $ac_word" >&5
1584
1585 if test -n "$CC"; then
1586 ac_cv_prog_CC="$CC" # Let the user override the test.
1587 else
1588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1589 ac_dummy="$PATH"
1590 for ac_dir in $ac_dummy; do
1591 test -z "$ac_dir" && ac_dir=.
1592 if test -f $ac_dir/$ac_word; then
1593 ac_cv_prog_CC="cl"
1594 break
1595 fi
1596 done
1597 IFS="$ac_save_ifs"
1598 fi
1599 CC="$ac_cv_prog_CC"
1600 if test -n "$CC"; then
1601 echo "$ac_t""$CC" 1>&6
1602 else
1603 echo "$ac_t""no" 1>&6
1604 fi
1605 ;;
1606 esac
1607 fi
1608 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1539 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1609 fi 1540 fi
1610 1541
1611 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1542 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1612 echo "configure:1613: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1543 echo "configure:1544: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1613 1544
1614 ac_ext=c 1545 ac_ext=c
1615 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1546 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1616 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1547 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1617 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1548 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1618 ac_cpp='$CPP '"$xe_cppflags" 1549 ac_cpp='$CPP '"$xe_cppflags"
1619 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1550 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1620 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1551 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1621 cross_compiling=no 1552 cross_compiling=no
1622 1553
1623 cat > conftest.$ac_ext << EOF 1554 cat > conftest.$ac_ext <<EOF
1624 1555 #line 1556 "configure"
1625 #line 1626 "configure" 1556 #include "confdefs.h"
1626 #include "confdefs.h"
1627
1628 main(){return(0);} 1557 main(){return(0);}
1629 EOF 1558 EOF
1630 if { (eval echo configure:1631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1559 if { (eval echo configure:1560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1631 ac_cv_prog_cc_works=yes 1560 ac_cv_prog_cc_works=yes
1632 # If we can't run a trivial program, we are probably using a cross compiler. 1561 # If we can't run a trivial program, we are probably using a cross compiler.
1633 if (./conftest; exit) 2>/dev/null; then 1562 if (./conftest; exit) 2>/dev/null; then
1634 ac_cv_prog_cc_cross=no 1563 ac_cv_prog_cc_cross=no
1635 else 1564 else
1639 echo "configure: failed program was:" >&5 1568 echo "configure: failed program was:" >&5
1640 cat conftest.$ac_ext >&5 1569 cat conftest.$ac_ext >&5
1641 ac_cv_prog_cc_works=no 1570 ac_cv_prog_cc_works=no
1642 fi 1571 fi
1643 rm -fr conftest* 1572 rm -fr conftest*
1644 ac_ext=c
1645 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1646 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1647 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1648 ac_cpp='$CPP '"$xe_cppflags"
1649 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1650 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1651 cross_compiling=no
1652 1573
1653 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1574 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1654 if test $ac_cv_prog_cc_works = no; then 1575 if test $ac_cv_prog_cc_works = no; then
1655 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1576 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1656 fi 1577 fi
1657 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1578 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1658 echo "configure:1659: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1579 echo "configure:1580: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1659 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1580 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1660 cross_compiling=$ac_cv_prog_cc_cross 1581 cross_compiling=$ac_cv_prog_cc_cross
1661 1582
1662 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1583 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1663 echo "configure:1664: checking whether we are using GNU C" >&5 1584 echo "configure:1585: checking whether we are using GNU C" >&5
1664 1585
1665 cat > conftest.c <<EOF 1586 cat > conftest.c <<EOF
1666 #ifdef __GNUC__ 1587 #ifdef __GNUC__
1667 yes; 1588 yes;
1668 #endif 1589 #endif
1669 EOF 1590 EOF
1670 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1591 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1671 ac_cv_prog_gcc=yes 1592 ac_cv_prog_gcc=yes
1672 else 1593 else
1673 ac_cv_prog_gcc=no 1594 ac_cv_prog_gcc=no
1674 fi 1595 fi
1675 1596
1676 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1597 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1677 1598
1678 if test $ac_cv_prog_gcc = yes; then 1599 if test $ac_cv_prog_gcc = yes; then
1679 GCC=yes 1600 GCC=yes
1680 else 1601 ac_test_CFLAGS="${CFLAGS+set}"
1681 GCC= 1602 ac_save_CFLAGS="$CFLAGS"
1682 fi 1603 CFLAGS=
1683 1604 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1684 ac_test_CFLAGS="${CFLAGS+set}" 1605 echo "configure:1606: checking whether ${CC-cc} accepts -g" >&5
1685 ac_save_CFLAGS="$CFLAGS"
1686 CFLAGS=
1687 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1688 echo "configure:1689: checking whether ${CC-cc} accepts -g" >&5
1689 1606
1690 echo 'void f(){}' > conftest.c 1607 echo 'void f(){}' > conftest.c
1691 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1608 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1692 ac_cv_prog_cc_g=yes 1609 ac_cv_prog_cc_g=yes
1693 else 1610 else
1695 fi 1612 fi
1696 rm -f conftest* 1613 rm -f conftest*
1697 1614
1698 1615
1699 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1616 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1700 if test "$ac_test_CFLAGS" = set; then 1617 if test "$ac_test_CFLAGS" = set; then
1701 CFLAGS="$ac_save_CFLAGS" 1618 CFLAGS="$ac_save_CFLAGS"
1702 elif test $ac_cv_prog_cc_g = yes; then 1619 elif test $ac_cv_prog_cc_g = yes; then
1703 if test "$GCC" = yes; then
1704 CFLAGS="-g -O2" 1620 CFLAGS="-g -O2"
1705 else 1621 else
1706 CFLAGS="-g" 1622 CFLAGS="-O2"
1707 fi 1623 fi
1708 else 1624 else
1709 if test "$GCC" = yes; then 1625 GCC=
1710 CFLAGS="-O2" 1626 test "${CFLAGS+set}" = set || CFLAGS="-g"
1711 else
1712 CFLAGS=
1713 fi
1714 fi 1627 fi
1715 1628
1716 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then 1629 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1717 CC=${NON_GNU_CC-cc} 1630 CC=${NON_GNU_CC-cc}
1718 # Extract the first word of "gcc", so it can be a program name with args. 1631 # Extract the first word of "gcc", so it can be a program name with args.
1719 set dummy gcc; ac_word=$2 1632 set dummy gcc; ac_word=$2
1720 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1633 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1721 echo "configure:1722: checking for $ac_word" >&5 1634 echo "configure:1635: checking for $ac_word" >&5
1722 1635
1723 if test -n "$CC"; then 1636 if test -n "$CC"; then
1724 ac_cv_prog_CC="$CC" # Let the user override the test. 1637 ac_cv_prog_CC="$CC" # Let the user override the test.
1725 else 1638 else
1726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1639 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1727 ac_dummy="$PATH" 1640 for ac_dir in $PATH; do
1728 for ac_dir in $ac_dummy; do
1729 test -z "$ac_dir" && ac_dir=. 1641 test -z "$ac_dir" && ac_dir=.
1730 if test -f $ac_dir/$ac_word; then 1642 if test -f $ac_dir/$ac_word; then
1731 ac_cv_prog_CC="gcc" 1643 ac_cv_prog_CC="gcc"
1732 break 1644 break
1733 fi 1645 fi
1743 1655
1744 if test -z "$CC"; then 1656 if test -z "$CC"; then
1745 # Extract the first word of "cc", so it can be a program name with args. 1657 # Extract the first word of "cc", so it can be a program name with args.
1746 set dummy cc; ac_word=$2 1658 set dummy cc; ac_word=$2
1747 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1659 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1748 echo "configure:1749: checking for $ac_word" >&5 1660 echo "configure:1661: checking for $ac_word" >&5
1749 1661
1750 if test -n "$CC"; then 1662 if test -n "$CC"; then
1751 ac_cv_prog_CC="$CC" # Let the user override the test. 1663 ac_cv_prog_CC="$CC" # Let the user override the test.
1752 else 1664 else
1753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1754 ac_prog_rejected=no 1666 ac_prog_rejected=no
1755 ac_dummy="$PATH" 1667 for ac_dir in $PATH; do
1756 for ac_dir in $ac_dummy; do
1757 test -z "$ac_dir" && ac_dir=. 1668 test -z "$ac_dir" && ac_dir=.
1758 if test -f $ac_dir/$ac_word; then 1669 if test -f $ac_dir/$ac_word; then
1759 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1670 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1760 ac_prog_rejected=yes 1671 ac_prog_rejected=yes
1761 continue 1672 continue
1785 echo "$ac_t""$CC" 1>&6 1696 echo "$ac_t""$CC" 1>&6
1786 else 1697 else
1787 echo "$ac_t""no" 1>&6 1698 echo "$ac_t""no" 1>&6
1788 fi 1699 fi
1789 1700
1790 if test -z "$CC"; then
1791 case "`uname -s`" in
1792 *win32* | *WIN32*)
1793 # Extract the first word of "cl", so it can be a program name with args.
1794 set dummy cl; ac_word=$2
1795 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1796 echo "configure:1797: checking for $ac_word" >&5
1797
1798 if test -n "$CC"; then
1799 ac_cv_prog_CC="$CC" # Let the user override the test.
1800 else
1801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1802 ac_dummy="$PATH"
1803 for ac_dir in $ac_dummy; do
1804 test -z "$ac_dir" && ac_dir=.
1805 if test -f $ac_dir/$ac_word; then
1806 ac_cv_prog_CC="cl"
1807 break
1808 fi
1809 done
1810 IFS="$ac_save_ifs"
1811 fi
1812 CC="$ac_cv_prog_CC"
1813 if test -n "$CC"; then
1814 echo "$ac_t""$CC" 1>&6
1815 else
1816 echo "$ac_t""no" 1>&6
1817 fi
1818 ;;
1819 esac
1820 fi
1821 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1701 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1822 fi 1702 fi
1823 1703
1824 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1704 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1825 echo "configure:1826: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1705 echo "configure:1706: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1826 1706
1827 ac_ext=c 1707 ac_ext=c
1828 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1708 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1829 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1709 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1830 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1710 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1831 ac_cpp='$CPP '"$xe_cppflags" 1711 ac_cpp='$CPP '"$xe_cppflags"
1832 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1712 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1833 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1713 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1834 cross_compiling=no 1714 cross_compiling=no
1835 1715
1836 cat > conftest.$ac_ext << EOF 1716 cat > conftest.$ac_ext <<EOF
1837 1717 #line 1718 "configure"
1838 #line 1839 "configure" 1718 #include "confdefs.h"
1839 #include "confdefs.h"
1840
1841 main(){return(0);} 1719 main(){return(0);}
1842 EOF 1720 EOF
1843 if { (eval echo configure:1844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1721 if { (eval echo configure:1722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1844 ac_cv_prog_cc_works=yes 1722 ac_cv_prog_cc_works=yes
1845 # If we can't run a trivial program, we are probably using a cross compiler. 1723 # If we can't run a trivial program, we are probably using a cross compiler.
1846 if (./conftest; exit) 2>/dev/null; then 1724 if (./conftest; exit) 2>/dev/null; then
1847 ac_cv_prog_cc_cross=no 1725 ac_cv_prog_cc_cross=no
1848 else 1726 else
1852 echo "configure: failed program was:" >&5 1730 echo "configure: failed program was:" >&5
1853 cat conftest.$ac_ext >&5 1731 cat conftest.$ac_ext >&5
1854 ac_cv_prog_cc_works=no 1732 ac_cv_prog_cc_works=no
1855 fi 1733 fi
1856 rm -fr conftest* 1734 rm -fr conftest*
1857 ac_ext=c
1858 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1859 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1860 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1861 ac_cpp='$CPP '"$xe_cppflags"
1862 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1863 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1864 cross_compiling=no
1865 1735
1866 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1736 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1867 if test $ac_cv_prog_cc_works = no; then 1737 if test $ac_cv_prog_cc_works = no; then
1868 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1738 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1869 fi 1739 fi
1870 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1740 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1871 echo "configure:1872: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1741 echo "configure:1742: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1872 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1742 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1873 cross_compiling=$ac_cv_prog_cc_cross 1743 cross_compiling=$ac_cv_prog_cc_cross
1874 1744
1875 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1745 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1876 echo "configure:1877: checking whether we are using GNU C" >&5 1746 echo "configure:1747: checking whether we are using GNU C" >&5
1877 1747
1878 cat > conftest.c <<EOF 1748 cat > conftest.c <<EOF
1879 #ifdef __GNUC__ 1749 #ifdef __GNUC__
1880 yes; 1750 yes;
1881 #endif 1751 #endif
1882 EOF 1752 EOF
1883 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1753 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1884 ac_cv_prog_gcc=yes 1754 ac_cv_prog_gcc=yes
1885 else 1755 else
1886 ac_cv_prog_gcc=no 1756 ac_cv_prog_gcc=no
1887 fi 1757 fi
1888 1758
1889 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1759 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1890 1760
1891 if test $ac_cv_prog_gcc = yes; then 1761 if test $ac_cv_prog_gcc = yes; then
1892 GCC=yes 1762 GCC=yes
1893 else 1763 ac_test_CFLAGS="${CFLAGS+set}"
1894 GCC= 1764 ac_save_CFLAGS="$CFLAGS"
1895 fi 1765 CFLAGS=
1896 1766 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1897 ac_test_CFLAGS="${CFLAGS+set}" 1767 echo "configure:1768: checking whether ${CC-cc} accepts -g" >&5
1898 ac_save_CFLAGS="$CFLAGS"
1899 CFLAGS=
1900 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1901 echo "configure:1902: checking whether ${CC-cc} accepts -g" >&5
1902 1768
1903 echo 'void f(){}' > conftest.c 1769 echo 'void f(){}' > conftest.c
1904 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1770 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1905 ac_cv_prog_cc_g=yes 1771 ac_cv_prog_cc_g=yes
1906 else 1772 else
1908 fi 1774 fi
1909 rm -f conftest* 1775 rm -f conftest*
1910 1776
1911 1777
1912 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1778 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1913 if test "$ac_test_CFLAGS" = set; then 1779 if test "$ac_test_CFLAGS" = set; then
1914 CFLAGS="$ac_save_CFLAGS" 1780 CFLAGS="$ac_save_CFLAGS"
1915 elif test $ac_cv_prog_cc_g = yes; then 1781 elif test $ac_cv_prog_cc_g = yes; then
1916 if test "$GCC" = yes; then
1917 CFLAGS="-g -O2" 1782 CFLAGS="-g -O2"
1918 else 1783 else
1919 CFLAGS="-g" 1784 CFLAGS="-O2"
1920 fi 1785 fi
1921 else 1786 else
1922 if test "$GCC" = yes; then 1787 GCC=
1923 CFLAGS="-O2" 1788 test "${CFLAGS+set}" = set || CFLAGS="-g"
1924 else
1925 CFLAGS=
1926 fi
1927 fi 1789 fi
1928 1790
1929 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then 1791 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1930 CC=gcc 1792 CC=gcc
1931 # Extract the first word of "gcc", so it can be a program name with args. 1793 # Extract the first word of "gcc", so it can be a program name with args.
1932 set dummy gcc; ac_word=$2 1794 set dummy gcc; ac_word=$2
1933 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1795 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1934 echo "configure:1935: checking for $ac_word" >&5 1796 echo "configure:1797: checking for $ac_word" >&5
1935 1797
1936 if test -n "$CC"; then 1798 if test -n "$CC"; then
1937 ac_cv_prog_CC="$CC" # Let the user override the test. 1799 ac_cv_prog_CC="$CC" # Let the user override the test.
1938 else 1800 else
1939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1940 ac_dummy="$PATH" 1802 for ac_dir in $PATH; do
1941 for ac_dir in $ac_dummy; do
1942 test -z "$ac_dir" && ac_dir=. 1803 test -z "$ac_dir" && ac_dir=.
1943 if test -f $ac_dir/$ac_word; then 1804 if test -f $ac_dir/$ac_word; then
1944 ac_cv_prog_CC="gcc" 1805 ac_cv_prog_CC="gcc"
1945 break 1806 break
1946 fi 1807 fi
1956 1817
1957 if test -z "$CC"; then 1818 if test -z "$CC"; then
1958 # Extract the first word of "cc", so it can be a program name with args. 1819 # Extract the first word of "cc", so it can be a program name with args.
1959 set dummy cc; ac_word=$2 1820 set dummy cc; ac_word=$2
1960 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1821 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1961 echo "configure:1962: checking for $ac_word" >&5 1822 echo "configure:1823: checking for $ac_word" >&5
1962 1823
1963 if test -n "$CC"; then 1824 if test -n "$CC"; then
1964 ac_cv_prog_CC="$CC" # Let the user override the test. 1825 ac_cv_prog_CC="$CC" # Let the user override the test.
1965 else 1826 else
1966 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1967 ac_prog_rejected=no 1828 ac_prog_rejected=no
1968 ac_dummy="$PATH" 1829 for ac_dir in $PATH; do
1969 for ac_dir in $ac_dummy; do
1970 test -z "$ac_dir" && ac_dir=. 1830 test -z "$ac_dir" && ac_dir=.
1971 if test -f $ac_dir/$ac_word; then 1831 if test -f $ac_dir/$ac_word; then
1972 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1832 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1973 ac_prog_rejected=yes 1833 ac_prog_rejected=yes
1974 continue 1834 continue
1998 echo "$ac_t""$CC" 1>&6 1858 echo "$ac_t""$CC" 1>&6
1999 else 1859 else
2000 echo "$ac_t""no" 1>&6 1860 echo "$ac_t""no" 1>&6
2001 fi 1861 fi
2002 1862
2003 if test -z "$CC"; then
2004 case "`uname -s`" in
2005 *win32* | *WIN32*)
2006 # Extract the first word of "cl", so it can be a program name with args.
2007 set dummy cl; ac_word=$2
2008 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2009 echo "configure:2010: checking for $ac_word" >&5
2010
2011 if test -n "$CC"; then
2012 ac_cv_prog_CC="$CC" # Let the user override the test.
2013 else
2014 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2015 ac_dummy="$PATH"
2016 for ac_dir in $ac_dummy; do
2017 test -z "$ac_dir" && ac_dir=.
2018 if test -f $ac_dir/$ac_word; then
2019 ac_cv_prog_CC="cl"
2020 break
2021 fi
2022 done
2023 IFS="$ac_save_ifs"
2024 fi
2025 CC="$ac_cv_prog_CC"
2026 if test -n "$CC"; then
2027 echo "$ac_t""$CC" 1>&6
2028 else
2029 echo "$ac_t""no" 1>&6
2030 fi
2031 ;;
2032 esac
2033 fi
2034 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1863 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2035 fi 1864 fi
2036 1865
2037 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1866 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2038 echo "configure:2039: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1867 echo "configure:1868: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2039 1868
2040 ac_ext=c 1869 ac_ext=c
2041 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1870 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2042 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1871 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2043 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1872 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2044 ac_cpp='$CPP '"$xe_cppflags" 1873 ac_cpp='$CPP '"$xe_cppflags"
2045 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1874 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2046 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1875 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2047 cross_compiling=no 1876 cross_compiling=no
2048 1877
2049 cat > conftest.$ac_ext << EOF 1878 cat > conftest.$ac_ext <<EOF
2050 1879 #line 1880 "configure"
2051 #line 2052 "configure" 1880 #include "confdefs.h"
2052 #include "confdefs.h"
2053
2054 main(){return(0);} 1881 main(){return(0);}
2055 EOF 1882 EOF
2056 if { (eval echo configure:2057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1883 if { (eval echo configure:1884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2057 ac_cv_prog_cc_works=yes 1884 ac_cv_prog_cc_works=yes
2058 # If we can't run a trivial program, we are probably using a cross compiler. 1885 # If we can't run a trivial program, we are probably using a cross compiler.
2059 if (./conftest; exit) 2>/dev/null; then 1886 if (./conftest; exit) 2>/dev/null; then
2060 ac_cv_prog_cc_cross=no 1887 ac_cv_prog_cc_cross=no
2061 else 1888 else
2065 echo "configure: failed program was:" >&5 1892 echo "configure: failed program was:" >&5
2066 cat conftest.$ac_ext >&5 1893 cat conftest.$ac_ext >&5
2067 ac_cv_prog_cc_works=no 1894 ac_cv_prog_cc_works=no
2068 fi 1895 fi
2069 rm -fr conftest* 1896 rm -fr conftest*
2070 ac_ext=c
2071 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2072 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2073 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2074 ac_cpp='$CPP '"$xe_cppflags"
2075 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2076 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2077 cross_compiling=no
2078 1897
2079 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1898 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2080 if test $ac_cv_prog_cc_works = no; then 1899 if test $ac_cv_prog_cc_works = no; then
2081 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1900 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2082 fi 1901 fi
2083 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1902 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2084 echo "configure:2085: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1903 echo "configure:1904: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2085 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1904 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2086 cross_compiling=$ac_cv_prog_cc_cross 1905 cross_compiling=$ac_cv_prog_cc_cross
2087 1906
2088 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1907 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2089 echo "configure:2090: checking whether we are using GNU C" >&5 1908 echo "configure:1909: checking whether we are using GNU C" >&5
2090 1909
2091 cat > conftest.c <<EOF 1910 cat > conftest.c <<EOF
2092 #ifdef __GNUC__ 1911 #ifdef __GNUC__
2093 yes; 1912 yes;
2094 #endif 1913 #endif
2095 EOF 1914 EOF
2096 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1915 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2097 ac_cv_prog_gcc=yes 1916 ac_cv_prog_gcc=yes
2098 else 1917 else
2099 ac_cv_prog_gcc=no 1918 ac_cv_prog_gcc=no
2100 fi 1919 fi
2101 1920
2102 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1921 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2103 1922
2104 if test $ac_cv_prog_gcc = yes; then 1923 if test $ac_cv_prog_gcc = yes; then
2105 GCC=yes 1924 GCC=yes
2106 else 1925 ac_test_CFLAGS="${CFLAGS+set}"
2107 GCC= 1926 ac_save_CFLAGS="$CFLAGS"
2108 fi 1927 CFLAGS=
2109 1928 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2110 ac_test_CFLAGS="${CFLAGS+set}" 1929 echo "configure:1930: checking whether ${CC-cc} accepts -g" >&5
2111 ac_save_CFLAGS="$CFLAGS"
2112 CFLAGS=
2113 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2114 echo "configure:2115: checking whether ${CC-cc} accepts -g" >&5
2115 1930
2116 echo 'void f(){}' > conftest.c 1931 echo 'void f(){}' > conftest.c
2117 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1932 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2118 ac_cv_prog_cc_g=yes 1933 ac_cv_prog_cc_g=yes
2119 else 1934 else
2121 fi 1936 fi
2122 rm -f conftest* 1937 rm -f conftest*
2123 1938
2124 1939
2125 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1940 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2126 if test "$ac_test_CFLAGS" = set; then 1941 if test "$ac_test_CFLAGS" = set; then
2127 CFLAGS="$ac_save_CFLAGS" 1942 CFLAGS="$ac_save_CFLAGS"
2128 elif test $ac_cv_prog_cc_g = yes; then 1943 elif test $ac_cv_prog_cc_g = yes; then
2129 if test "$GCC" = yes; then
2130 CFLAGS="-g -O2" 1944 CFLAGS="-g -O2"
2131 else 1945 else
2132 CFLAGS="-g" 1946 CFLAGS="-O2"
2133 fi 1947 fi
2134 else 1948 else
2135 if test "$GCC" = yes; then 1949 GCC=
2136 CFLAGS="-O2" 1950 test "${CFLAGS+set}" = set || CFLAGS="-g"
2137 else
2138 CFLAGS=
2139 fi
2140 fi 1951 fi
2141 1952
2142 fi 1953 fi
2143 CFLAGS="$xe_save_CFLAGS" 1954 CFLAGS="$xe_save_CFLAGS"
2144 1955
2146 test -n "$CPP" -a -d "$CPP" && CPP= 1957 test -n "$CPP" -a -d "$CPP" && CPP=
2147 1958
2148 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" 1959 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2149 1960
2150 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1961 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2151 echo "configure:2152: checking how to run the C preprocessor" >&5 1962 echo "configure:1963: checking how to run the C preprocessor" >&5
2152 # On Suns, sometimes $CPP names a directory. 1963 # On Suns, sometimes $CPP names a directory.
2153 if test -n "$CPP" && test -d "$CPP"; then 1964 if test -n "$CPP" && test -d "$CPP"; then
2154 CPP= 1965 CPP=
2155 fi 1966 fi
2156 if test -z "$CPP"; then 1967 if test -z "$CPP"; then
2159 # substituted into the Makefile and "${CC-cc}" will confuse make. 1970 # substituted into the Makefile and "${CC-cc}" will confuse make.
2160 CPP="${CC-cc} -E" 1971 CPP="${CC-cc} -E"
2161 # On the NeXT, cc -E runs the code through the compiler's parser, 1972 # On the NeXT, cc -E runs the code through the compiler's parser,
2162 # not just through cpp. 1973 # not just through cpp.
2163 cat > conftest.$ac_ext <<EOF 1974 cat > conftest.$ac_ext <<EOF
2164 #line 2165 "configure" 1975 #line 1976 "configure"
2165 #include "confdefs.h" 1976 #include "confdefs.h"
2166 #include <assert.h> 1977 #include <assert.h>
2167 Syntax Error 1978 Syntax Error
2168 EOF 1979 EOF
2169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2170 { (eval echo configure:2171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1981 { (eval echo configure:1982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2171 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1982 ac_err=`grep -v '^ *+' conftest.out`
2172 if test -z "$ac_err"; then 1983 if test -z "$ac_err"; then
2173 : 1984 :
2174 else 1985 else
2175 echo "$ac_err" >&5 1986 echo "$ac_err" >&5
2176 echo "configure: failed program was:" >&5 1987 echo "configure: failed program was:" >&5
2177 cat conftest.$ac_ext >&5 1988 cat conftest.$ac_ext >&5
2178 rm -rf conftest* 1989 rm -rf conftest*
2179 CPP="${CC-cc} -E -traditional-cpp" 1990 CPP="${CC-cc} -E -traditional-cpp"
2180 cat > conftest.$ac_ext <<EOF 1991 cat > conftest.$ac_ext <<EOF
2181 #line 2182 "configure" 1992 #line 1993 "configure"
2182 #include "confdefs.h" 1993 #include "confdefs.h"
2183 #include <assert.h> 1994 #include <assert.h>
2184 Syntax Error 1995 Syntax Error
2185 EOF 1996 EOF
2186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1997 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2187 { (eval echo configure:2188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1998 { (eval echo configure:1999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2188 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1999 ac_err=`grep -v '^ *+' conftest.out`
2189 if test -z "$ac_err"; then 2000 if test -z "$ac_err"; then
2190 : 2001 :
2191 else 2002 else
2192 echo "$ac_err" >&5 2003 echo "$ac_err" >&5
2193 echo "configure: failed program was:" >&5 2004 echo "configure: failed program was:" >&5
2194 cat conftest.$ac_ext >&5 2005 cat conftest.$ac_ext >&5
2195 rm -rf conftest* 2006 rm -rf conftest*
2196 CPP="${CC-cc} -nologo -E"
2197 cat > conftest.$ac_ext <<EOF
2198 #line 2199 "configure"
2199 #include "confdefs.h"
2200 #include <assert.h>
2201 Syntax Error
2202 EOF
2203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2204 { (eval echo configure:2205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2205 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2206 if test -z "$ac_err"; then
2207 :
2208 else
2209 echo "$ac_err" >&5
2210 echo "configure: failed program was:" >&5
2211 cat conftest.$ac_ext >&5
2212 rm -rf conftest*
2213 CPP=/lib/cpp 2007 CPP=/lib/cpp
2214 fi
2215 rm -f conftest*
2216 fi 2008 fi
2217 rm -f conftest* 2009 rm -f conftest*
2218 fi 2010 fi
2219 rm -f conftest* 2011 rm -f conftest*
2220 ac_cv_prog_CPP="$CPP" 2012 ac_cv_prog_CPP="$CPP"
2224 fi 2016 fi
2225 echo "$ac_t""$CPP" 1>&6 2017 echo "$ac_t""$CPP" 1>&6
2226 2018
2227 2019
2228 echo $ac_n "checking for AIX""... $ac_c" 1>&6 2020 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2229 echo "configure:2230: checking for AIX" >&5 2021 echo "configure:2022: checking for AIX" >&5
2230 cat > conftest.$ac_ext <<EOF 2022 cat > conftest.$ac_ext <<EOF
2231 #line 2232 "configure" 2023 #line 2024 "configure"
2232 #include "confdefs.h" 2024 #include "confdefs.h"
2233 #ifdef _AIX 2025 #ifdef _AIX
2234 yes 2026 yes
2235 #endif 2027 #endif
2236 2028
2253 rm -f conftest* 2045 rm -f conftest*
2254 2046
2255 2047
2256 2048
2257 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6 2049 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2258 echo "configure:2259: checking for GNU libc" >&5 2050 echo "configure:2051: checking for GNU libc" >&5
2259 cat > conftest.$ac_ext <<EOF 2051 cat > conftest.$ac_ext <<EOF
2260 #line 2261 "configure" 2052 #line 2053 "configure"
2261 #include "confdefs.h" 2053 #include "confdefs.h"
2262 #include <features.h> 2054 #include <features.h>
2263 int main() { 2055 int main() {
2264 2056
2265 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) 2057 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2267 ******* ======= ******** &&&&&&&& 2059 ******* ======= ******** &&&&&&&&
2268 #endif 2060 #endif
2269 2061
2270 ; return 0; } 2062 ; return 0; }
2271 EOF 2063 EOF
2272 if { (eval echo configure:2273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2064 if { (eval echo configure:2065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2273 rm -rf conftest* 2065 rm -rf conftest*
2274 have_glibc=yes 2066 have_glibc=yes
2275 else 2067 else
2276 echo "configure: failed program was:" >&5 2068 echo "configure: failed program was:" >&5
2277 cat conftest.$ac_ext >&5 2069 cat conftest.$ac_ext >&5
2287 #define _GNU_SOURCE 1 2079 #define _GNU_SOURCE 1
2288 EOF 2080 EOF
2289 } 2081 }
2290 2082
2291 2083
2292 2084 echo $ac_n "checking whether we are using SunPro C""... $ac_c" 1>&6
2293 cat > conftest.$ac_ext <<EOF 2085 echo "configure:2086: checking whether we are using SunPro C" >&5
2294 #line 2295 "configure" 2086 cat > conftest.$ac_ext <<EOF
2295 #include "confdefs.h" 2087 #line 2088 "configure"
2296 int main () { 2088 #include "confdefs.h"
2297 #if defined __SUNPRO_C 2089
2298 return 11; 2090 int main() {
2299 #elif defined __DECC 2091 #ifndef __SUNPRO_C
2300 return 12; 2092 #error Not a SunPro compiler :-(
2301 #else 2093 ******* ======= ******** &&&&&&&&
2302 return 0;
2303 #endif 2094 #endif
2304 } 2095
2305 EOF 2096 ; return 0; }
2306 if { (eval echo configure:2307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 2097 EOF
2307 then 2098 if { (eval echo configure:2099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2308 : 2099 rm -rf conftest*
2309 else 2100 __sunpro_c=yes
2310 conftest_rc="$?" 2101 else
2311 echo "configure: failed program was:" >&5 2102 echo "configure: failed program was:" >&5
2312 cat conftest.$ac_ext >&5 2103 cat conftest.$ac_ext >&5
2313 rm -fr conftest* 2104 rm -rf conftest*
2314 case "$conftest_rc" in 2105 __sunpro_c=no
2315 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;; 2106 fi
2316 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;; 2107 rm -f conftest*
2317 esac 2108 echo "$ac_t""$__sunpro_c" 1>&6
2318 fi
2319 rm -fr conftest*
2320
2321 2109
2322 2110
2323 2111
2324 echo "Extracting information from the machine- and system-dependent headers..." 2112 echo "Extracting information from the machine- and system-dependent headers..."
2325 2113
2487 test "$extra_verbose" = "yes" && \ 2275 test "$extra_verbose" = "yes" && \
2488 for var in libs_machine libs_system libs_termcap libs_standard objects_machine objects_system c_switch_machine c_switch_system ld_switch_machine ld_switch_system unexec ld_switch_shared ld lib_gcc ld_text_start_addr start_files ordinary_link have_terminfo mail_use_flock mail_use_lockf; do eval "echo \"$var = '\$$var'\""; done && echo "" 2276 for var in libs_machine libs_system libs_termcap libs_standard objects_machine objects_system c_switch_machine c_switch_system ld_switch_machine ld_switch_system unexec ld_switch_shared ld lib_gcc ld_text_start_addr start_files ordinary_link have_terminfo mail_use_flock mail_use_lockf; do eval "echo \"$var = '\$$var'\""; done && echo ""
2489 2277
2490 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc" 2278 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2491 2279
2492 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi
2493
2494 if test "$cflags_specified" = "no"; then 2280 if test "$cflags_specified" = "no"; then
2495 if test "$GCC" = "yes"; then 2281 if test "$GCC" = "yes"; then
2496 CFLAGS="-g -O3 -Wall -Wno-switch" 2282 CFLAGS="-g -O3 -Wall -Wno-switch"
2497 test "$opsys $machine" = "cygwin32 intel386" && \ 2283 test "$opsys $machine" = "cygwin32 intel386" && \
2498 CFLAGS="-g -O2 -Wall -Wno-switch" 2284 CFLAGS="-g -O2 -Wall -Wno-switch"
2499 elif test "$__SUNPRO_C" = "yes"; then 2285 elif test "$__sunpro_c" = "yes"; then
2500 case "$opsys" in 2286 case "$opsys" in
2501 sol2 ) CFLAGS="-v -xO4" ;; 2287 sol2 ) CFLAGS="-v -xO4" ;;
2502 sunos4* ) CFLAGS="-xO2";; 2288 sunos4* ) CFLAGS="-xO2";;
2503 esac 2289 esac
2504 elif test "$__DECC" = "yes"; then
2505 CFLAGS="-O3"
2506 elif test "$CC" = "xlc"; then 2290 elif test "$CC" = "xlc"; then
2507 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000" 2291 CFLAGS="-O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2508 else 2292 else
2509 CFLAGS="-O" ; fi 2293 CFLAGS="-O" ; fi
2510 fi 2294 fi
2511 2295
2512 2296
2513 if test "$GCC" = "yes"; then 2297 if test "$GCC" = "yes"; then
2514 set x $ld_switch_system; shift; ld_switch_system="" 2298 set x $ld_switch_system; shift; ld_switch_system=""
2571 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then 2355 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2572 echo " xemacs will be linked with \"$unexec\"" 2356 echo " xemacs will be linked with \"$unexec\""
2573 fi 2357 fi
2574 2358
2575 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 2359 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2576 echo "configure:2577: checking for dynodump" >&5 2360 echo "configure:2361: checking for dynodump" >&5
2577 if test "$unexec" != "unexsol2.o"; then 2361 if test "$unexec" != "unexsol2.o"; then
2578 echo "$ac_t""no" 1>&6 2362 echo "$ac_t""no" 1>&6
2579 else 2363 else
2580 echo "$ac_t""yes" 1>&6 2364 echo "$ac_t""yes" 1>&6
2581 { test "$extra_verbose" = "yes" && cat << \EOF 2365 { test "$extra_verbose" = "yes" && cat << \EOF
2609 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do 2393 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2610 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi 2394 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2611 done 2395 done
2612 2396
2613 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6 2397 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2614 echo "configure:2615: checking for terminateAndUnload in -lC" >&5 2398 echo "configure:2399: checking for terminateAndUnload in -lC" >&5
2615 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'` 2399 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2616 2400
2617 xe_check_libs=" -lC " 2401 xe_check_libs=" -lC "
2618 cat > conftest.$ac_ext <<EOF 2402 cat > conftest.$ac_ext <<EOF
2619 #line 2620 "configure" 2403 #line 2404 "configure"
2620 #include "confdefs.h" 2404 #include "confdefs.h"
2621 /* Override any gcc2 internal prototype to avoid an error. */ 2405 /* Override any gcc2 internal prototype to avoid an error. */
2622 /* We use char because int might match the return type of a gcc2 2406 /* We use char because int might match the return type of a gcc2
2623 builtin and then its argument prototype would still apply. */ 2407 builtin and then its argument prototype would still apply. */
2624 char terminateAndUnload(); 2408 char terminateAndUnload();
2625 2409
2626 int main() { 2410 int main() {
2627 terminateAndUnload() 2411 terminateAndUnload()
2628 ; return 0; } 2412 ; return 0; }
2629 EOF 2413 EOF
2630 if { (eval echo configure:2631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2414 if { (eval echo configure:2415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2631 rm -rf conftest* 2415 rm -rf conftest*
2632 eval "ac_cv_lib_$ac_lib_var=yes" 2416 eval "ac_cv_lib_$ac_lib_var=yes"
2633 else 2417 else
2634 echo "configure: failed program was:" >&5 2418 echo "configure: failed program was:" >&5
2635 cat conftest.$ac_ext >&5 2419 cat conftest.$ac_ext >&5
2702 2486
2703 2487
2704 if test "$dynamic" = "no"; then add_runtime_path=no 2488 if test "$dynamic" = "no"; then add_runtime_path=no
2705 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes 2489 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
2706 else case "$opsys" in 2490 else case "$opsys" in
2707 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;; 2491 sol2 | irix* | *bsd* ) add_runtime_path=yes ;;
2708 * ) add_runtime_path=no ;; 2492 * ) add_runtime_path=no ;;
2709 esac 2493 esac
2710 fi 2494 fi
2711 2495
2712 if test "$add_runtime_path" = "yes"; then 2496 if test "$add_runtime_path" = "yes"; then
2713 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 2497 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2714 echo "configure:2715: checking "for runtime libraries flag"" >&5 2498 echo "configure:2499: checking "for runtime libraries flag"" >&5
2715 case "$opsys" in 2499 dash_r=""
2716 sol2 ) dash_r="-R" ;; 2500 for try_dash_r in "-R" "-R " "-rpath "; do
2717 decosf* | linux* | irix*) dash_r="-rpath " ;; 2501 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2718 *) 2502
2719 dash_r=""
2720 for try_dash_r in "-R" "-R " "-rpath "; do
2721 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2722
2723 if test "$GCC" = "yes"; then 2503 if test "$GCC" = "yes"; then
2724 set x $xe_check_libs; shift; xe_check_libs="" 2504 set x $xe_check_libs; shift; xe_check_libs=""
2725 while test -n "$1"; do 2505 while test -n "$1"; do
2726 case $1 in 2506 case $1 in
2727 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;; 2507 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
2730 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;; 2510 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
2731 esac 2511 esac
2732 shift 2512 shift
2733 done 2513 done
2734 fi 2514 fi
2735 cat > conftest.$ac_ext <<EOF 2515 cat > conftest.$ac_ext <<EOF
2736 #line 2737 "configure" 2516 #line 2517 "configure"
2737 #include "confdefs.h" 2517 #include "confdefs.h"
2738 2518
2739 int main() { 2519 int main() {
2740 2520
2741 ; return 0; } 2521 ; return 0; }
2742 EOF 2522 EOF
2743 if { (eval echo configure:2744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2523 if { (eval echo configure:2524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2744 rm -rf conftest* 2524 rm -rf conftest*
2745 dash_r="$try_dash_r" 2525 dash_r="$try_dash_r"
2746 else 2526 else
2747 echo "configure: failed program was:" >&5 2527 echo "configure: failed program was:" >&5
2748 cat conftest.$ac_ext >&5 2528 cat conftest.$ac_ext >&5
2749 fi 2529 fi
2750 rm -f conftest* 2530 rm -f conftest*
2751 xe_check_libs="" 2531 xe_check_libs=""
2752 test -n "$dash_r" && break 2532 test -n "$dash_r" && break
2753 done ;; 2533 done
2754 esac
2755 if test -n "$dash_r"; 2534 if test -n "$dash_r";
2756 then echo "$ac_t"""\"${dash_r}\""" 1>&6 2535 then echo "$ac_t"""\"${dash_r}\""" 1>&6
2757 else echo "$ac_t""NONE" 1>&6 2536 else echo "$ac_t""NONE" 1>&6
2758 fi 2537 fi
2759 fi 2538 fi
2787 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do 2566 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
2788 { 2567 {
2789 xe_runpath_dir="$dir" 2568 xe_runpath_dir="$dir"
2790 test "$xe_runpath_dir" != "/lib" -a \ 2569 test "$xe_runpath_dir" != "/lib" -a \
2791 "$xe_runpath_dir" != "/usr/lib" -a \ 2570 "$xe_runpath_dir" != "/usr/lib" -a \
2792 -n "`ls ${xe_runpath_dir}/*.s[ol] ${xe_runpath_dir}/*.so.* 2>/dev/null`" && \ 2571 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2793 eval "$xe_add_unique_runpath_dir" 2572 eval "$xe_add_unique_runpath_dir"
2794 } 2573 }
2795 done ;; 2574 done ;;
2796 esac 2575 esac
2797 done 2576 done
2801 for arg in $ld_switch_site $ld_switch_x_site; do 2580 for arg in $ld_switch_site $ld_switch_x_site; do
2802 case "$arg" in -L*) { 2581 case "$arg" in -L*) {
2803 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'` 2582 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
2804 test "$xe_runpath_dir" != "/lib" -a \ 2583 test "$xe_runpath_dir" != "/lib" -a \
2805 "$xe_runpath_dir" != "/usr/lib" -a \ 2584 "$xe_runpath_dir" != "/usr/lib" -a \
2806 -n "`ls ${xe_runpath_dir}/*.s[ol] ${xe_runpath_dir}/*.so.* 2>/dev/null`" && \ 2585 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2807 eval "$xe_add_unique_runpath_dir" 2586 eval "$xe_add_unique_runpath_dir"
2808 };; esac 2587 };; esac
2809 done 2588 done
2810 if test "$opsys $need_motif" = "sol2 yes"; then 2589 if test "$opsys $need_motif" = "sol2 yes"; then
2811 xe_runpath_dir="/opt/SUNWdt/lib"; 2590 xe_runpath_dir="/opt/SUNWdt/lib";
2839 else 2618 else
2840 doug_lea_malloc=no 2619 doug_lea_malloc=no
2841 fi 2620 fi
2842 after_morecore_hook_exists=yes 2621 after_morecore_hook_exists=yes
2843 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 2622 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2844 echo "configure:2845: checking for malloc_get_state" >&5 2623 echo "configure:2624: checking for malloc_get_state" >&5
2845 2624
2846 cat > conftest.$ac_ext <<EOF 2625 cat > conftest.$ac_ext <<EOF
2847 #line 2848 "configure" 2626 #line 2627 "configure"
2848 #include "confdefs.h" 2627 #include "confdefs.h"
2849 /* System header to define __stub macros and hopefully few prototypes, 2628 /* System header to define __stub macros and hopefully few prototypes,
2850 which can conflict with char malloc_get_state(); below. */ 2629 which can conflict with char malloc_get_state(); below. */
2851 #include <assert.h> 2630 #include <assert.h>
2852 /* Override any gcc2 internal prototype to avoid an error. */ 2631 /* Override any gcc2 internal prototype to avoid an error. */
2865 malloc_get_state(); 2644 malloc_get_state();
2866 #endif 2645 #endif
2867 2646
2868 ; return 0; } 2647 ; return 0; }
2869 EOF 2648 EOF
2870 if { (eval echo configure:2871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2649 if { (eval echo configure:2650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2871 rm -rf conftest* 2650 rm -rf conftest*
2872 eval "ac_cv_func_malloc_get_state=yes" 2651 eval "ac_cv_func_malloc_get_state=yes"
2873 else 2652 else
2874 echo "configure: failed program was:" >&5 2653 echo "configure: failed program was:" >&5
2875 cat conftest.$ac_ext >&5 2654 cat conftest.$ac_ext >&5
2885 echo "$ac_t""no" 1>&6 2664 echo "$ac_t""no" 1>&6
2886 doug_lea_malloc=no 2665 doug_lea_malloc=no
2887 fi 2666 fi
2888 2667
2889 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 2668 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2890 echo "configure:2891: checking for malloc_set_state" >&5 2669 echo "configure:2670: checking for malloc_set_state" >&5
2891 2670
2892 cat > conftest.$ac_ext <<EOF 2671 cat > conftest.$ac_ext <<EOF
2893 #line 2894 "configure" 2672 #line 2673 "configure"
2894 #include "confdefs.h" 2673 #include "confdefs.h"
2895 /* System header to define __stub macros and hopefully few prototypes, 2674 /* System header to define __stub macros and hopefully few prototypes,
2896 which can conflict with char malloc_set_state(); below. */ 2675 which can conflict with char malloc_set_state(); below. */
2897 #include <assert.h> 2676 #include <assert.h>
2898 /* Override any gcc2 internal prototype to avoid an error. */ 2677 /* Override any gcc2 internal prototype to avoid an error. */
2911 malloc_set_state(); 2690 malloc_set_state();
2912 #endif 2691 #endif
2913 2692
2914 ; return 0; } 2693 ; return 0; }
2915 EOF 2694 EOF
2916 if { (eval echo configure:2917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2695 if { (eval echo configure:2696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2917 rm -rf conftest* 2696 rm -rf conftest*
2918 eval "ac_cv_func_malloc_set_state=yes" 2697 eval "ac_cv_func_malloc_set_state=yes"
2919 else 2698 else
2920 echo "configure: failed program was:" >&5 2699 echo "configure: failed program was:" >&5
2921 cat conftest.$ac_ext >&5 2700 cat conftest.$ac_ext >&5
2931 echo "$ac_t""no" 1>&6 2710 echo "$ac_t""no" 1>&6
2932 doug_lea_malloc=no 2711 doug_lea_malloc=no
2933 fi 2712 fi
2934 2713
2935 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 2714 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
2936 echo "configure:2937: checking whether __after_morecore_hook exists" >&5 2715 echo "configure:2716: checking whether __after_morecore_hook exists" >&5
2937 cat > conftest.$ac_ext <<EOF 2716 cat > conftest.$ac_ext <<EOF
2938 #line 2939 "configure" 2717 #line 2718 "configure"
2939 #include "confdefs.h" 2718 #include "confdefs.h"
2940 extern void (* __after_morecore_hook)(); 2719 extern void (* __after_morecore_hook)();
2941 int main() { 2720 int main() {
2942 __after_morecore_hook = 0 2721 __after_morecore_hook = 0
2943 ; return 0; } 2722 ; return 0; }
2944 EOF 2723 EOF
2945 if { (eval echo configure:2946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2724 if { (eval echo configure:2725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2946 rm -rf conftest* 2725 rm -rf conftest*
2947 echo "$ac_t""yes" 1>&6 2726 echo "$ac_t""yes" 1>&6
2948 else 2727 else
2949 echo "configure: failed program was:" >&5 2728 echo "configure: failed program was:" >&5
2950 cat conftest.$ac_ext >&5 2729 cat conftest.$ac_ext >&5
2999 2778
3000 2779
3001 # Extract the first word of "ranlib", so it can be a program name with args. 2780 # Extract the first word of "ranlib", so it can be a program name with args.
3002 set dummy ranlib; ac_word=$2 2781 set dummy ranlib; ac_word=$2
3003 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3004 echo "configure:3005: checking for $ac_word" >&5 2783 echo "configure:2784: checking for $ac_word" >&5
3005 2784
3006 if test -n "$RANLIB"; then 2785 if test -n "$RANLIB"; then
3007 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2786 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3008 else 2787 else
3009 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3010 ac_dummy="$PATH" 2789 for ac_dir in $PATH; do
3011 for ac_dir in $ac_dummy; do
3012 test -z "$ac_dir" && ac_dir=. 2790 test -z "$ac_dir" && ac_dir=.
3013 if test -f $ac_dir/$ac_word; then 2791 if test -f $ac_dir/$ac_word; then
3014 ac_cv_prog_RANLIB="ranlib" 2792 ac_cv_prog_RANLIB="ranlib"
3015 break 2793 break
3016 fi 2794 fi
3049 # incompatible versions: 2827 # incompatible versions:
3050 # SysV /etc/install, /usr/sbin/install 2828 # SysV /etc/install, /usr/sbin/install
3051 # SunOS /usr/etc/install 2829 # SunOS /usr/etc/install
3052 # IRIX /sbin/install 2830 # IRIX /sbin/install
3053 # AIX /bin/install 2831 # AIX /bin/install
3054 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3055 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2832 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3056 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2833 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3057 # ./install, which can be erroneously created by make from ./install.sh. 2834 # ./install, which can be erroneously created by make from ./install.sh.
3058 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 2835 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3059 echo "configure:3060: checking for a BSD compatible install" >&5 2836 echo "configure:2837: checking for a BSD compatible install" >&5
3060 if test -z "$INSTALL"; then 2837 if test -z "$INSTALL"; then
3061 2838
3062 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 2839 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
3063 for ac_dir in $PATH; do 2840 for ac_dir in $PATH; do
3064 # Account for people who put trailing slashes in PATH elements. 2841 # Account for people who put trailing slashes in PATH elements.
3065 case "$ac_dir/" in 2842 case "$ac_dir/" in
3066 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 2843 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3067 *) 2844 *)
3068 # OSF1 and SCO ODT 3.0 have their own names for install. 2845 # OSF1 and SCO ODT 3.0 have their own names for install.
3069 # Don't use installbsd from OSF since it installs stuff as root 2846 for ac_prog in ginstall installbsd scoinst install; do
3070 # by default.
3071 for ac_prog in ginstall scoinst install; do
3072 if test -f $ac_dir/$ac_prog; then 2847 if test -f $ac_dir/$ac_prog; then
3073 if test $ac_prog = install && 2848 if test $ac_prog = install &&
3074 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 2849 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3075 # AIX install. It has an incompatible calling convention. 2850 # AIX install. It has an incompatible calling convention.
2851 # OSF/1 installbsd also uses dspmsg, but is usable.
3076 : 2852 :
3077 else 2853 else
3078 ac_cv_path_install="$ac_dir/$ac_prog -c" 2854 ac_cv_path_install="$ac_dir/$ac_prog -c"
3079 break 2 2855 break 2
3080 fi 2856 fi
3099 2875
3100 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2876 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3101 # It thinks the first close brace ends the variable substitution. 2877 # It thinks the first close brace ends the variable substitution.
3102 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2878 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3103 2879
3104 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3105
3106 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2880 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3107 2881
3108 for ac_prog in 'bison -y' byacc 2882 for ac_prog in 'bison -y' byacc
3109 do 2883 do
3110 # Extract the first word of "$ac_prog", so it can be a program name with args. 2884 # Extract the first word of "$ac_prog", so it can be a program name with args.
3111 set dummy $ac_prog; ac_word=$2 2885 set dummy $ac_prog; ac_word=$2
3112 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2886 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3113 echo "configure:3114: checking for $ac_word" >&5 2887 echo "configure:2888: checking for $ac_word" >&5
3114 2888
3115 if test -n "$YACC"; then 2889 if test -n "$YACC"; then
3116 ac_cv_prog_YACC="$YACC" # Let the user override the test. 2890 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3117 else 2891 else
3118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3119 ac_dummy="$PATH" 2893 for ac_dir in $PATH; do
3120 for ac_dir in $ac_dummy; do
3121 test -z "$ac_dir" && ac_dir=. 2894 test -z "$ac_dir" && ac_dir=.
3122 if test -f $ac_dir/$ac_word; then 2895 if test -f $ac_dir/$ac_word; then
3123 ac_cv_prog_YACC="$ac_prog" 2896 ac_cv_prog_YACC="$ac_prog"
3124 break 2897 break
3125 fi 2898 fi
3140 2913
3141 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h 2914 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
3142 do 2915 do
3143 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2916 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3144 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2917 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3145 echo "configure:3146: checking for $ac_hdr" >&5 2918 echo "configure:2919: checking for $ac_hdr" >&5
3146 2919
3147 cat > conftest.$ac_ext <<EOF 2920 cat > conftest.$ac_ext <<EOF
3148 #line 3149 "configure" 2921 #line 2922 "configure"
3149 #include "confdefs.h" 2922 #include "confdefs.h"
3150 #include <$ac_hdr> 2923 #include <$ac_hdr>
3151 EOF 2924 EOF
3152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3153 { (eval echo configure:3154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2926 { (eval echo configure:2927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3154 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2927 ac_err=`grep -v '^ *+' conftest.out`
3155 if test -z "$ac_err"; then 2928 if test -z "$ac_err"; then
3156 rm -rf conftest* 2929 rm -rf conftest*
3157 eval "ac_cv_header_$ac_safe=yes" 2930 eval "ac_cv_header_$ac_safe=yes"
3158 else 2931 else
3159 echo "$ac_err" >&5 2932 echo "$ac_err" >&5
3177 else 2950 else
3178 echo "$ac_t""no" 1>&6 2951 echo "$ac_t""no" 1>&6
3179 fi 2952 fi
3180 done 2953 done
3181 2954
3182 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h 2955 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h
3183 do 2956 do
3184 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2957 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3185 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2958 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3186 echo "configure:3187: checking for $ac_hdr" >&5 2959 echo "configure:2960: checking for $ac_hdr" >&5
3187 2960
3188 cat > conftest.$ac_ext <<EOF 2961 cat > conftest.$ac_ext <<EOF
3189 #line 3190 "configure" 2962 #line 2963 "configure"
3190 #include "confdefs.h" 2963 #include "confdefs.h"
3191 #include <$ac_hdr> 2964 #include <$ac_hdr>
3192 EOF 2965 EOF
3193 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3194 { (eval echo configure:3195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2967 { (eval echo configure:2968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3195 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2968 ac_err=`grep -v '^ *+' conftest.out`
3196 if test -z "$ac_err"; then 2969 if test -z "$ac_err"; then
3197 rm -rf conftest* 2970 rm -rf conftest*
3198 eval "ac_cv_header_$ac_safe=yes" 2971 eval "ac_cv_header_$ac_safe=yes"
3199 else 2972 else
3200 echo "$ac_err" >&5 2973 echo "$ac_err" >&5
3222 2995
3223 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h 2996 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
3224 do 2997 do
3225 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2998 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3226 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2999 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3227 echo "configure:3228: checking for $ac_hdr" >&5 3000 echo "configure:3001: checking for $ac_hdr" >&5
3228 3001
3229 cat > conftest.$ac_ext <<EOF 3002 cat > conftest.$ac_ext <<EOF
3230 #line 3231 "configure" 3003 #line 3004 "configure"
3231 #include "confdefs.h" 3004 #include "confdefs.h"
3232 #include <$ac_hdr> 3005 #include <$ac_hdr>
3233 EOF 3006 EOF
3234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3235 { (eval echo configure:3236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3008 { (eval echo configure:3009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3009 ac_err=`grep -v '^ *+' conftest.out`
3237 if test -z "$ac_err"; then 3010 if test -z "$ac_err"; then
3238 rm -rf conftest* 3011 rm -rf conftest*
3239 eval "ac_cv_header_$ac_safe=yes" 3012 eval "ac_cv_header_$ac_safe=yes"
3240 else 3013 else
3241 echo "$ac_err" >&5 3014 echo "$ac_err" >&5
3260 echo "$ac_t""no" 1>&6 3033 echo "$ac_t""no" 1>&6
3261 fi 3034 fi
3262 done 3035 done
3263 3036
3264 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 3037 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3265 echo "configure:3266: checking for sys/wait.h that is POSIX.1 compatible" >&5 3038 echo "configure:3039: checking for sys/wait.h that is POSIX.1 compatible" >&5
3266 3039
3267 cat > conftest.$ac_ext <<EOF 3040 cat > conftest.$ac_ext <<EOF
3268 #line 3269 "configure" 3041 #line 3042 "configure"
3269 #include "confdefs.h" 3042 #include "confdefs.h"
3270 #include <sys/types.h> 3043 #include <sys/types.h>
3271 #include <sys/wait.h> 3044 #include <sys/wait.h>
3272 #ifndef WEXITSTATUS 3045 #ifndef WEXITSTATUS
3273 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 3046 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3279 int s; 3052 int s;
3280 wait (&s); 3053 wait (&s);
3281 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 3054 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3282 ; return 0; } 3055 ; return 0; }
3283 EOF 3056 EOF
3284 if { (eval echo configure:3285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3057 if { (eval echo configure:3058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3285 rm -rf conftest* 3058 rm -rf conftest*
3286 ac_cv_header_sys_wait_h=yes 3059 ac_cv_header_sys_wait_h=yes
3287 else 3060 else
3288 echo "configure: failed program was:" >&5 3061 echo "configure: failed program was:" >&5
3289 cat conftest.$ac_ext >&5 3062 cat conftest.$ac_ext >&5
3303 } 3076 }
3304 3077
3305 fi 3078 fi
3306 3079
3307 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 3080 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3308 echo "configure:3309: checking for ANSI C header files" >&5 3081 echo "configure:3082: checking for ANSI C header files" >&5
3309 3082
3310 cat > conftest.$ac_ext <<EOF 3083 cat > conftest.$ac_ext <<EOF
3311 #line 3312 "configure" 3084 #line 3085 "configure"
3312 #include "confdefs.h" 3085 #include "confdefs.h"
3313 #include <stdlib.h> 3086 #include <stdlib.h>
3314 #include <stdarg.h> 3087 #include <stdarg.h>
3315 #include <string.h> 3088 #include <string.h>
3316 #include <float.h> 3089 #include <float.h>
3317 EOF 3090 EOF
3318 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3319 { (eval echo configure:3320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3092 { (eval echo configure:3093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3320 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3093 ac_err=`grep -v '^ *+' conftest.out`
3321 if test -z "$ac_err"; then 3094 if test -z "$ac_err"; then
3322 rm -rf conftest* 3095 rm -rf conftest*
3323 ac_cv_header_stdc=yes 3096 ac_cv_header_stdc=yes
3324 else 3097 else
3325 echo "$ac_err" >&5 3098 echo "$ac_err" >&5
3331 rm -f conftest* 3104 rm -f conftest*
3332 3105
3333 if test $ac_cv_header_stdc = yes; then 3106 if test $ac_cv_header_stdc = yes; then
3334 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3107 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3335 cat > conftest.$ac_ext <<EOF 3108 cat > conftest.$ac_ext <<EOF
3336 #line 3337 "configure" 3109 #line 3110 "configure"
3337 #include "confdefs.h" 3110 #include "confdefs.h"
3338 #include <string.h> 3111 #include <string.h>
3339 EOF 3112 EOF
3340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3341 egrep "memchr" >/dev/null 2>&1; then 3114 egrep "memchr" >/dev/null 2>&1; then
3349 fi 3122 fi
3350 3123
3351 if test $ac_cv_header_stdc = yes; then 3124 if test $ac_cv_header_stdc = yes; then
3352 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3125 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3353 cat > conftest.$ac_ext <<EOF 3126 cat > conftest.$ac_ext <<EOF
3354 #line 3355 "configure" 3127 #line 3128 "configure"
3355 #include "confdefs.h" 3128 #include "confdefs.h"
3356 #include <stdlib.h> 3129 #include <stdlib.h>
3357 EOF 3130 EOF
3358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3359 egrep "free" >/dev/null 2>&1; then 3132 egrep "free" >/dev/null 2>&1; then
3367 fi 3140 fi
3368 3141
3369 if test $ac_cv_header_stdc = yes; then 3142 if test $ac_cv_header_stdc = yes; then
3370 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3371 cat > conftest.$ac_ext <<EOF 3144 cat > conftest.$ac_ext <<EOF
3372 #line 3373 "configure" 3145 #line 3146 "configure"
3373 #include "confdefs.h" 3146 #include "confdefs.h"
3374 #include <ctype.h> 3147 #include <ctype.h>
3375 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3148 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3376 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3149 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3377 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3150 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3378 int main () { int i; for (i = 0; i < 256; i++) 3151 int main () { int i; for (i = 0; i < 256; i++)
3379 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 3152 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3380 exit (0); } 3153 exit (0); }
3381 3154
3382 EOF 3155 EOF
3383 if { (eval echo configure:3384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3156 if { (eval echo configure:3157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3384 then 3157 then
3385 : 3158 :
3386 else 3159 else
3387 conftest_rc="$?"
3388 echo "configure: failed program was:" >&5 3160 echo "configure: failed program was:" >&5
3389 cat conftest.$ac_ext >&5 3161 cat conftest.$ac_ext >&5
3390 rm -fr conftest* 3162 rm -fr conftest*
3391 ac_cv_header_stdc=no 3163 ac_cv_header_stdc=no
3392 fi 3164 fi
3404 } 3176 }
3405 3177
3406 fi 3178 fi
3407 3179
3408 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 3180 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3409 echo "configure:3410: checking whether time.h and sys/time.h may both be included" >&5 3181 echo "configure:3182: checking whether time.h and sys/time.h may both be included" >&5
3410 3182
3411 cat > conftest.$ac_ext <<EOF 3183 cat > conftest.$ac_ext <<EOF
3412 #line 3413 "configure" 3184 #line 3185 "configure"
3413 #include "confdefs.h" 3185 #include "confdefs.h"
3414 #include <sys/types.h> 3186 #include <sys/types.h>
3415 #include <sys/time.h> 3187 #include <sys/time.h>
3416 #include <time.h> 3188 #include <time.h>
3417 int main() { 3189 int main() {
3418 struct tm *tp; 3190 struct tm *tp;
3419 ; return 0; } 3191 ; return 0; }
3420 EOF 3192 EOF
3421 if { (eval echo configure:3422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3193 if { (eval echo configure:3194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3422 rm -rf conftest* 3194 rm -rf conftest*
3423 ac_cv_header_time=yes 3195 ac_cv_header_time=yes
3424 else 3196 else
3425 echo "configure: failed program was:" >&5 3197 echo "configure: failed program was:" >&5
3426 cat conftest.$ac_ext >&5 3198 cat conftest.$ac_ext >&5
3440 } 3212 }
3441 3213
3442 fi 3214 fi
3443 3215
3444 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 3216 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3445 echo "configure:3446: checking for sys_siglist declaration in signal.h or unistd.h" >&5 3217 echo "configure:3218: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3446 3218
3447 cat > conftest.$ac_ext <<EOF 3219 cat > conftest.$ac_ext <<EOF
3448 #line 3449 "configure" 3220 #line 3221 "configure"
3449 #include "confdefs.h" 3221 #include "confdefs.h"
3450 #include <sys/types.h> 3222 #include <sys/types.h>
3451 #include <signal.h> 3223 #include <signal.h>
3452 /* NetBSD declares sys_siglist in unistd.h. */ 3224 /* NetBSD declares sys_siglist in unistd.h. */
3453 #ifdef HAVE_UNISTD_H 3225 #ifdef HAVE_UNISTD_H
3455 #endif 3227 #endif
3456 int main() { 3228 int main() {
3457 char *msg = *(sys_siglist + 1); 3229 char *msg = *(sys_siglist + 1);
3458 ; return 0; } 3230 ; return 0; }
3459 EOF 3231 EOF
3460 if { (eval echo configure:3461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3232 if { (eval echo configure:3233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3461 rm -rf conftest* 3233 rm -rf conftest*
3462 ac_cv_decl_sys_siglist=yes 3234 ac_cv_decl_sys_siglist=yes
3463 else 3235 else
3464 echo "configure: failed program was:" >&5 3236 echo "configure: failed program was:" >&5
3465 cat conftest.$ac_ext >&5 3237 cat conftest.$ac_ext >&5
3480 3252
3481 fi 3253 fi
3482 3254
3483 3255
3484 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 3256 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3485 echo "configure:3486: checking for struct utimbuf" >&5 3257 echo "configure:3258: checking for struct utimbuf" >&5
3486 cat > conftest.$ac_ext <<EOF 3258 cat > conftest.$ac_ext <<EOF
3487 #line 3488 "configure" 3259 #line 3260 "configure"
3488 #include "confdefs.h" 3260 #include "confdefs.h"
3489 #ifdef TIME_WITH_SYS_TIME 3261 #ifdef TIME_WITH_SYS_TIME
3490 #include <sys/time.h> 3262 #include <sys/time.h>
3491 #include <time.h> 3263 #include <time.h>
3492 #else 3264 #else
3501 #endif 3273 #endif
3502 int main() { 3274 int main() {
3503 static struct utimbuf x; x.actime = x.modtime; 3275 static struct utimbuf x; x.actime = x.modtime;
3504 ; return 0; } 3276 ; return 0; }
3505 EOF 3277 EOF
3506 if { (eval echo configure:3507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3278 if { (eval echo configure:3279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3507 rm -rf conftest* 3279 rm -rf conftest*
3508 echo "$ac_t""yes" 1>&6 3280 echo "$ac_t""yes" 1>&6
3509 { test "$extra_verbose" = "yes" && cat << \EOF 3281 { test "$extra_verbose" = "yes" && cat << \EOF
3510 Defining HAVE_STRUCT_UTIMBUF 3282 Defining HAVE_STRUCT_UTIMBUF
3511 EOF 3283 EOF
3521 echo "$ac_t""no" 1>&6 3293 echo "$ac_t""no" 1>&6
3522 fi 3294 fi
3523 rm -f conftest* 3295 rm -f conftest*
3524 3296
3525 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3297 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3526 echo "configure:3527: checking return type of signal handlers" >&5 3298 echo "configure:3299: checking return type of signal handlers" >&5
3527 3299
3528 cat > conftest.$ac_ext <<EOF 3300 cat > conftest.$ac_ext <<EOF
3529 #line 3530 "configure" 3301 #line 3302 "configure"
3530 #include "confdefs.h" 3302 #include "confdefs.h"
3531 #include <sys/types.h> 3303 #include <sys/types.h>
3532 #include <signal.h> 3304 #include <signal.h>
3533 #ifdef signal 3305 #ifdef signal
3534 #undef signal 3306 #undef signal
3541 3313
3542 int main() { 3314 int main() {
3543 int i; 3315 int i;
3544 ; return 0; } 3316 ; return 0; }
3545 EOF 3317 EOF
3546 if { (eval echo configure:3547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3318 if { (eval echo configure:3319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3547 rm -rf conftest* 3319 rm -rf conftest*
3548 ac_cv_type_signal=void 3320 ac_cv_type_signal=void
3549 else 3321 else
3550 echo "configure: failed program was:" >&5 3322 echo "configure: failed program was:" >&5
3551 cat conftest.$ac_ext >&5 3323 cat conftest.$ac_ext >&5
3563 EOF 3335 EOF
3564 } 3336 }
3565 3337
3566 3338
3567 echo $ac_n "checking for size_t""... $ac_c" 1>&6 3339 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3568 echo "configure:3569: checking for size_t" >&5 3340 echo "configure:3341: checking for size_t" >&5
3569 3341
3570 cat > conftest.$ac_ext <<EOF 3342 cat > conftest.$ac_ext <<EOF
3571 #line 3572 "configure" 3343 #line 3344 "configure"
3572 #include "confdefs.h" 3344 #include "confdefs.h"
3573 #include <sys/types.h> 3345 #include <sys/types.h>
3574 #if STDC_HEADERS 3346 #if STDC_HEADERS
3575 #include <stdlib.h> 3347 #include <stdlib.h>
3576 #include <stddef.h> 3348 #include <stddef.h>
3577 #endif 3349 #endif
3578 EOF 3350 EOF
3579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3580 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 3352 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3581 rm -rf conftest* 3353 rm -rf conftest*
3582 ac_cv_type_size_t=yes 3354 ac_cv_type_size_t=yes
3583 else 3355 else
3584 rm -rf conftest* 3356 rm -rf conftest*
3585 ac_cv_type_size_t=no 3357 ac_cv_type_size_t=no
3597 } 3369 }
3598 3370
3599 fi 3371 fi
3600 3372
3601 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 3373 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3602 echo "configure:3603: checking for pid_t" >&5 3374 echo "configure:3375: checking for pid_t" >&5
3603 3375
3604 cat > conftest.$ac_ext <<EOF 3376 cat > conftest.$ac_ext <<EOF
3605 #line 3606 "configure" 3377 #line 3378 "configure"
3606 #include "confdefs.h" 3378 #include "confdefs.h"
3607 #include <sys/types.h> 3379 #include <sys/types.h>
3608 #if STDC_HEADERS 3380 #if STDC_HEADERS
3609 #include <stdlib.h> 3381 #include <stdlib.h>
3610 #include <stddef.h> 3382 #include <stddef.h>
3611 #endif 3383 #endif
3612 EOF 3384 EOF
3613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3614 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 3386 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3615 rm -rf conftest* 3387 rm -rf conftest*
3616 ac_cv_type_pid_t=yes 3388 ac_cv_type_pid_t=yes
3617 else 3389 else
3618 rm -rf conftest* 3390 rm -rf conftest*
3619 ac_cv_type_pid_t=no 3391 ac_cv_type_pid_t=no
3631 } 3403 }
3632 3404
3633 fi 3405 fi
3634 3406
3635 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 3407 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3636 echo "configure:3637: checking for uid_t in sys/types.h" >&5 3408 echo "configure:3409: checking for uid_t in sys/types.h" >&5
3637 3409
3638 cat > conftest.$ac_ext <<EOF 3410 cat > conftest.$ac_ext <<EOF
3639 #line 3640 "configure" 3411 #line 3412 "configure"
3640 #include "confdefs.h" 3412 #include "confdefs.h"
3641 #include <sys/types.h> 3413 #include <sys/types.h>
3642 EOF 3414 EOF
3643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3644 egrep "uid_t" >/dev/null 2>&1; then 3416 egrep "uid_t" >/dev/null 2>&1; then
3670 } 3442 }
3671 3443
3672 fi 3444 fi
3673 3445
3674 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 3446 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3675 echo "configure:3676: checking for mode_t" >&5 3447 echo "configure:3448: checking for mode_t" >&5
3676 3448
3677 cat > conftest.$ac_ext <<EOF 3449 cat > conftest.$ac_ext <<EOF
3678 #line 3679 "configure" 3450 #line 3451 "configure"
3679 #include "confdefs.h" 3451 #include "confdefs.h"
3680 #include <sys/types.h> 3452 #include <sys/types.h>
3681 #if STDC_HEADERS 3453 #if STDC_HEADERS
3682 #include <stdlib.h> 3454 #include <stdlib.h>
3683 #include <stddef.h> 3455 #include <stddef.h>
3684 #endif 3456 #endif
3685 EOF 3457 EOF
3686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3687 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 3459 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3688 rm -rf conftest* 3460 rm -rf conftest*
3689 ac_cv_type_mode_t=yes 3461 ac_cv_type_mode_t=yes
3690 else 3462 else
3691 rm -rf conftest* 3463 rm -rf conftest*
3692 ac_cv_type_mode_t=no 3464 ac_cv_type_mode_t=no
3704 } 3476 }
3705 3477
3706 fi 3478 fi
3707 3479
3708 echo $ac_n "checking for off_t""... $ac_c" 1>&6 3480 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3709 echo "configure:3710: checking for off_t" >&5 3481 echo "configure:3482: checking for off_t" >&5
3710 3482
3711 cat > conftest.$ac_ext <<EOF 3483 cat > conftest.$ac_ext <<EOF
3712 #line 3713 "configure" 3484 #line 3485 "configure"
3713 #include "confdefs.h" 3485 #include "confdefs.h"
3714 #include <sys/types.h> 3486 #include <sys/types.h>
3715 #if STDC_HEADERS 3487 #if STDC_HEADERS
3716 #include <stdlib.h> 3488 #include <stdlib.h>
3717 #include <stddef.h> 3489 #include <stddef.h>
3718 #endif 3490 #endif
3719 EOF 3491 EOF
3720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3721 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 3493 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3722 rm -rf conftest* 3494 rm -rf conftest*
3723 ac_cv_type_off_t=yes 3495 ac_cv_type_off_t=yes
3724 else 3496 else
3725 rm -rf conftest* 3497 rm -rf conftest*
3726 ac_cv_type_off_t=no 3498 ac_cv_type_off_t=no
3739 3511
3740 fi 3512 fi
3741 3513
3742 3514
3743 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 3515 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3744 echo "configure:3745: checking for struct timeval" >&5 3516 echo "configure:3517: checking for struct timeval" >&5
3745 cat > conftest.$ac_ext <<EOF 3517 cat > conftest.$ac_ext <<EOF
3746 #line 3747 "configure" 3518 #line 3519 "configure"
3747 #include "confdefs.h" 3519 #include "confdefs.h"
3748 #ifdef TIME_WITH_SYS_TIME 3520 #ifdef TIME_WITH_SYS_TIME
3749 #include <sys/time.h> 3521 #include <sys/time.h>
3750 #include <time.h> 3522 #include <time.h>
3751 #else 3523 #else
3757 #endif 3529 #endif
3758 int main() { 3530 int main() {
3759 static struct timeval x; x.tv_sec = x.tv_usec; 3531 static struct timeval x; x.tv_sec = x.tv_usec;
3760 ; return 0; } 3532 ; return 0; }
3761 EOF 3533 EOF
3762 if { (eval echo configure:3763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3534 if { (eval echo configure:3535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3763 rm -rf conftest* 3535 rm -rf conftest*
3764 echo "$ac_t""yes" 1>&6 3536 echo "$ac_t""yes" 1>&6
3765 HAVE_TIMEVAL=yes 3537 HAVE_TIMEVAL=yes
3766 { test "$extra_verbose" = "yes" && cat << \EOF 3538 { test "$extra_verbose" = "yes" && cat << \EOF
3767 Defining HAVE_TIMEVAL 3539 Defining HAVE_TIMEVAL
3779 HAVE_TIMEVAL=no 3551 HAVE_TIMEVAL=no
3780 fi 3552 fi
3781 rm -f conftest* 3553 rm -f conftest*
3782 3554
3783 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 3555 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3784 echo "configure:3785: checking whether struct tm is in sys/time.h or time.h" >&5 3556 echo "configure:3557: checking whether struct tm is in sys/time.h or time.h" >&5
3785 3557
3786 cat > conftest.$ac_ext <<EOF 3558 cat > conftest.$ac_ext <<EOF
3787 #line 3788 "configure" 3559 #line 3560 "configure"
3788 #include "confdefs.h" 3560 #include "confdefs.h"
3789 #include <sys/types.h> 3561 #include <sys/types.h>
3790 #include <time.h> 3562 #include <time.h>
3791 int main() { 3563 int main() {
3792 struct tm *tp; tp->tm_sec; 3564 struct tm *tp; tp->tm_sec;
3793 ; return 0; } 3565 ; return 0; }
3794 EOF 3566 EOF
3795 if { (eval echo configure:3796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3567 if { (eval echo configure:3568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3796 rm -rf conftest* 3568 rm -rf conftest*
3797 ac_cv_struct_tm=time.h 3569 ac_cv_struct_tm=time.h
3798 else 3570 else
3799 echo "configure: failed program was:" >&5 3571 echo "configure: failed program was:" >&5
3800 cat conftest.$ac_ext >&5 3572 cat conftest.$ac_ext >&5
3814 } 3586 }
3815 3587
3816 fi 3588 fi
3817 3589
3818 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 3590 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3819 echo "configure:3820: checking for tm_zone in struct tm" >&5 3591 echo "configure:3592: checking for tm_zone in struct tm" >&5
3820 3592
3821 cat > conftest.$ac_ext <<EOF 3593 cat > conftest.$ac_ext <<EOF
3822 #line 3823 "configure" 3594 #line 3595 "configure"
3823 #include "confdefs.h" 3595 #include "confdefs.h"
3824 #include <sys/types.h> 3596 #include <sys/types.h>
3825 #include <$ac_cv_struct_tm> 3597 #include <$ac_cv_struct_tm>
3826 int main() { 3598 int main() {
3827 struct tm tm; tm.tm_zone; 3599 struct tm tm; tm.tm_zone;
3828 ; return 0; } 3600 ; return 0; }
3829 EOF 3601 EOF
3830 if { (eval echo configure:3831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3602 if { (eval echo configure:3603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3831 rm -rf conftest* 3603 rm -rf conftest*
3832 ac_cv_struct_tm_zone=yes 3604 ac_cv_struct_tm_zone=yes
3833 else 3605 else
3834 echo "configure: failed program was:" >&5 3606 echo "configure: failed program was:" >&5
3835 cat conftest.$ac_ext >&5 3607 cat conftest.$ac_ext >&5
3848 EOF 3620 EOF
3849 } 3621 }
3850 3622
3851 else 3623 else
3852 echo $ac_n "checking for tzname""... $ac_c" 1>&6 3624 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3853 echo "configure:3854: checking for tzname" >&5 3625 echo "configure:3626: checking for tzname" >&5
3854 3626
3855 cat > conftest.$ac_ext <<EOF 3627 cat > conftest.$ac_ext <<EOF
3856 #line 3857 "configure" 3628 #line 3629 "configure"
3857 #include "confdefs.h" 3629 #include "confdefs.h"
3858 #include <time.h> 3630 #include <time.h>
3859 #ifndef tzname /* For SGI. */ 3631 #ifndef tzname /* For SGI. */
3860 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 3632 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3861 #endif 3633 #endif
3862 int main() { 3634 int main() {
3863 atoi(*tzname); 3635 atoi(*tzname);
3864 ; return 0; } 3636 ; return 0; }
3865 EOF 3637 EOF
3866 if { (eval echo configure:3867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3638 if { (eval echo configure:3639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3867 rm -rf conftest* 3639 rm -rf conftest*
3868 ac_cv_var_tzname=yes 3640 ac_cv_var_tzname=yes
3869 else 3641 else
3870 echo "configure: failed program was:" >&5 3642 echo "configure: failed program was:" >&5
3871 cat conftest.$ac_ext >&5 3643 cat conftest.$ac_ext >&5
3887 fi 3659 fi
3888 fi 3660 fi
3889 3661
3890 3662
3891 echo $ac_n "checking for working const""... $ac_c" 1>&6 3663 echo $ac_n "checking for working const""... $ac_c" 1>&6
3892 echo "configure:3893: checking for working const" >&5 3664 echo "configure:3665: checking for working const" >&5
3893 3665
3894 cat > conftest.$ac_ext <<EOF 3666 cat > conftest.$ac_ext <<EOF
3895 #line 3896 "configure" 3667 #line 3668 "configure"
3896 #include "confdefs.h" 3668 #include "confdefs.h"
3897 3669
3898 int main() { 3670 int main() {
3899 3671
3900 /* Ultrix mips cc rejects this. */ 3672 /* Ultrix mips cc rejects this. */
3939 const int foo = 10; 3711 const int foo = 10;
3940 } 3712 }
3941 3713
3942 ; return 0; } 3714 ; return 0; }
3943 EOF 3715 EOF
3944 if { (eval echo configure:3945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3716 if { (eval echo configure:3717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3945 rm -rf conftest* 3717 rm -rf conftest*
3946 ac_cv_c_const=yes 3718 ac_cv_c_const=yes
3947 else 3719 else
3948 echo "configure: failed program was:" >&5 3720 echo "configure: failed program was:" >&5
3949 cat conftest.$ac_ext >&5 3721 cat conftest.$ac_ext >&5
3964 3736
3965 fi 3737 fi
3966 3738
3967 3739
3968 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 3740 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3969 echo "configure:3970: checking whether ${MAKE-make} sets \${MAKE}" >&5 3741 echo "configure:3742: checking whether ${MAKE-make} sets \${MAKE}" >&5
3970 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 3742 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3971 3743
3972 cat > conftestmake <<\EOF 3744 cat > conftestmake <<\EOF
3973 all: 3745 all:
3974 @echo 'ac_maketemp="${MAKE}"' 3746 @echo 'ac_maketemp="${MAKE}"'
3989 SET_MAKE="MAKE=${MAKE-make}" 3761 SET_MAKE="MAKE=${MAKE-make}"
3990 fi 3762 fi
3991 3763
3992 3764
3993 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 3765 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3994 echo "configure:3995: checking whether byte ordering is bigendian" >&5 3766 echo "configure:3767: checking whether byte ordering is bigendian" >&5
3995 3767
3996 ac_cv_c_bigendian=unknown 3768 ac_cv_c_bigendian=unknown
3997 # See if sys/param.h defines the BYTE_ORDER macro. 3769 # See if sys/param.h defines the BYTE_ORDER macro.
3998 cat > conftest.$ac_ext <<EOF 3770 cat > conftest.$ac_ext <<EOF
3999 #line 4000 "configure" 3771 #line 3772 "configure"
4000 #include "confdefs.h" 3772 #include "confdefs.h"
4001 #include <sys/types.h> 3773 #include <sys/types.h>
4002 #include <sys/param.h> 3774 #include <sys/param.h>
4003 int main() { 3775 int main() {
4004 3776
4005 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 3777 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4006 bogus endian macros 3778 bogus endian macros
4007 #endif 3779 #endif
4008 ; return 0; } 3780 ; return 0; }
4009 EOF 3781 EOF
4010 if { (eval echo configure:4011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3782 if { (eval echo configure:3783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4011 rm -rf conftest* 3783 rm -rf conftest*
4012 # It does; now see whether it defined to BIG_ENDIAN or not. 3784 # It does; now see whether it defined to BIG_ENDIAN or not.
4013 cat > conftest.$ac_ext <<EOF 3785 cat > conftest.$ac_ext <<EOF
4014 #line 4015 "configure" 3786 #line 3787 "configure"
4015 #include "confdefs.h" 3787 #include "confdefs.h"
4016 #include <sys/types.h> 3788 #include <sys/types.h>
4017 #include <sys/param.h> 3789 #include <sys/param.h>
4018 int main() { 3790 int main() {
4019 3791
4020 #if BYTE_ORDER != BIG_ENDIAN 3792 #if BYTE_ORDER != BIG_ENDIAN
4021 not big endian 3793 not big endian
4022 #endif 3794 #endif
4023 ; return 0; } 3795 ; return 0; }
4024 EOF 3796 EOF
4025 if { (eval echo configure:4026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3797 if { (eval echo configure:3798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4026 rm -rf conftest* 3798 rm -rf conftest*
4027 ac_cv_c_bigendian=yes 3799 ac_cv_c_bigendian=yes
4028 else 3800 else
4029 echo "configure: failed program was:" >&5 3801 echo "configure: failed program was:" >&5
4030 cat conftest.$ac_ext >&5 3802 cat conftest.$ac_ext >&5
4037 cat conftest.$ac_ext >&5 3809 cat conftest.$ac_ext >&5
4038 fi 3810 fi
4039 rm -f conftest* 3811 rm -f conftest*
4040 if test $ac_cv_c_bigendian = unknown; then 3812 if test $ac_cv_c_bigendian = unknown; then
4041 cat > conftest.$ac_ext <<EOF 3813 cat > conftest.$ac_ext <<EOF
4042 #line 4043 "configure" 3814 #line 3815 "configure"
4043 #include "confdefs.h" 3815 #include "confdefs.h"
4044 main () { 3816 main () {
4045 /* Are we little or big endian? From Harbison&Steele. */ 3817 /* Are we little or big endian? From Harbison&Steele. */
4046 union 3818 union
4047 { 3819 {
4050 } u; 3822 } u;
4051 u.l = 1; 3823 u.l = 1;
4052 exit (u.c[sizeof (long) - 1] == 1); 3824 exit (u.c[sizeof (long) - 1] == 1);
4053 } 3825 }
4054 EOF 3826 EOF
4055 if { (eval echo configure:4056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3827 if { (eval echo configure:3828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
4056 then 3828 then
4057 ac_cv_c_bigendian=no 3829 ac_cv_c_bigendian=no
4058 else 3830 else
4059 conftest_rc="$?"
4060 echo "configure: failed program was:" >&5 3831 echo "configure: failed program was:" >&5
4061 cat conftest.$ac_ext >&5 3832 cat conftest.$ac_ext >&5
4062 rm -fr conftest* 3833 rm -fr conftest*
4063 ac_cv_c_bigendian=yes 3834 ac_cv_c_bigendian=yes
4064 fi 3835 fi
4077 3848
4078 fi 3849 fi
4079 3850
4080 3851
4081 echo $ac_n "checking size of short""... $ac_c" 1>&6 3852 echo $ac_n "checking size of short""... $ac_c" 1>&6
4082 echo "configure:4083: checking size of short" >&5 3853 echo "configure:3854: checking size of short" >&5
4083 3854
4084 cat > conftest.$ac_ext <<EOF 3855 cat > conftest.$ac_ext <<EOF
4085 #line 4086 "configure" 3856 #line 3857 "configure"
4086 #include "confdefs.h" 3857 #include "confdefs.h"
4087 #include <stdio.h> 3858 #include <stdio.h>
4088 main() 3859 main()
4089 { 3860 {
4090 FILE *f=fopen("conftestval", "w"); 3861 FILE *f=fopen("conftestval", "w");
4091 if (!f) exit(1); 3862 if (!f) exit(1);
4092 fprintf(f, "%d\n", sizeof(short)); 3863 fprintf(f, "%d\n", sizeof(short));
4093 exit(0); 3864 exit(0);
4094 } 3865 }
4095 EOF 3866 EOF
4096 if { (eval echo configure:4097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3867 if { (eval echo configure:3868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
4097 then 3868 then
4098 ac_cv_sizeof_short=`cat conftestval` 3869 ac_cv_sizeof_short=`cat conftestval`
4099 else 3870 else
4100 conftest_rc="$?"
4101 echo "configure: failed program was:" >&5 3871 echo "configure: failed program was:" >&5
4102 cat conftest.$ac_ext >&5 3872 cat conftest.$ac_ext >&5
4103 rm -fr conftest* 3873 rm -fr conftest*
4104 ac_cv_sizeof_short=0 3874 ac_cv_sizeof_short=0
4105 fi 3875 fi
4119 echo "*** PANIC *** Configure tests are not working - compiler is broken." 3889 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4120 echo "*** PANIC *** Please examine config.log for compilation errors." 3890 echo "*** PANIC *** Please examine config.log for compilation errors."
4121 exit 1 3891 exit 1
4122 fi 3892 fi
4123 echo $ac_n "checking size of int""... $ac_c" 1>&6 3893 echo $ac_n "checking size of int""... $ac_c" 1>&6
4124 echo "configure:4125: checking size of int" >&5 3894 echo "configure:3895: checking size of int" >&5
4125 3895
4126 cat > conftest.$ac_ext <<EOF 3896 cat > conftest.$ac_ext <<EOF
4127 #line 4128 "configure" 3897 #line 3898 "configure"
4128 #include "confdefs.h" 3898 #include "confdefs.h"
4129 #include <stdio.h> 3899 #include <stdio.h>
4130 main() 3900 main()
4131 { 3901 {
4132 FILE *f=fopen("conftestval", "w"); 3902 FILE *f=fopen("conftestval", "w");
4133 if (!f) exit(1); 3903 if (!f) exit(1);
4134 fprintf(f, "%d\n", sizeof(int)); 3904 fprintf(f, "%d\n", sizeof(int));
4135 exit(0); 3905 exit(0);
4136 } 3906 }
4137 EOF 3907 EOF
4138 if { (eval echo configure:4139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3908 if { (eval echo configure:3909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
4139 then 3909 then
4140 ac_cv_sizeof_int=`cat conftestval` 3910 ac_cv_sizeof_int=`cat conftestval`
4141 else 3911 else
4142 conftest_rc="$?"
4143 echo "configure: failed program was:" >&5 3912 echo "configure: failed program was:" >&5
4144 cat conftest.$ac_ext >&5 3913 cat conftest.$ac_ext >&5
4145 rm -fr conftest* 3914 rm -fr conftest*
4146 ac_cv_sizeof_int=0 3915 ac_cv_sizeof_int=0
4147 fi 3916 fi
4155 EOF 3924 EOF
4156 } 3925 }
4157 3926
4158 3927
4159 echo $ac_n "checking size of long""... $ac_c" 1>&6 3928 echo $ac_n "checking size of long""... $ac_c" 1>&6
4160 echo "configure:4161: checking size of long" >&5 3929 echo "configure:3930: checking size of long" >&5
4161 3930
4162 cat > conftest.$ac_ext <<EOF 3931 cat > conftest.$ac_ext <<EOF
4163 #line 4164 "configure" 3932 #line 3933 "configure"
4164 #include "confdefs.h" 3933 #include "confdefs.h"
4165 #include <stdio.h> 3934 #include <stdio.h>
4166 main() 3935 main()
4167 { 3936 {
4168 FILE *f=fopen("conftestval", "w"); 3937 FILE *f=fopen("conftestval", "w");
4169 if (!f) exit(1); 3938 if (!f) exit(1);
4170 fprintf(f, "%d\n", sizeof(long)); 3939 fprintf(f, "%d\n", sizeof(long));
4171 exit(0); 3940 exit(0);
4172 } 3941 }
4173 EOF 3942 EOF
4174 if { (eval echo configure:4175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3943 if { (eval echo configure:3944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
4175 then 3944 then
4176 ac_cv_sizeof_long=`cat conftestval` 3945 ac_cv_sizeof_long=`cat conftestval`
4177 else 3946 else
4178 conftest_rc="$?"
4179 echo "configure: failed program was:" >&5 3947 echo "configure: failed program was:" >&5
4180 cat conftest.$ac_ext >&5 3948 cat conftest.$ac_ext >&5
4181 rm -fr conftest* 3949 rm -fr conftest*
4182 ac_cv_sizeof_long=0 3950 ac_cv_sizeof_long=0
4183 fi 3951 fi
4191 EOF 3959 EOF
4192 } 3960 }
4193 3961
4194 3962
4195 echo $ac_n "checking size of long long""... $ac_c" 1>&6 3963 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4196 echo "configure:4197: checking size of long long" >&5 3964 echo "configure:3965: checking size of long long" >&5
4197 3965
4198 cat > conftest.$ac_ext <<EOF 3966 cat > conftest.$ac_ext <<EOF
4199 #line 4200 "configure" 3967 #line 3968 "configure"
4200 #include "confdefs.h" 3968 #include "confdefs.h"
4201 #include <stdio.h> 3969 #include <stdio.h>
4202 main() 3970 main()
4203 { 3971 {
4204 FILE *f=fopen("conftestval", "w"); 3972 FILE *f=fopen("conftestval", "w");
4205 if (!f) exit(1); 3973 if (!f) exit(1);
4206 fprintf(f, "%d\n", sizeof(long long)); 3974 fprintf(f, "%d\n", sizeof(long long));
4207 exit(0); 3975 exit(0);
4208 } 3976 }
4209 EOF 3977 EOF
4210 if { (eval echo configure:4211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3978 if { (eval echo configure:3979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
4211 then 3979 then
4212 ac_cv_sizeof_long_long=`cat conftestval` 3980 ac_cv_sizeof_long_long=`cat conftestval`
4213 else 3981 else
4214 conftest_rc="$?"
4215 echo "configure: failed program was:" >&5 3982 echo "configure: failed program was:" >&5
4216 cat conftest.$ac_ext >&5 3983 cat conftest.$ac_ext >&5
4217 rm -fr conftest* 3984 rm -fr conftest*
4218 ac_cv_sizeof_long_long=0 3985 ac_cv_sizeof_long_long=0
4219 fi 3986 fi
4227 EOF 3994 EOF
4228 } 3995 }
4229 3996
4230 3997
4231 echo $ac_n "checking size of void *""... $ac_c" 1>&6 3998 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4232 echo "configure:4233: checking size of void *" >&5 3999 echo "configure:4000: checking size of void *" >&5
4233 4000
4234 cat > conftest.$ac_ext <<EOF 4001 cat > conftest.$ac_ext <<EOF
4235 #line 4236 "configure" 4002 #line 4003 "configure"
4236 #include "confdefs.h" 4003 #include "confdefs.h"
4237 #include <stdio.h> 4004 #include <stdio.h>
4238 main() 4005 main()
4239 { 4006 {
4240 FILE *f=fopen("conftestval", "w"); 4007 FILE *f=fopen("conftestval", "w");
4241 if (!f) exit(1); 4008 if (!f) exit(1);
4242 fprintf(f, "%d\n", sizeof(void *)); 4009 fprintf(f, "%d\n", sizeof(void *));
4243 exit(0); 4010 exit(0);
4244 } 4011 }
4245 EOF 4012 EOF
4246 if { (eval echo configure:4247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4013 if { (eval echo configure:4014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
4247 then 4014 then
4248 ac_cv_sizeof_void_p=`cat conftestval` 4015 ac_cv_sizeof_void_p=`cat conftestval`
4249 else 4016 else
4250 conftest_rc="$?"
4251 echo "configure: failed program was:" >&5 4017 echo "configure: failed program was:" >&5
4252 cat conftest.$ac_ext >&5 4018 cat conftest.$ac_ext >&5
4253 rm -fr conftest* 4019 rm -fr conftest*
4254 ac_cv_sizeof_void_p=0 4020 ac_cv_sizeof_void_p=0
4255 fi 4021 fi
4264 } 4030 }
4265 4031
4266 4032
4267 4033
4268 echo $ac_n "checking for long file names""... $ac_c" 1>&6 4034 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4269 echo "configure:4270: checking for long file names" >&5 4035 echo "configure:4036: checking for long file names" >&5
4270 4036
4271 ac_cv_sys_long_file_names=yes 4037 ac_cv_sys_long_file_names=yes
4272 # Test for long file names in all the places we know might matter: 4038 # Test for long file names in all the places we know might matter:
4273 # . the current directory, where building will happen 4039 # . the current directory, where building will happen
4274 # $prefix/lib where we will be installing things 4040 # $prefix/lib where we will be installing things
4311 fi 4077 fi
4312 4078
4313 4079
4314 4080
4315 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 4081 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4316 echo "configure:4317: checking for sin in -lm" >&5 4082 echo "configure:4083: checking for sin in -lm" >&5
4317 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 4083 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4318 4084
4319 xe_check_libs=" -lm " 4085 xe_check_libs=" -lm "
4320 cat > conftest.$ac_ext <<EOF 4086 cat > conftest.$ac_ext <<EOF
4321 #line 4322 "configure" 4087 #line 4088 "configure"
4322 #include "confdefs.h" 4088 #include "confdefs.h"
4323 /* Override any gcc2 internal prototype to avoid an error. */ 4089 /* Override any gcc2 internal prototype to avoid an error. */
4324 /* We use char because int might match the return type of a gcc2 4090 /* We use char because int might match the return type of a gcc2
4325 builtin and then its argument prototype would still apply. */ 4091 builtin and then its argument prototype would still apply. */
4326 char sin(); 4092 char sin();
4327 4093
4328 int main() { 4094 int main() {
4329 sin() 4095 sin()
4330 ; return 0; } 4096 ; return 0; }
4331 EOF 4097 EOF
4332 if { (eval echo configure:4333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4098 if { (eval echo configure:4099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4333 rm -rf conftest* 4099 rm -rf conftest*
4334 eval "ac_cv_lib_$ac_lib_var=yes" 4100 eval "ac_cv_lib_$ac_lib_var=yes"
4335 else 4101 else
4336 echo "configure: failed program was:" >&5 4102 echo "configure: failed program was:" >&5
4337 cat conftest.$ac_ext >&5 4103 cat conftest.$ac_ext >&5
4369 EOF 4135 EOF
4370 } 4136 }
4371 4137
4372 4138
4373 cat > conftest.$ac_ext <<EOF 4139 cat > conftest.$ac_ext <<EOF
4374 #line 4375 "configure" 4140 #line 4141 "configure"
4375 #include "confdefs.h" 4141 #include "confdefs.h"
4376 #include <math.h> 4142 #include <math.h>
4377 int main() { 4143 int main() {
4378 return atanh(1.0) + asinh(1.0) + acosh(1.0); 4144 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4379 ; return 0; } 4145 ; return 0; }
4380 EOF 4146 EOF
4381 if { (eval echo configure:4382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4147 if { (eval echo configure:4148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4382 rm -rf conftest* 4148 rm -rf conftest*
4383 { test "$extra_verbose" = "yes" && cat << \EOF 4149 { test "$extra_verbose" = "yes" && cat << \EOF
4384 Defining HAVE_INVERSE_HYPERBOLIC 4150 Defining HAVE_INVERSE_HYPERBOLIC
4385 EOF 4151 EOF
4386 cat >> confdefs.h <<\EOF 4152 cat >> confdefs.h <<\EOF
4393 cat conftest.$ac_ext >&5 4159 cat conftest.$ac_ext >&5
4394 fi 4160 fi
4395 rm -f conftest* 4161 rm -f conftest*
4396 4162
4397 echo "checking type of mail spool file locking" 1>&6 4163 echo "checking type of mail spool file locking" 1>&6
4398 echo "configure:4399: checking type of mail spool file locking" >&5 4164 echo "configure:4165: checking type of mail spool file locking" >&5
4399 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock 4165 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4400 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf 4166 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4401 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF 4167 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4402 Defining REAL_MAIL_USE_LOCKF 4168 Defining REAL_MAIL_USE_LOCKF
4403 EOF 4169 EOF
4417 else mail_locking="dot-locking" 4183 else mail_locking="dot-locking"
4418 fi 4184 fi
4419 4185
4420 4186
4421 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 4187 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
4422 echo "configure:4423: checking for kstat_open in -lkstat" >&5 4188 echo "configure:4189: checking for kstat_open in -lkstat" >&5
4423 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 4189 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
4424 4190
4425 xe_check_libs=" -lkstat " 4191 xe_check_libs=" -lkstat "
4426 cat > conftest.$ac_ext <<EOF 4192 cat > conftest.$ac_ext <<EOF
4427 #line 4428 "configure" 4193 #line 4194 "configure"
4428 #include "confdefs.h" 4194 #include "confdefs.h"
4429 /* Override any gcc2 internal prototype to avoid an error. */ 4195 /* Override any gcc2 internal prototype to avoid an error. */
4430 /* We use char because int might match the return type of a gcc2 4196 /* We use char because int might match the return type of a gcc2
4431 builtin and then its argument prototype would still apply. */ 4197 builtin and then its argument prototype would still apply. */
4432 char kstat_open(); 4198 char kstat_open();
4433 4199
4434 int main() { 4200 int main() {
4435 kstat_open() 4201 kstat_open()
4436 ; return 0; } 4202 ; return 0; }
4437 EOF 4203 EOF
4438 if { (eval echo configure:4439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4204 if { (eval echo configure:4205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4439 rm -rf conftest* 4205 rm -rf conftest*
4440 eval "ac_cv_lib_$ac_lib_var=yes" 4206 eval "ac_cv_lib_$ac_lib_var=yes"
4441 else 4207 else
4442 echo "configure: failed program was:" >&5 4208 echo "configure: failed program was:" >&5
4443 cat conftest.$ac_ext >&5 4209 cat conftest.$ac_ext >&5
4467 4233
4468 4234
4469 4235
4470 4236
4471 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 4237 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
4472 echo "configure:4473: checking for kvm_read in -lkvm" >&5 4238 echo "configure:4239: checking for kvm_read in -lkvm" >&5
4473 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 4239 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
4474 4240
4475 xe_check_libs=" -lkvm " 4241 xe_check_libs=" -lkvm "
4476 cat > conftest.$ac_ext <<EOF 4242 cat > conftest.$ac_ext <<EOF
4477 #line 4478 "configure" 4243 #line 4244 "configure"
4478 #include "confdefs.h" 4244 #include "confdefs.h"
4479 /* Override any gcc2 internal prototype to avoid an error. */ 4245 /* Override any gcc2 internal prototype to avoid an error. */
4480 /* We use char because int might match the return type of a gcc2 4246 /* We use char because int might match the return type of a gcc2
4481 builtin and then its argument prototype would still apply. */ 4247 builtin and then its argument prototype would still apply. */
4482 char kvm_read(); 4248 char kvm_read();
4483 4249
4484 int main() { 4250 int main() {
4485 kvm_read() 4251 kvm_read()
4486 ; return 0; } 4252 ; return 0; }
4487 EOF 4253 EOF
4488 if { (eval echo configure:4489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4254 if { (eval echo configure:4255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4489 rm -rf conftest* 4255 rm -rf conftest*
4490 eval "ac_cv_lib_$ac_lib_var=yes" 4256 eval "ac_cv_lib_$ac_lib_var=yes"
4491 else 4257 else
4492 echo "configure: failed program was:" >&5 4258 echo "configure: failed program was:" >&5
4493 cat conftest.$ac_ext >&5 4259 cat conftest.$ac_ext >&5
4518 4284
4519 4285
4520 case "$opsys" in decosf*) 4286 case "$opsys" in decosf*)
4521 4287
4522 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 4288 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4523 echo "configure:4524: checking for cma_open in -lpthreads" >&5 4289 echo "configure:4290: checking for cma_open in -lpthreads" >&5
4524 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 4290 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4525 4291
4526 xe_check_libs=" -lpthreads " 4292 xe_check_libs=" -lpthreads "
4527 cat > conftest.$ac_ext <<EOF 4293 cat > conftest.$ac_ext <<EOF
4528 #line 4529 "configure" 4294 #line 4295 "configure"
4529 #include "confdefs.h" 4295 #include "confdefs.h"
4530 /* Override any gcc2 internal prototype to avoid an error. */ 4296 /* Override any gcc2 internal prototype to avoid an error. */
4531 /* We use char because int might match the return type of a gcc2 4297 /* We use char because int might match the return type of a gcc2
4532 builtin and then its argument prototype would still apply. */ 4298 builtin and then its argument prototype would still apply. */
4533 char cma_open(); 4299 char cma_open();
4534 4300
4535 int main() { 4301 int main() {
4536 cma_open() 4302 cma_open()
4537 ; return 0; } 4303 ; return 0; }
4538 EOF 4304 EOF
4539 if { (eval echo configure:4540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4305 if { (eval echo configure:4306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4540 rm -rf conftest* 4306 rm -rf conftest*
4541 eval "ac_cv_lib_$ac_lib_var=yes" 4307 eval "ac_cv_lib_$ac_lib_var=yes"
4542 else 4308 else
4543 echo "configure: failed program was:" >&5 4309 echo "configure: failed program was:" >&5
4544 cat conftest.$ac_ext >&5 4310 cat conftest.$ac_ext >&5
4570 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \ 4336 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4571 c_switch_site="$c_switch_site -threads" ;; 4337 c_switch_site="$c_switch_site -threads" ;;
4572 esac 4338 esac
4573 4339
4574 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 4340 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4575 echo "configure:4576: checking whether the -xildoff compiler flag is required" >&5 4341 echo "configure:4342: checking whether the -xildoff compiler flag is required" >&5
4576 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 4342 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4577 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 4343 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4578 then echo "$ac_t""no" 1>&6; 4344 then echo "$ac_t""no" 1>&6;
4579 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-xildoff\" to \$ld_switch_site"; fi 4345 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-xildoff\" to \$ld_switch_site"; fi
4580 fi 4346 fi
4581 else echo "$ac_t""no" 1>&6 4347 else echo "$ac_t""no" 1>&6
4582 fi 4348 fi
4583 4349
4584 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then 4350 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4585 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 4351 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4586 echo "configure:4587: checking for \"-z ignore\" linker flag" >&5 4352 echo "configure:4353: checking for \"-z ignore\" linker flag" >&5
4587 case "`ld -h 2>&1`" in 4353 case "`ld -h 2>&1`" in
4588 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 4354 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4589 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 4355 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4590 *) echo "$ac_t""no" 1>&6 ;; 4356 *) echo "$ac_t""no" 1>&6 ;;
4591 esac 4357 esac
4592 fi 4358 fi
4593 4359
4594 4360
4595 echo "checking "for specified window system"" 1>&6 4361 echo "checking "for specified window system"" 1>&6
4596 echo "configure:4597: checking "for specified window system"" >&5 4362 echo "configure:4363: checking "for specified window system"" >&5
4597 4363
4598 if test "$with_x11" != "no"; then 4364 if test "$with_x11" != "no"; then
4599 test "$x_includes $x_libraries" != "NONE NONE" && \ 4365 test "$x_includes $x_libraries" != "NONE NONE" && \
4600 window_system=x11 with_x11=yes 4366 window_system=x11 with_x11=yes
4601 4367
4624 # If we find X, set shell vars x_includes and x_libraries to the 4390 # If we find X, set shell vars x_includes and x_libraries to the
4625 # paths, otherwise set no_x=yes. 4391 # paths, otherwise set no_x=yes.
4626 # Uses ac_ vars as temps to allow command line to override cache and checks. 4392 # Uses ac_ vars as temps to allow command line to override cache and checks.
4627 # --without-x overrides everything else, but does not touch the cache. 4393 # --without-x overrides everything else, but does not touch the cache.
4628 echo $ac_n "checking for X""... $ac_c" 1>&6 4394 echo $ac_n "checking for X""... $ac_c" 1>&6
4629 echo "configure:4630: checking for X" >&5 4395 echo "configure:4396: checking for X" >&5
4630 4396
4631 # Check whether --with-x or --without-x was given. 4397 # Check whether --with-x or --without-x was given.
4632 if test "${with_x+set}" = set; then 4398 if test "${with_x+set}" = set; then
4633 withval="$with_x" 4399 withval="$with_x"
4634 : 4400 :
4684 # Guess where to find include files, by looking for this one X11 .h file. 4450 # Guess where to find include files, by looking for this one X11 .h file.
4685 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 4451 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4686 4452
4687 # First, try using that file with no special directory specified. 4453 # First, try using that file with no special directory specified.
4688 cat > conftest.$ac_ext <<EOF 4454 cat > conftest.$ac_ext <<EOF
4689 #line 4690 "configure" 4455 #line 4456 "configure"
4690 #include "confdefs.h" 4456 #include "confdefs.h"
4691 #include <$x_direct_test_include> 4457 #include <$x_direct_test_include>
4692 EOF 4458 EOF
4693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4459 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4694 { (eval echo configure:4695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4460 { (eval echo configure:4461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4461 ac_err=`grep -v '^ *+' conftest.out`
4696 if test -z "$ac_err"; then 4462 if test -z "$ac_err"; then
4697 rm -rf conftest* 4463 rm -rf conftest*
4698 # We can compile using X headers with no special include directory. 4464 # We can compile using X headers with no special include directory.
4699 ac_x_includes= 4465 ac_x_includes=
4700 else 4466 else
4758 # See if we find them without any special options. 4524 # See if we find them without any special options.
4759 # Don't add to $LIBS permanently. 4525 # Don't add to $LIBS permanently.
4760 ac_save_LIBS="$LIBS" 4526 ac_save_LIBS="$LIBS"
4761 LIBS="-l$x_direct_test_library $LIBS" 4527 LIBS="-l$x_direct_test_library $LIBS"
4762 cat > conftest.$ac_ext <<EOF 4528 cat > conftest.$ac_ext <<EOF
4763 #line 4764 "configure" 4529 #line 4530 "configure"
4764 #include "confdefs.h" 4530 #include "confdefs.h"
4765 4531
4766 int main() { 4532 int main() {
4767 ${x_direct_test_function}() 4533 ${x_direct_test_function}()
4768 ; return 0; } 4534 ; return 0; }
4769 EOF 4535 EOF
4770 if { (eval echo configure:4771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4536 if { (eval echo configure:4537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4771 rm -rf conftest* 4537 rm -rf conftest*
4772 LIBS="$ac_save_LIBS" 4538 LIBS="$ac_save_LIBS"
4773 # We can link X programs with no special library path. 4539 # We can link X programs with no special library path.
4774 ac_x_libraries= 4540 ac_x_libraries=
4775 else 4541 else
4874 # For Solaris; some versions of Sun CC require a space after -R and 4640 # For Solaris; some versions of Sun CC require a space after -R and
4875 # others require no space. Words are not sufficient . . . . 4641 # others require no space. Words are not sufficient . . . .
4876 case "`(uname -sr) 2>/dev/null`" in 4642 case "`(uname -sr) 2>/dev/null`" in
4877 "SunOS 5"*) 4643 "SunOS 5"*)
4878 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 4644 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4879 echo "configure:4880: checking whether -R must be followed by a space" >&5 4645 echo "configure:4646: checking whether -R must be followed by a space" >&5
4880 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 4646 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4881 cat > conftest.$ac_ext <<EOF 4647 cat > conftest.$ac_ext <<EOF
4882 #line 4883 "configure" 4648 #line 4649 "configure"
4883 #include "confdefs.h" 4649 #include "confdefs.h"
4884 4650
4885 int main() { 4651 int main() {
4886 4652
4887 ; return 0; } 4653 ; return 0; }
4888 EOF 4654 EOF
4889 if { (eval echo configure:4890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4655 if { (eval echo configure:4656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4890 rm -rf conftest* 4656 rm -rf conftest*
4891 ac_R_nospace=yes 4657 ac_R_nospace=yes
4892 else 4658 else
4893 echo "configure: failed program was:" >&5 4659 echo "configure: failed program was:" >&5
4894 cat conftest.$ac_ext >&5 4660 cat conftest.$ac_ext >&5
4900 echo "$ac_t""no" 1>&6 4666 echo "$ac_t""no" 1>&6
4901 X_LIBS="$X_LIBS -R$x_libraries" 4667 X_LIBS="$X_LIBS -R$x_libraries"
4902 else 4668 else
4903 LIBS="$ac_xsave_LIBS -R $x_libraries" 4669 LIBS="$ac_xsave_LIBS -R $x_libraries"
4904 cat > conftest.$ac_ext <<EOF 4670 cat > conftest.$ac_ext <<EOF
4905 #line 4906 "configure" 4671 #line 4672 "configure"
4906 #include "confdefs.h" 4672 #include "confdefs.h"
4907 4673
4908 int main() { 4674 int main() {
4909 4675
4910 ; return 0; } 4676 ; return 0; }
4911 EOF 4677 EOF
4912 if { (eval echo configure:4913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4678 if { (eval echo configure:4679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4913 rm -rf conftest* 4679 rm -rf conftest*
4914 ac_R_space=yes 4680 ac_R_space=yes
4915 else 4681 else
4916 echo "configure: failed program was:" >&5 4682 echo "configure: failed program was:" >&5
4917 cat conftest.$ac_ext >&5 4683 cat conftest.$ac_ext >&5
4943 if test "$with_dnet" = "no" ; then 4709 if test "$with_dnet" = "no" ; then
4944 ac_cv_lib_dnet_dnet_ntoa=no 4710 ac_cv_lib_dnet_dnet_ntoa=no
4945 else 4711 else
4946 4712
4947 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 4713 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4948 echo "configure:4949: checking for dnet_ntoa in -ldnet" >&5 4714 echo "configure:4715: checking for dnet_ntoa in -ldnet" >&5
4949 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4715 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4950 4716
4951 xe_check_libs=" -ldnet " 4717 xe_check_libs=" -ldnet "
4952 cat > conftest.$ac_ext <<EOF 4718 cat > conftest.$ac_ext <<EOF
4953 #line 4954 "configure" 4719 #line 4720 "configure"
4954 #include "confdefs.h" 4720 #include "confdefs.h"
4955 /* Override any gcc2 internal prototype to avoid an error. */ 4721 /* Override any gcc2 internal prototype to avoid an error. */
4956 /* We use char because int might match the return type of a gcc2 4722 /* We use char because int might match the return type of a gcc2
4957 builtin and then its argument prototype would still apply. */ 4723 builtin and then its argument prototype would still apply. */
4958 char dnet_ntoa(); 4724 char dnet_ntoa();
4959 4725
4960 int main() { 4726 int main() {
4961 dnet_ntoa() 4727 dnet_ntoa()
4962 ; return 0; } 4728 ; return 0; }
4963 EOF 4729 EOF
4964 if { (eval echo configure:4965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4730 if { (eval echo configure:4731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4965 rm -rf conftest* 4731 rm -rf conftest*
4966 eval "ac_cv_lib_$ac_lib_var=yes" 4732 eval "ac_cv_lib_$ac_lib_var=yes"
4967 else 4733 else
4968 echo "configure: failed program was:" >&5 4734 echo "configure: failed program was:" >&5
4969 cat conftest.$ac_ext >&5 4735 cat conftest.$ac_ext >&5
4983 fi 4749 fi
4984 4750
4985 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 4751 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4986 4752
4987 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 4753 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4988 echo "configure:4989: checking for dnet_ntoa in -ldnet_stub" >&5 4754 echo "configure:4755: checking for dnet_ntoa in -ldnet_stub" >&5
4989 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4755 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4990 4756
4991 xe_check_libs=" -ldnet_stub " 4757 xe_check_libs=" -ldnet_stub "
4992 cat > conftest.$ac_ext <<EOF 4758 cat > conftest.$ac_ext <<EOF
4993 #line 4994 "configure" 4759 #line 4760 "configure"
4994 #include "confdefs.h" 4760 #include "confdefs.h"
4995 /* Override any gcc2 internal prototype to avoid an error. */ 4761 /* Override any gcc2 internal prototype to avoid an error. */
4996 /* We use char because int might match the return type of a gcc2 4762 /* We use char because int might match the return type of a gcc2
4997 builtin and then its argument prototype would still apply. */ 4763 builtin and then its argument prototype would still apply. */
4998 char dnet_ntoa(); 4764 char dnet_ntoa();
4999 4765
5000 int main() { 4766 int main() {
5001 dnet_ntoa() 4767 dnet_ntoa()
5002 ; return 0; } 4768 ; return 0; }
5003 EOF 4769 EOF
5004 if { (eval echo configure:5005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4770 if { (eval echo configure:4771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5005 rm -rf conftest* 4771 rm -rf conftest*
5006 eval "ac_cv_lib_$ac_lib_var=yes" 4772 eval "ac_cv_lib_$ac_lib_var=yes"
5007 else 4773 else
5008 echo "configure: failed program was:" >&5 4774 echo "configure: failed program was:" >&5
5009 cat conftest.$ac_ext >&5 4775 cat conftest.$ac_ext >&5
5028 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 4794 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5029 # needs -lnsl. 4795 # needs -lnsl.
5030 # The nsl library prevents programs from opening the X display 4796 # The nsl library prevents programs from opening the X display
5031 # on Irix 5.2, according to dickey@clark.net. 4797 # on Irix 5.2, according to dickey@clark.net.
5032 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 4798 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5033 echo "configure:5034: checking for gethostbyname" >&5 4799 echo "configure:4800: checking for gethostbyname" >&5
5034 4800
5035 cat > conftest.$ac_ext <<EOF 4801 cat > conftest.$ac_ext <<EOF
5036 #line 5037 "configure" 4802 #line 4803 "configure"
5037 #include "confdefs.h" 4803 #include "confdefs.h"
5038 /* System header to define __stub macros and hopefully few prototypes, 4804 /* System header to define __stub macros and hopefully few prototypes,
5039 which can conflict with char gethostbyname(); below. */ 4805 which can conflict with char gethostbyname(); below. */
5040 #include <assert.h> 4806 #include <assert.h>
5041 /* Override any gcc2 internal prototype to avoid an error. */ 4807 /* Override any gcc2 internal prototype to avoid an error. */
5054 gethostbyname(); 4820 gethostbyname();
5055 #endif 4821 #endif
5056 4822
5057 ; return 0; } 4823 ; return 0; }
5058 EOF 4824 EOF
5059 if { (eval echo configure:5060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4825 if { (eval echo configure:4826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5060 rm -rf conftest* 4826 rm -rf conftest*
5061 eval "ac_cv_func_gethostbyname=yes" 4827 eval "ac_cv_func_gethostbyname=yes"
5062 else 4828 else
5063 echo "configure: failed program was:" >&5 4829 echo "configure: failed program was:" >&5
5064 cat conftest.$ac_ext >&5 4830 cat conftest.$ac_ext >&5
5075 fi 4841 fi
5076 4842
5077 if test $ac_cv_func_gethostbyname = no; then 4843 if test $ac_cv_func_gethostbyname = no; then
5078 4844
5079 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 4845 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5080 echo "configure:5081: checking for gethostbyname in -lnsl" >&5 4846 echo "configure:4847: checking for gethostbyname in -lnsl" >&5
5081 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 4847 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5082 4848
5083 xe_check_libs=" -lnsl " 4849 xe_check_libs=" -lnsl "
5084 cat > conftest.$ac_ext <<EOF 4850 cat > conftest.$ac_ext <<EOF
5085 #line 5086 "configure" 4851 #line 4852 "configure"
5086 #include "confdefs.h" 4852 #include "confdefs.h"
5087 /* Override any gcc2 internal prototype to avoid an error. */ 4853 /* Override any gcc2 internal prototype to avoid an error. */
5088 /* We use char because int might match the return type of a gcc2 4854 /* We use char because int might match the return type of a gcc2
5089 builtin and then its argument prototype would still apply. */ 4855 builtin and then its argument prototype would still apply. */
5090 char gethostbyname(); 4856 char gethostbyname();
5091 4857
5092 int main() { 4858 int main() {
5093 gethostbyname() 4859 gethostbyname()
5094 ; return 0; } 4860 ; return 0; }
5095 EOF 4861 EOF
5096 if { (eval echo configure:5097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4862 if { (eval echo configure:4863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5097 rm -rf conftest* 4863 rm -rf conftest*
5098 eval "ac_cv_lib_$ac_lib_var=yes" 4864 eval "ac_cv_lib_$ac_lib_var=yes"
5099 else 4865 else
5100 echo "configure: failed program was:" >&5 4866 echo "configure: failed program was:" >&5
5101 cat conftest.$ac_ext >&5 4867 cat conftest.$ac_ext >&5
5121 # on later versions), says simon@lia.di.epfl.ch: it contains 4887 # on later versions), says simon@lia.di.epfl.ch: it contains
5122 # gethostby* variants that don't use the nameserver (or something). 4888 # gethostby* variants that don't use the nameserver (or something).
5123 # -lsocket must be given before -lnsl if both are needed. 4889 # -lsocket must be given before -lnsl if both are needed.
5124 # We assume that if connect needs -lnsl, so does gethostbyname. 4890 # We assume that if connect needs -lnsl, so does gethostbyname.
5125 echo $ac_n "checking for connect""... $ac_c" 1>&6 4891 echo $ac_n "checking for connect""... $ac_c" 1>&6
5126 echo "configure:5127: checking for connect" >&5 4892 echo "configure:4893: checking for connect" >&5
5127 4893
5128 cat > conftest.$ac_ext <<EOF 4894 cat > conftest.$ac_ext <<EOF
5129 #line 5130 "configure" 4895 #line 4896 "configure"
5130 #include "confdefs.h" 4896 #include "confdefs.h"
5131 /* System header to define __stub macros and hopefully few prototypes, 4897 /* System header to define __stub macros and hopefully few prototypes,
5132 which can conflict with char connect(); below. */ 4898 which can conflict with char connect(); below. */
5133 #include <assert.h> 4899 #include <assert.h>
5134 /* Override any gcc2 internal prototype to avoid an error. */ 4900 /* Override any gcc2 internal prototype to avoid an error. */
5147 connect(); 4913 connect();
5148 #endif 4914 #endif
5149 4915
5150 ; return 0; } 4916 ; return 0; }
5151 EOF 4917 EOF
5152 if { (eval echo configure:5153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4918 if { (eval echo configure:4919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5153 rm -rf conftest* 4919 rm -rf conftest*
5154 eval "ac_cv_func_connect=yes" 4920 eval "ac_cv_func_connect=yes"
5155 else 4921 else
5156 echo "configure: failed program was:" >&5 4922 echo "configure: failed program was:" >&5
5157 cat conftest.$ac_ext >&5 4923 cat conftest.$ac_ext >&5
5170 if test $ac_cv_func_connect = no; then 4936 if test $ac_cv_func_connect = no; then
5171 4937
5172 xe_msg_checking="for connect in -lsocket" 4938 xe_msg_checking="for connect in -lsocket"
5173 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 4939 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5174 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 4940 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5175 echo "configure:5176: checking "$xe_msg_checking"" >&5 4941 echo "configure:4942: checking "$xe_msg_checking"" >&5
5176 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 4942 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5177 4943
5178 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 4944 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5179 cat > conftest.$ac_ext <<EOF 4945 cat > conftest.$ac_ext <<EOF
5180 #line 5181 "configure" 4946 #line 4947 "configure"
5181 #include "confdefs.h" 4947 #include "confdefs.h"
5182 /* Override any gcc2 internal prototype to avoid an error. */ 4948 /* Override any gcc2 internal prototype to avoid an error. */
5183 /* We use char because int might match the return type of a gcc2 4949 /* We use char because int might match the return type of a gcc2
5184 builtin and then its argument prototype would still apply. */ 4950 builtin and then its argument prototype would still apply. */
5185 char connect(); 4951 char connect();
5186 4952
5187 int main() { 4953 int main() {
5188 connect() 4954 connect()
5189 ; return 0; } 4955 ; return 0; }
5190 EOF 4956 EOF
5191 if { (eval echo configure:5192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4957 if { (eval echo configure:4958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5192 rm -rf conftest* 4958 rm -rf conftest*
5193 eval "ac_cv_lib_$ac_lib_var=yes" 4959 eval "ac_cv_lib_$ac_lib_var=yes"
5194 else 4960 else
5195 echo "configure: failed program was:" >&5 4961 echo "configure: failed program was:" >&5
5196 cat conftest.$ac_ext >&5 4962 cat conftest.$ac_ext >&5
5210 4976
5211 fi 4977 fi
5212 4978
5213 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 4979 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5214 echo $ac_n "checking for remove""... $ac_c" 1>&6 4980 echo $ac_n "checking for remove""... $ac_c" 1>&6
5215 echo "configure:5216: checking for remove" >&5 4981 echo "configure:4982: checking for remove" >&5
5216 4982
5217 cat > conftest.$ac_ext <<EOF 4983 cat > conftest.$ac_ext <<EOF
5218 #line 5219 "configure" 4984 #line 4985 "configure"
5219 #include "confdefs.h" 4985 #include "confdefs.h"
5220 /* System header to define __stub macros and hopefully few prototypes, 4986 /* System header to define __stub macros and hopefully few prototypes,
5221 which can conflict with char remove(); below. */ 4987 which can conflict with char remove(); below. */
5222 #include <assert.h> 4988 #include <assert.h>
5223 /* Override any gcc2 internal prototype to avoid an error. */ 4989 /* Override any gcc2 internal prototype to avoid an error. */
5236 remove(); 5002 remove();
5237 #endif 5003 #endif
5238 5004
5239 ; return 0; } 5005 ; return 0; }
5240 EOF 5006 EOF
5241 if { (eval echo configure:5242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5007 if { (eval echo configure:5008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5242 rm -rf conftest* 5008 rm -rf conftest*
5243 eval "ac_cv_func_remove=yes" 5009 eval "ac_cv_func_remove=yes"
5244 else 5010 else
5245 echo "configure: failed program was:" >&5 5011 echo "configure: failed program was:" >&5
5246 cat conftest.$ac_ext >&5 5012 cat conftest.$ac_ext >&5
5257 fi 5023 fi
5258 5024
5259 if test $ac_cv_func_remove = no; then 5025 if test $ac_cv_func_remove = no; then
5260 5026
5261 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 5027 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5262 echo "configure:5263: checking for remove in -lposix" >&5 5028 echo "configure:5029: checking for remove in -lposix" >&5
5263 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 5029 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5264 5030
5265 xe_check_libs=" -lposix " 5031 xe_check_libs=" -lposix "
5266 cat > conftest.$ac_ext <<EOF 5032 cat > conftest.$ac_ext <<EOF
5267 #line 5268 "configure" 5033 #line 5034 "configure"
5268 #include "confdefs.h" 5034 #include "confdefs.h"
5269 /* Override any gcc2 internal prototype to avoid an error. */ 5035 /* Override any gcc2 internal prototype to avoid an error. */
5270 /* We use char because int might match the return type of a gcc2 5036 /* We use char because int might match the return type of a gcc2
5271 builtin and then its argument prototype would still apply. */ 5037 builtin and then its argument prototype would still apply. */
5272 char remove(); 5038 char remove();
5273 5039
5274 int main() { 5040 int main() {
5275 remove() 5041 remove()
5276 ; return 0; } 5042 ; return 0; }
5277 EOF 5043 EOF
5278 if { (eval echo configure:5279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5044 if { (eval echo configure:5045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5279 rm -rf conftest* 5045 rm -rf conftest*
5280 eval "ac_cv_lib_$ac_lib_var=yes" 5046 eval "ac_cv_lib_$ac_lib_var=yes"
5281 else 5047 else
5282 echo "configure: failed program was:" >&5 5048 echo "configure: failed program was:" >&5
5283 cat conftest.$ac_ext >&5 5049 cat conftest.$ac_ext >&5
5297 5063
5298 fi 5064 fi
5299 5065
5300 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 5066 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5301 echo $ac_n "checking for shmat""... $ac_c" 1>&6 5067 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5302 echo "configure:5303: checking for shmat" >&5 5068 echo "configure:5069: checking for shmat" >&5
5303 5069
5304 cat > conftest.$ac_ext <<EOF 5070 cat > conftest.$ac_ext <<EOF
5305 #line 5306 "configure" 5071 #line 5072 "configure"
5306 #include "confdefs.h" 5072 #include "confdefs.h"
5307 /* System header to define __stub macros and hopefully few prototypes, 5073 /* System header to define __stub macros and hopefully few prototypes,
5308 which can conflict with char shmat(); below. */ 5074 which can conflict with char shmat(); below. */
5309 #include <assert.h> 5075 #include <assert.h>
5310 /* Override any gcc2 internal prototype to avoid an error. */ 5076 /* Override any gcc2 internal prototype to avoid an error. */
5323 shmat(); 5089 shmat();
5324 #endif 5090 #endif
5325 5091
5326 ; return 0; } 5092 ; return 0; }
5327 EOF 5093 EOF
5328 if { (eval echo configure:5329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5094 if { (eval echo configure:5095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5329 rm -rf conftest* 5095 rm -rf conftest*
5330 eval "ac_cv_func_shmat=yes" 5096 eval "ac_cv_func_shmat=yes"
5331 else 5097 else
5332 echo "configure: failed program was:" >&5 5098 echo "configure: failed program was:" >&5
5333 cat conftest.$ac_ext >&5 5099 cat conftest.$ac_ext >&5
5344 fi 5110 fi
5345 5111
5346 if test $ac_cv_func_shmat = no; then 5112 if test $ac_cv_func_shmat = no; then
5347 5113
5348 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 5114 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5349 echo "configure:5350: checking for shmat in -lipc" >&5 5115 echo "configure:5116: checking for shmat in -lipc" >&5
5350 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 5116 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5351 5117
5352 xe_check_libs=" -lipc " 5118 xe_check_libs=" -lipc "
5353 cat > conftest.$ac_ext <<EOF 5119 cat > conftest.$ac_ext <<EOF
5354 #line 5355 "configure" 5120 #line 5121 "configure"
5355 #include "confdefs.h" 5121 #include "confdefs.h"
5356 /* Override any gcc2 internal prototype to avoid an error. */ 5122 /* Override any gcc2 internal prototype to avoid an error. */
5357 /* We use char because int might match the return type of a gcc2 5123 /* We use char because int might match the return type of a gcc2
5358 builtin and then its argument prototype would still apply. */ 5124 builtin and then its argument prototype would still apply. */
5359 char shmat(); 5125 char shmat();
5360 5126
5361 int main() { 5127 int main() {
5362 shmat() 5128 shmat()
5363 ; return 0; } 5129 ; return 0; }
5364 EOF 5130 EOF
5365 if { (eval echo configure:5366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5131 if { (eval echo configure:5132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5366 rm -rf conftest* 5132 rm -rf conftest*
5367 eval "ac_cv_lib_$ac_lib_var=yes" 5133 eval "ac_cv_lib_$ac_lib_var=yes"
5368 else 5134 else
5369 echo "configure: failed program was:" >&5 5135 echo "configure: failed program was:" >&5
5370 cat conftest.$ac_ext >&5 5136 cat conftest.$ac_ext >&5
5393 # we get undefined symbols. So assume we have SM if we have ICE. 5159 # we get undefined symbols. So assume we have SM if we have ICE.
5394 # These have to be linked with before -lX11, unlike the other 5160 # These have to be linked with before -lX11, unlike the other
5395 # libraries we check for below, so use a different variable. 5161 # libraries we check for below, so use a different variable.
5396 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 5162 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5397 5163
5398 xe_msg_checking="for IceConnectionNumber in -lICE" 5164 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
5399 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 5165 echo "configure:5166: checking for IceConnectionNumber in -lICE" >&5
5400 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5401 echo "configure:5402: checking "$xe_msg_checking"" >&5
5402 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 5166 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5403 5167
5404 xe_check_libs=" -lICE $X_EXTRA_LIBS" 5168 xe_check_libs=" -lICE "
5405 cat > conftest.$ac_ext <<EOF 5169 cat > conftest.$ac_ext <<EOF
5406 #line 5407 "configure" 5170 #line 5171 "configure"
5407 #include "confdefs.h" 5171 #include "confdefs.h"
5408 /* Override any gcc2 internal prototype to avoid an error. */ 5172 /* Override any gcc2 internal prototype to avoid an error. */
5409 /* We use char because int might match the return type of a gcc2 5173 /* We use char because int might match the return type of a gcc2
5410 builtin and then its argument prototype would still apply. */ 5174 builtin and then its argument prototype would still apply. */
5411 char IceConnectionNumber(); 5175 char IceConnectionNumber();
5412 5176
5413 int main() { 5177 int main() {
5414 IceConnectionNumber() 5178 IceConnectionNumber()
5415 ; return 0; } 5179 ; return 0; }
5416 EOF 5180 EOF
5417 if { (eval echo configure:5418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5181 if { (eval echo configure:5182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5418 rm -rf conftest* 5182 rm -rf conftest*
5419 eval "ac_cv_lib_$ac_lib_var=yes" 5183 eval "ac_cv_lib_$ac_lib_var=yes"
5420 else 5184 else
5421 echo "configure: failed program was:" >&5 5185 echo "configure: failed program was:" >&5
5422 cat conftest.$ac_ext >&5 5186 cat conftest.$ac_ext >&5
5486 x_includes="$x_includes $inc_dir" 5250 x_includes="$x_includes $inc_dir"
5487 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi 5251 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5488 esac 5252 esac
5489 break; fi 5253 break; fi
5490 done 5254 done
5491
5492 case "$opsys" in
5493 decosf*) if test "$GCC" = yes -a -d /usr/shlib; then X_LIBS="$X_LIBS -L/usr/shlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L/usr/shlib\" to \$X_LIBS"; fi; fi ;;
5494 esac
5495 5255
5496 ld_switch_x_site="$X_LIBS" 5256 ld_switch_x_site="$X_LIBS"
5497 5257
5498 5258
5499 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then 5259 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5512 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do 5272 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5513 { 5273 {
5514 xe_runpath_dir="$dir" 5274 xe_runpath_dir="$dir"
5515 test "$xe_runpath_dir" != "/lib" -a \ 5275 test "$xe_runpath_dir" != "/lib" -a \
5516 "$xe_runpath_dir" != "/usr/lib" -a \ 5276 "$xe_runpath_dir" != "/usr/lib" -a \
5517 -n "`ls ${xe_runpath_dir}/*.s[ol] ${xe_runpath_dir}/*.so.* 2>/dev/null`" && \ 5277 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5518 eval "$xe_add_unique_runpath_dir" 5278 eval "$xe_add_unique_runpath_dir"
5519 } 5279 }
5520 done ;; 5280 done ;;
5521 esac 5281 esac
5522 done 5282 done
5526 for arg in $ld_switch_site $ld_switch_x_site; do 5286 for arg in $ld_switch_site $ld_switch_x_site; do
5527 case "$arg" in -L*) { 5287 case "$arg" in -L*) {
5528 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'` 5288 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5529 test "$xe_runpath_dir" != "/lib" -a \ 5289 test "$xe_runpath_dir" != "/lib" -a \
5530 "$xe_runpath_dir" != "/usr/lib" -a \ 5290 "$xe_runpath_dir" != "/usr/lib" -a \
5531 -n "`ls ${xe_runpath_dir}/*.s[ol] ${xe_runpath_dir}/*.so.* 2>/dev/null`" && \ 5291 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5532 eval "$xe_add_unique_runpath_dir" 5292 eval "$xe_add_unique_runpath_dir"
5533 };; esac 5293 };; esac
5534 done 5294 done
5535 if test "$opsys $need_motif" = "sol2 yes"; then 5295 if test "$opsys $need_motif" = "sol2 yes"; then
5536 xe_runpath_dir="/opt/SUNWdt/lib"; 5296 xe_runpath_dir="/opt/SUNWdt/lib";
5583 EOF 5343 EOF
5584 } 5344 }
5585 5345
5586 5346
5587 echo "checking for X defines extracted by xmkmf" 1>&6 5347 echo "checking for X defines extracted by xmkmf" 1>&6
5588 echo "configure:5589: checking for X defines extracted by xmkmf" >&5 5348 echo "configure:5349: checking for X defines extracted by xmkmf" >&5
5589 rm -fr conftestdir 5349 rm -fr conftestdir
5590 if mkdir conftestdir; then 5350 if mkdir conftestdir; then
5591 cd conftestdir 5351 cd conftestdir
5592 cat > Imakefile <<'EOF' 5352 cat > Imakefile <<'EOF'
5593 xetest: 5353 xetest:
5598 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make` 5358 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5599 fi 5359 fi
5600 cd .. 5360 cd ..
5601 rm -fr conftestdir 5361 rm -fr conftestdir
5602 for word in $xmkmf_defines; do 5362 for word in $xmkmf_defines; do
5603 case "$word" in -D* ) 5363 case "$word" in
5604 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'` 5364 -D*=* ) ;;
5605 case "$word" in 5365 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
5606 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;; 5366 { test "$extra_verbose" = "yes" && cat << EOF
5607 * ) val=1 ;; 5367 Defining $word
5608 esac
5609 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
5610 if test "$val" = "1"
5611 then { test "$extra_verbose" = "yes" && cat << EOF
5612 Defining $sym
5613 EOF 5368 EOF
5614 cat >> confdefs.h <<EOF 5369 cat >> confdefs.h <<EOF
5615 #define $sym 1 5370 #define $word 1
5616 EOF 5371 EOF
5617 } 5372 }
5618 5373 ;;
5619 else { test "$extra_verbose" = "yes" && cat << EOF
5620 Defining $sym = $val
5621 EOF
5622 cat >> confdefs.h <<EOF
5623 #define $sym $val
5624 EOF
5625 }
5626
5627 fi
5628 fi ;;
5629 esac 5374 esac
5630 done 5375 done
5631 fi 5376 fi
5632 5377
5633 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 5378 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5634 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 5379 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5635 echo "configure:5636: checking for X11/Intrinsic.h" >&5 5380 echo "configure:5381: checking for X11/Intrinsic.h" >&5
5636 5381
5637 cat > conftest.$ac_ext <<EOF 5382 cat > conftest.$ac_ext <<EOF
5638 #line 5639 "configure" 5383 #line 5384 "configure"
5639 #include "confdefs.h" 5384 #include "confdefs.h"
5640 #include <X11/Intrinsic.h> 5385 #include <X11/Intrinsic.h>
5641 EOF 5386 EOF
5642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5387 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5643 { (eval echo configure:5644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5388 { (eval echo configure:5389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5644 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5389 ac_err=`grep -v '^ *+' conftest.out`
5645 if test -z "$ac_err"; then 5390 if test -z "$ac_err"; then
5646 rm -rf conftest* 5391 rm -rf conftest*
5647 eval "ac_cv_header_$ac_safe=yes" 5392 eval "ac_cv_header_$ac_safe=yes"
5648 else 5393 else
5649 echo "$ac_err" >&5 5394 echo "$ac_err" >&5
5662 fi 5407 fi
5663 5408
5664 5409
5665 5410
5666 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 5411 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5667 echo "configure:5668: checking for XOpenDisplay in -lX11" >&5 5412 echo "configure:5413: checking for XOpenDisplay in -lX11" >&5
5668 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 5413 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5669 5414
5670 xe_check_libs=" -lX11 " 5415 xe_check_libs=" -lX11 "
5671 cat > conftest.$ac_ext <<EOF 5416 cat > conftest.$ac_ext <<EOF
5672 #line 5673 "configure" 5417 #line 5418 "configure"
5673 #include "confdefs.h" 5418 #include "confdefs.h"
5674 /* Override any gcc2 internal prototype to avoid an error. */ 5419 /* Override any gcc2 internal prototype to avoid an error. */
5675 /* We use char because int might match the return type of a gcc2 5420 /* We use char because int might match the return type of a gcc2
5676 builtin and then its argument prototype would still apply. */ 5421 builtin and then its argument prototype would still apply. */
5677 char XOpenDisplay(); 5422 char XOpenDisplay();
5678 5423
5679 int main() { 5424 int main() {
5680 XOpenDisplay() 5425 XOpenDisplay()
5681 ; return 0; } 5426 ; return 0; }
5682 EOF 5427 EOF
5683 if { (eval echo configure:5684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5428 if { (eval echo configure:5429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5684 rm -rf conftest* 5429 rm -rf conftest*
5685 eval "ac_cv_lib_$ac_lib_var=yes" 5430 eval "ac_cv_lib_$ac_lib_var=yes"
5686 else 5431 else
5687 echo "configure: failed program was:" >&5 5432 echo "configure: failed program was:" >&5
5688 cat conftest.$ac_ext >&5 5433 cat conftest.$ac_ext >&5
5703 if test "$have_lib_x11" != "yes"; then 5448 if test "$have_lib_x11" != "yes"; then
5704 5449
5705 xe_msg_checking="for XGetFontProperty in -lX11" 5450 xe_msg_checking="for XGetFontProperty in -lX11"
5706 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 5451 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5707 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5452 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5708 echo "configure:5709: checking "$xe_msg_checking"" >&5 5453 echo "configure:5454: checking "$xe_msg_checking"" >&5
5709 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 5454 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5710 5455
5711 xe_check_libs=" -lX11 -b i486-linuxaout" 5456 xe_check_libs=" -lX11 -b i486-linuxaout"
5712 cat > conftest.$ac_ext <<EOF 5457 cat > conftest.$ac_ext <<EOF
5713 #line 5714 "configure" 5458 #line 5459 "configure"
5714 #include "confdefs.h" 5459 #include "confdefs.h"
5715 /* Override any gcc2 internal prototype to avoid an error. */ 5460 /* Override any gcc2 internal prototype to avoid an error. */
5716 /* We use char because int might match the return type of a gcc2 5461 /* We use char because int might match the return type of a gcc2
5717 builtin and then its argument prototype would still apply. */ 5462 builtin and then its argument prototype would still apply. */
5718 char XGetFontProperty(); 5463 char XGetFontProperty();
5719 5464
5720 int main() { 5465 int main() {
5721 XGetFontProperty() 5466 XGetFontProperty()
5722 ; return 0; } 5467 ; return 0; }
5723 EOF 5468 EOF
5724 if { (eval echo configure:5725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5469 if { (eval echo configure:5470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5725 rm -rf conftest* 5470 rm -rf conftest*
5726 eval "ac_cv_lib_$ac_lib_var=yes" 5471 eval "ac_cv_lib_$ac_lib_var=yes"
5727 else 5472 else
5728 echo "configure: failed program was:" >&5 5473 echo "configure: failed program was:" >&5
5729 cat conftest.$ac_ext >&5 5474 cat conftest.$ac_ext >&5
5746 libs_x="-lX11" 5491 libs_x="-lX11"
5747 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 5492 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5748 5493
5749 5494
5750 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 5495 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5751 echo "configure:5752: checking for XShapeSelectInput in -lXext" >&5 5496 echo "configure:5497: checking for XShapeSelectInput in -lXext" >&5
5752 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 5497 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5753 5498
5754 xe_check_libs=" -lXext " 5499 xe_check_libs=" -lXext "
5755 cat > conftest.$ac_ext <<EOF 5500 cat > conftest.$ac_ext <<EOF
5756 #line 5757 "configure" 5501 #line 5502 "configure"
5757 #include "confdefs.h" 5502 #include "confdefs.h"
5758 /* Override any gcc2 internal prototype to avoid an error. */ 5503 /* Override any gcc2 internal prototype to avoid an error. */
5759 /* We use char because int might match the return type of a gcc2 5504 /* We use char because int might match the return type of a gcc2
5760 builtin and then its argument prototype would still apply. */ 5505 builtin and then its argument prototype would still apply. */
5761 char XShapeSelectInput(); 5506 char XShapeSelectInput();
5762 5507
5763 int main() { 5508 int main() {
5764 XShapeSelectInput() 5509 XShapeSelectInput()
5765 ; return 0; } 5510 ; return 0; }
5766 EOF 5511 EOF
5767 if { (eval echo configure:5768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5512 if { (eval echo configure:5513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5768 rm -rf conftest* 5513 rm -rf conftest*
5769 eval "ac_cv_lib_$ac_lib_var=yes" 5514 eval "ac_cv_lib_$ac_lib_var=yes"
5770 else 5515 else
5771 echo "configure: failed program was:" >&5 5516 echo "configure: failed program was:" >&5
5772 cat conftest.$ac_ext >&5 5517 cat conftest.$ac_ext >&5
5785 5530
5786 5531
5787 5532
5788 5533
5789 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 5534 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5790 echo "configure:5791: checking for XtOpenDisplay in -lXt" >&5 5535 echo "configure:5536: checking for XtOpenDisplay in -lXt" >&5
5791 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 5536 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5792 5537
5793 xe_check_libs=" -lXt " 5538 xe_check_libs=" -lXt "
5794 cat > conftest.$ac_ext <<EOF 5539 cat > conftest.$ac_ext <<EOF
5795 #line 5796 "configure" 5540 #line 5541 "configure"
5796 #include "confdefs.h" 5541 #include "confdefs.h"
5797 /* Override any gcc2 internal prototype to avoid an error. */ 5542 /* Override any gcc2 internal prototype to avoid an error. */
5798 /* We use char because int might match the return type of a gcc2 5543 /* We use char because int might match the return type of a gcc2
5799 builtin and then its argument prototype would still apply. */ 5544 builtin and then its argument prototype would still apply. */
5800 char XtOpenDisplay(); 5545 char XtOpenDisplay();
5801 5546
5802 int main() { 5547 int main() {
5803 XtOpenDisplay() 5548 XtOpenDisplay()
5804 ; return 0; } 5549 ; return 0; }
5805 EOF 5550 EOF
5806 if { (eval echo configure:5807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5551 if { (eval echo configure:5552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5807 rm -rf conftest* 5552 rm -rf conftest*
5808 eval "ac_cv_lib_$ac_lib_var=yes" 5553 eval "ac_cv_lib_$ac_lib_var=yes"
5809 else 5554 else
5810 echo "configure: failed program was:" >&5 5555 echo "configure: failed program was:" >&5
5811 cat conftest.$ac_ext >&5 5556 cat conftest.$ac_ext >&5
5824 fi 5569 fi
5825 5570
5826 5571
5827 5572
5828 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 5573 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5829 echo "configure:5830: checking the version of X11 being used" >&5 5574 echo "configure:5575: checking the version of X11 being used" >&5
5830 cat > conftest.$ac_ext <<EOF 5575 cat > conftest.$ac_ext <<EOF
5831 #line 5832 "configure" 5576 #line 5577 "configure"
5832 #include "confdefs.h" 5577 #include "confdefs.h"
5833 #include <X11/Intrinsic.h> 5578 #include <X11/Intrinsic.h>
5834 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; } 5579 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5835 EOF 5580 EOF
5836 if { (eval echo configure:5837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 5581 if { (eval echo configure:5582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
5837 then 5582 then
5838 ./conftest foobar; x11_release=$? 5583 ./conftest foobar; x11_release=$?
5839 else 5584 else
5840 conftest_rc="$?"
5841 echo "configure: failed program was:" >&5 5585 echo "configure: failed program was:" >&5
5842 cat conftest.$ac_ext >&5 5586 cat conftest.$ac_ext >&5
5843 rm -fr conftest* 5587 rm -fr conftest*
5844 x11_release=4 5588 x11_release=4
5845 fi 5589 fi
5856 5600
5857 for ac_hdr in X11/Xlocale.h 5601 for ac_hdr in X11/Xlocale.h
5858 do 5602 do
5859 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5603 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5860 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5604 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5861 echo "configure:5862: checking for $ac_hdr" >&5 5605 echo "configure:5606: checking for $ac_hdr" >&5
5862 5606
5863 cat > conftest.$ac_ext <<EOF 5607 cat > conftest.$ac_ext <<EOF
5864 #line 5865 "configure" 5608 #line 5609 "configure"
5865 #include "confdefs.h" 5609 #include "confdefs.h"
5866 #include <$ac_hdr> 5610 #include <$ac_hdr>
5867 EOF 5611 EOF
5868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5869 { (eval echo configure:5870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5613 { (eval echo configure:5614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5614 ac_err=`grep -v '^ *+' conftest.out`
5871 if test -z "$ac_err"; then 5615 if test -z "$ac_err"; then
5872 rm -rf conftest* 5616 rm -rf conftest*
5873 eval "ac_cv_header_$ac_safe=yes" 5617 eval "ac_cv_header_$ac_safe=yes"
5874 else 5618 else
5875 echo "$ac_err" >&5 5619 echo "$ac_err" >&5
5895 fi 5639 fi
5896 done 5640 done
5897 5641
5898 5642
5899 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 5643 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5900 echo "configure:5901: checking for XFree86" >&5 5644 echo "configure:5645: checking for XFree86" >&5
5901 if test -d "/usr/X386/include" -o \ 5645 if test -d "/usr/X386/include" -o \
5902 -f "/etc/XF86Config" -o \ 5646 -f "/etc/XF86Config" -o \
5903 -f "/etc/X11/XF86Config" -o \ 5647 -f "/etc/X11/XF86Config" -o \
5904 -f "/usr/X11R6/lib/X11/XF86Config"; then 5648 -f "/usr/X11R6/lib/X11/XF86Config"; then
5905 echo "$ac_t""yes" 1>&6 5649 echo "$ac_t""yes" 1>&6
5915 echo "$ac_t""no" 1>&6 5659 echo "$ac_t""no" 1>&6
5916 fi 5660 fi
5917 5661
5918 test -z "$with_xmu" && { 5662 test -z "$with_xmu" && {
5919 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 5663 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5920 echo "configure:5921: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 5664 echo "configure:5665: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5921 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 5665 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5922 5666
5923 xe_check_libs=" -lXmu " 5667 xe_check_libs=" -lXmu "
5924 cat > conftest.$ac_ext <<EOF 5668 cat > conftest.$ac_ext <<EOF
5925 #line 5926 "configure" 5669 #line 5670 "configure"
5926 #include "confdefs.h" 5670 #include "confdefs.h"
5927 /* Override any gcc2 internal prototype to avoid an error. */ 5671 /* Override any gcc2 internal prototype to avoid an error. */
5928 /* We use char because int might match the return type of a gcc2 5672 /* We use char because int might match the return type of a gcc2
5929 builtin and then its argument prototype would still apply. */ 5673 builtin and then its argument prototype would still apply. */
5930 char XmuReadBitmapDataFromFile(); 5674 char XmuReadBitmapDataFromFile();
5931 5675
5932 int main() { 5676 int main() {
5933 XmuReadBitmapDataFromFile() 5677 XmuReadBitmapDataFromFile()
5934 ; return 0; } 5678 ; return 0; }
5935 EOF 5679 EOF
5936 if { (eval echo configure:5937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5680 if { (eval echo configure:5681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5937 rm -rf conftest* 5681 rm -rf conftest*
5938 eval "ac_cv_lib_$ac_lib_var=yes" 5682 eval "ac_cv_lib_$ac_lib_var=yes"
5939 else 5683 else
5940 echo "configure: failed program was:" >&5 5684 echo "configure: failed program was:" >&5
5941 cat conftest.$ac_ext >&5 5685 cat conftest.$ac_ext >&5
5970 5714
5971 fi 5715 fi
5972 5716
5973 5717
5974 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 5718 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5975 echo "configure:5976: checking for main in -lXbsd" >&5 5719 echo "configure:5720: checking for main in -lXbsd" >&5
5976 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 5720 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5977 5721
5978 xe_check_libs=" -lXbsd " 5722 xe_check_libs=" -lXbsd "
5979 cat > conftest.$ac_ext <<EOF 5723 cat > conftest.$ac_ext <<EOF
5980 #line 5981 "configure" 5724 #line 5725 "configure"
5981 #include "confdefs.h" 5725 #include "confdefs.h"
5982 5726
5983 int main() { 5727 int main() {
5984 main() 5728 main()
5985 ; return 0; } 5729 ; return 0; }
5986 EOF 5730 EOF
5987 if { (eval echo configure:5988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5731 if { (eval echo configure:5732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5988 rm -rf conftest* 5732 rm -rf conftest*
5989 eval "ac_cv_lib_$ac_lib_var=yes" 5733 eval "ac_cv_lib_$ac_lib_var=yes"
5990 else 5734 else
5991 echo "configure: failed program was:" >&5 5735 echo "configure: failed program was:" >&5
5992 cat conftest.$ac_ext >&5 5736 cat conftest.$ac_ext >&5
6019 fi 5763 fi
6020 5764
6021 fi 5765 fi
6022 if test "$with_msw" != "no"; then 5766 if test "$with_msw" != "no"; then
6023 echo "checking for MS-Windows" 1>&6 5767 echo "checking for MS-Windows" 1>&6
6024 echo "configure:6025: checking for MS-Windows" >&5 5768 echo "configure:5769: checking for MS-Windows" >&5
6025 5769
6026 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 5770 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6027 echo "configure:6028: checking for main in -lgdi32" >&5 5771 echo "configure:5772: checking for main in -lgdi32" >&5
6028 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` 5772 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6029 5773
6030 xe_check_libs=" -lgdi32 " 5774 xe_check_libs=" -lgdi32 "
6031 cat > conftest.$ac_ext <<EOF 5775 cat > conftest.$ac_ext <<EOF
6032 #line 6033 "configure" 5776 #line 5777 "configure"
6033 #include "confdefs.h" 5777 #include "confdefs.h"
6034 5778
6035 int main() { 5779 int main() {
6036 main() 5780 main()
6037 ; return 0; } 5781 ; return 0; }
6038 EOF 5782 EOF
6039 if { (eval echo configure:6040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5783 if { (eval echo configure:5784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6040 rm -rf conftest* 5784 rm -rf conftest*
6041 eval "ac_cv_lib_$ac_lib_var=yes" 5785 eval "ac_cv_lib_$ac_lib_var=yes"
6042 else 5786 else
6043 echo "configure: failed program was:" >&5 5787 echo "configure: failed program was:" >&5
6044 cat conftest.$ac_ext >&5 5788 cat conftest.$ac_ext >&5
6064 #define HAVE_MS_WINDOWS 1 5808 #define HAVE_MS_WINDOWS 1
6065 EOF 5809 EOF
6066 } 5810 }
6067 5811
6068 install_pp="$blddir/lib-src/installexe.sh" 5812 install_pp="$blddir/lib-src/installexe.sh"
6069 exe_suffix=".exe"
6070 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32\" to \$libs_system"; fi 5813 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32\" to \$libs_system"; fi
6071 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6072 if test "$window_system" != x11; then 5814 if test "$window_system" != x11; then
6073 window_system=msw 5815 window_system=msw
6074 test "$with_scrollbars" != "no" && with_scrollbars=msw \ 5816 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6075 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then 5817 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6076 echo " xemacs will be linked with \"scrollbar-msw.o\"" 5818 echo " xemacs will be linked with \"scrollbar-msw.o\""
6100 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then 5842 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6101 echo " xemacs will be linked with \"dialog-msw.o\"" 5843 echo " xemacs will be linked with \"dialog-msw.o\""
6102 fi 5844 fi
6103 fi 5845 fi
6104 cat > conftest.$ac_ext <<EOF 5846 cat > conftest.$ac_ext <<EOF
6105 #line 6106 "configure" 5847 #line 5848 "configure"
6106 #include "confdefs.h" 5848 #include "confdefs.h"
6107 #include <fcntl.h> 5849 #include <fcntl.h>
6108 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; } 5850 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6109 EOF 5851 EOF
6110 if { (eval echo configure:6111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 5852 if { (eval echo configure:5853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
6111 then 5853 then
6112 { test "$extra_verbose" = "yes" && cat << \EOF 5854 { test "$extra_verbose" = "yes" && cat << \EOF
6113 Defining HAVE_MSG_SELECT 5855 Defining HAVE_MSG_SELECT
6114 EOF 5856 EOF
6115 cat >> confdefs.h <<\EOF 5857 cat >> confdefs.h <<\EOF
6116 #define HAVE_MSG_SELECT 1 5858 #define HAVE_MSG_SELECT 1
6117 EOF 5859 EOF
6118 } 5860 }
6119 5861
6120 else 5862 else
6121 conftest_rc="$?"
6122 echo "configure: failed program was:" >&5 5863 echo "configure: failed program was:" >&5
6123 cat conftest.$ac_ext >&5 5864 cat conftest.$ac_ext >&5
6124 fi 5865 fi
6125 rm -fr conftest* 5866 rm -fr conftest*
6126 const_is_losing=no 5867 const_is_losing=no
6133 fi 5874 fi
6134 fi 5875 fi
6135 5876
6136 5877
6137 5878
6138
6139 test -z "$window_system" && window_system="none" 5879 test -z "$window_system" && window_system="none"
6140 5880
6141 if test "$window_system" = "none"; then 5881 if test "$window_system" = "none"; then
6142 for feature in menubars scrollbars toolbars dialogs dragndrop 5882 for feature in menubars scrollbars toolbars dialogs dragndrop
6143 do 5883 do
6171 fi 5911 fi
6172 eval "with_${feature}=no" 5912 eval "with_${feature}=no"
6173 done 5913 done
6174 fi 5914 fi
6175 5915
6176 if test "$with_x11" = "yes"; then
6177 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
6178 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
6179 echo "configure:6180: checking for X11/extensions/shape.h" >&5
6180
6181 cat > conftest.$ac_ext <<EOF
6182 #line 6183 "configure"
6183 #include "confdefs.h"
6184 #include <X11/extensions/shape.h>
6185 EOF
6186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6187 { (eval echo configure:6188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6188 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6189 if test -z "$ac_err"; then
6190 rm -rf conftest*
6191 eval "ac_cv_header_$ac_safe=yes"
6192 else
6193 echo "$ac_err" >&5
6194 echo "configure: failed program was:" >&5
6195 cat conftest.$ac_ext >&5
6196 rm -rf conftest*
6197 eval "ac_cv_header_$ac_safe=no"
6198 fi
6199 rm -f conftest*
6200 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6201 echo "$ac_t""yes" 1>&6
6202
6203 { test "$extra_verbose" = "yes" && cat << \EOF
6204 Defining HAVE_BALLOON_HELP
6205 EOF
6206 cat >> confdefs.h <<\EOF
6207 #define HAVE_BALLOON_HELP 1
6208 EOF
6209 }
6210
6211 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
6212 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
6213 fi
6214 else
6215 echo "$ac_t""no" 1>&6
6216 fi
6217
6218 fi
6219
6220 bitmapdir= 5916 bitmapdir=
6221 5917
6222 case "$window_system" in 5918 case "$window_system" in
6223 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;; 5919 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
6224 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;; 5920 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
6229 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 5925 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6230 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 5926 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6231 esac 5927 esac
6232 5928
6233 echo "checking for session-management option" 1>&6 5929 echo "checking for session-management option" 1>&6
6234 echo "configure:6235: checking for session-management option" >&5; 5930 echo "configure:5931: checking for session-management option" >&5;
6235 if test "$with_session" != "no"; then 5931 if test "$with_session" != "no"; then
6236 { test "$extra_verbose" = "yes" && cat << \EOF 5932 { test "$extra_verbose" = "yes" && cat << \EOF
6237 Defining HAVE_SESSION 5933 Defining HAVE_SESSION
6238 EOF 5934 EOF
6239 cat >> confdefs.h <<\EOF 5935 cat >> confdefs.h <<\EOF
6244 fi 5940 fi
6245 5941
6246 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 5942 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6247 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 5943 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6248 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 5944 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6249 echo "configure:6250: checking for X11/Xauth.h" >&5 5945 echo "configure:5946: checking for X11/Xauth.h" >&5
6250 5946
6251 cat > conftest.$ac_ext <<EOF 5947 cat > conftest.$ac_ext <<EOF
6252 #line 6253 "configure" 5948 #line 5949 "configure"
6253 #include "confdefs.h" 5949 #include "confdefs.h"
6254 #include <X11/Xauth.h> 5950 #include <X11/Xauth.h>
6255 EOF 5951 EOF
6256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6257 { (eval echo configure:6258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5953 { (eval echo configure:5954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6258 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5954 ac_err=`grep -v '^ *+' conftest.out`
6259 if test -z "$ac_err"; then 5955 if test -z "$ac_err"; then
6260 rm -rf conftest* 5956 rm -rf conftest*
6261 eval "ac_cv_header_$ac_safe=yes" 5957 eval "ac_cv_header_$ac_safe=yes"
6262 else 5958 else
6263 echo "$ac_err" >&5 5959 echo "$ac_err" >&5
6275 with_xauth=no 5971 with_xauth=no
6276 fi 5972 fi
6277 } 5973 }
6278 test -z "$with_xauth" && { 5974 test -z "$with_xauth" && {
6279 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 5975 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6280 echo "configure:6281: checking for XauGetAuthByAddr in -lXau" >&5 5976 echo "configure:5977: checking for XauGetAuthByAddr in -lXau" >&5
6281 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 5977 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6282 5978
6283 xe_check_libs=" -lXau " 5979 xe_check_libs=" -lXau "
6284 cat > conftest.$ac_ext <<EOF 5980 cat > conftest.$ac_ext <<EOF
6285 #line 6286 "configure" 5981 #line 5982 "configure"
6286 #include "confdefs.h" 5982 #include "confdefs.h"
6287 /* Override any gcc2 internal prototype to avoid an error. */ 5983 /* Override any gcc2 internal prototype to avoid an error. */
6288 /* We use char because int might match the return type of a gcc2 5984 /* We use char because int might match the return type of a gcc2
6289 builtin and then its argument prototype would still apply. */ 5985 builtin and then its argument prototype would still apply. */
6290 char XauGetAuthByAddr(); 5986 char XauGetAuthByAddr();
6291 5987
6292 int main() { 5988 int main() {
6293 XauGetAuthByAddr() 5989 XauGetAuthByAddr()
6294 ; return 0; } 5990 ; return 0; }
6295 EOF 5991 EOF
6296 if { (eval echo configure:6297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5992 if { (eval echo configure:5993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6297 rm -rf conftest* 5993 rm -rf conftest*
6298 eval "ac_cv_lib_$ac_lib_var=yes" 5994 eval "ac_cv_lib_$ac_lib_var=yes"
6299 else 5995 else
6300 echo "configure: failed program was:" >&5 5996 echo "configure: failed program was:" >&5
6301 cat conftest.$ac_ext >&5 5997 cat conftest.$ac_ext >&5
6336 6032
6337 if test "$with_tooltalk" != "no" ; then 6033 if test "$with_tooltalk" != "no" ; then
6338 for dir in "" "Tt/" "desktop/" ; do 6034 for dir in "" "Tt/" "desktop/" ; do
6339 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 6035 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6340 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 6036 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6341 echo "configure:6342: checking for ${dir}tt_c.h" >&5 6037 echo "configure:6038: checking for ${dir}tt_c.h" >&5
6342 6038
6343 cat > conftest.$ac_ext <<EOF 6039 cat > conftest.$ac_ext <<EOF
6344 #line 6345 "configure" 6040 #line 6041 "configure"
6345 #include "confdefs.h" 6041 #include "confdefs.h"
6346 #include <${dir}tt_c.h> 6042 #include <${dir}tt_c.h>
6347 EOF 6043 EOF
6348 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6044 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6349 { (eval echo configure:6350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6045 { (eval echo configure:6046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6350 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6046 ac_err=`grep -v '^ *+' conftest.out`
6351 if test -z "$ac_err"; then 6047 if test -z "$ac_err"; then
6352 rm -rf conftest* 6048 rm -rf conftest*
6353 eval "ac_cv_header_$ac_safe=yes" 6049 eval "ac_cv_header_$ac_safe=yes"
6354 else 6050 else
6355 echo "$ac_err" >&5 6051 echo "$ac_err" >&5
6380 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 6076 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6381 6077
6382 xe_msg_checking="for tt_message_create in -ltt" 6078 xe_msg_checking="for tt_message_create in -ltt"
6383 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 6079 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6384 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6080 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6385 echo "configure:6386: checking "$xe_msg_checking"" >&5 6081 echo "configure:6082: checking "$xe_msg_checking"" >&5
6386 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 6082 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6387 6083
6388 xe_check_libs=" -ltt $extra_libs" 6084 xe_check_libs=" -ltt $extra_libs"
6389 cat > conftest.$ac_ext <<EOF 6085 cat > conftest.$ac_ext <<EOF
6390 #line 6391 "configure" 6086 #line 6087 "configure"
6391 #include "confdefs.h" 6087 #include "confdefs.h"
6392 /* Override any gcc2 internal prototype to avoid an error. */ 6088 /* Override any gcc2 internal prototype to avoid an error. */
6393 /* We use char because int might match the return type of a gcc2 6089 /* We use char because int might match the return type of a gcc2
6394 builtin and then its argument prototype would still apply. */ 6090 builtin and then its argument prototype would still apply. */
6395 char tt_message_create(); 6091 char tt_message_create();
6396 6092
6397 int main() { 6093 int main() {
6398 tt_message_create() 6094 tt_message_create()
6399 ; return 0; } 6095 ; return 0; }
6400 EOF 6096 EOF
6401 if { (eval echo configure:6402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6097 if { (eval echo configure:6098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6402 rm -rf conftest* 6098 rm -rf conftest*
6403 eval "ac_cv_lib_$ac_lib_var=yes" 6099 eval "ac_cv_lib_$ac_lib_var=yes"
6404 else 6100 else
6405 echo "configure: failed program was:" >&5 6101 echo "configure: failed program was:" >&5
6406 cat conftest.$ac_ext >&5 6102 cat conftest.$ac_ext >&5
6453 fi 6149 fi
6454 fi 6150 fi
6455 6151
6456 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 6152 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6457 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 6153 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6458 echo "configure:6459: checking for Dt/Dt.h" >&5 6154 echo "configure:6155: checking for Dt/Dt.h" >&5
6459 6155
6460 cat > conftest.$ac_ext <<EOF 6156 cat > conftest.$ac_ext <<EOF
6461 #line 6462 "configure" 6157 #line 6158 "configure"
6462 #include "confdefs.h" 6158 #include "confdefs.h"
6463 #include <Dt/Dt.h> 6159 #include <Dt/Dt.h>
6464 EOF 6160 EOF
6465 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6161 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6466 { (eval echo configure:6467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6162 { (eval echo configure:6163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6467 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6163 ac_err=`grep -v '^ *+' conftest.out`
6468 if test -z "$ac_err"; then 6164 if test -z "$ac_err"; then
6469 rm -rf conftest* 6165 rm -rf conftest*
6470 eval "ac_cv_header_$ac_safe=yes" 6166 eval "ac_cv_header_$ac_safe=yes"
6471 else 6167 else
6472 echo "$ac_err" >&5 6168 echo "$ac_err" >&5
6484 with_cde=no 6180 with_cde=no
6485 fi 6181 fi
6486 } 6182 }
6487 test -z "$with_cde" && { 6183 test -z "$with_cde" && {
6488 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 6184 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6489 echo "configure:6490: checking for DtDndDragStart in -lDtSvc" >&5 6185 echo "configure:6186: checking for DtDndDragStart in -lDtSvc" >&5
6490 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 6186 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6491 6187
6492 xe_check_libs=" -lDtSvc " 6188 xe_check_libs=" -lDtSvc "
6493 cat > conftest.$ac_ext <<EOF 6189 cat > conftest.$ac_ext <<EOF
6494 #line 6495 "configure" 6190 #line 6191 "configure"
6495 #include "confdefs.h" 6191 #include "confdefs.h"
6496 /* Override any gcc2 internal prototype to avoid an error. */ 6192 /* Override any gcc2 internal prototype to avoid an error. */
6497 /* We use char because int might match the return type of a gcc2 6193 /* We use char because int might match the return type of a gcc2
6498 builtin and then its argument prototype would still apply. */ 6194 builtin and then its argument prototype would still apply. */
6499 char DtDndDragStart(); 6195 char DtDndDragStart();
6500 6196
6501 int main() { 6197 int main() {
6502 DtDndDragStart() 6198 DtDndDragStart()
6503 ; return 0; } 6199 ; return 0; }
6504 EOF 6200 EOF
6505 if { (eval echo configure:6506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6201 if { (eval echo configure:6202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6506 rm -rf conftest* 6202 rm -rf conftest*
6507 eval "ac_cv_lib_$ac_lib_var=yes" 6203 eval "ac_cv_lib_$ac_lib_var=yes"
6508 else 6204 else
6509 echo "configure: failed program was:" >&5 6205 echo "configure: failed program was:" >&5
6510 cat conftest.$ac_ext >&5 6206 cat conftest.$ac_ext >&5
6569 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi 6265 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6570 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi 6266 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6571 fi 6267 fi
6572 6268
6573 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6 6269 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6574 echo "configure:6575: checking if drag and drop API is needed" >&5 6270 echo "configure:6271: checking if drag and drop API is needed" >&5
6575 if test "$with_dragndrop" != "no" ; then 6271 if test "$with_dragndrop" != "no" ; then
6576 if test -n "$dragndrop_proto" ; then 6272 if test -n "$dragndrop_proto" ; then
6577 with_dragndrop=yes 6273 with_dragndrop=yes
6578 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6 6274 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6579 { test "$extra_verbose" = "yes" && cat << \EOF 6275 { test "$extra_verbose" = "yes" && cat << \EOF
6590 echo "$ac_t""no" 1>&6 6286 echo "$ac_t""no" 1>&6
6591 fi 6287 fi
6592 fi 6288 fi
6593 6289
6594 echo "checking for LDAP" 1>&6 6290 echo "checking for LDAP" 1>&6
6595 echo "configure:6596: checking for LDAP" >&5 6291 echo "configure:6292: checking for LDAP" >&5
6596 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'` 6292 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6597 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6 6293 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6598 echo "configure:6599: checking for ldap.h" >&5 6294 echo "configure:6295: checking for ldap.h" >&5
6599 6295
6600 cat > conftest.$ac_ext <<EOF 6296 cat > conftest.$ac_ext <<EOF
6601 #line 6602 "configure" 6297 #line 6298 "configure"
6602 #include "confdefs.h" 6298 #include "confdefs.h"
6603 #include <ldap.h> 6299 #include <ldap.h>
6604 EOF 6300 EOF
6605 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6606 { (eval echo configure:6607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6302 { (eval echo configure:6303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6607 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6303 ac_err=`grep -v '^ *+' conftest.out`
6608 if test -z "$ac_err"; then 6304 if test -z "$ac_err"; then
6609 rm -rf conftest* 6305 rm -rf conftest*
6610 eval "ac_cv_header_$ac_safe=yes" 6306 eval "ac_cv_header_$ac_safe=yes"
6611 else 6307 else
6612 echo "$ac_err" >&5 6308 echo "$ac_err" >&5
6624 with_ldap=no 6320 with_ldap=no
6625 fi 6321 fi
6626 } 6322 }
6627 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'` 6323 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6628 echo $ac_n "checking for lber.h""... $ac_c" 1>&6 6324 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6629 echo "configure:6630: checking for lber.h" >&5 6325 echo "configure:6326: checking for lber.h" >&5
6630 6326
6631 cat > conftest.$ac_ext <<EOF 6327 cat > conftest.$ac_ext <<EOF
6632 #line 6633 "configure" 6328 #line 6329 "configure"
6633 #include "confdefs.h" 6329 #include "confdefs.h"
6634 #include <lber.h> 6330 #include <lber.h>
6635 EOF 6331 EOF
6636 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6637 { (eval echo configure:6638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6333 { (eval echo configure:6334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6638 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6334 ac_err=`grep -v '^ *+' conftest.out`
6639 if test -z "$ac_err"; then 6335 if test -z "$ac_err"; then
6640 rm -rf conftest* 6336 rm -rf conftest*
6641 eval "ac_cv_header_$ac_safe=yes" 6337 eval "ac_cv_header_$ac_safe=yes"
6642 else 6338 else
6643 echo "$ac_err" >&5 6339 echo "$ac_err" >&5
6654 echo "$ac_t""no" 1>&6 6350 echo "$ac_t""no" 1>&6
6655 with_ldap=no 6351 with_ldap=no
6656 fi 6352 fi
6657 } 6353 }
6658 if test "$with_ldap" != "no"; then 6354 if test "$with_ldap" != "no"; then
6659 6355 test -z "$with_umich_ldap" && {
6660 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
6661 echo "configure:6662: checking for ldap_search in -lldap" >&5
6662 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
6663
6664 xe_check_libs=" -lldap "
6665 cat > conftest.$ac_ext <<EOF
6666 #line 6667 "configure"
6667 #include "confdefs.h"
6668 /* Override any gcc2 internal prototype to avoid an error. */
6669 /* We use char because int might match the return type of a gcc2
6670 builtin and then its argument prototype would still apply. */
6671 char ldap_search();
6672
6673 int main() {
6674 ldap_search()
6675 ; return 0; }
6676 EOF
6677 if { (eval echo configure:6678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6678 rm -rf conftest*
6679 eval "ac_cv_lib_$ac_lib_var=yes"
6680 else
6681 echo "configure: failed program was:" >&5
6682 cat conftest.$ac_ext >&5
6683 rm -rf conftest*
6684 eval "ac_cv_lib_$ac_lib_var=no"
6685 fi
6686 rm -f conftest*
6687 xe_check_libs=""
6688
6689 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6690 echo "$ac_t""yes" 1>&6
6691 with_ldap_nolber=yes
6692 else
6693 echo "$ac_t""no" 1>&6
6694 with_ldap_nolber=no
6695 fi
6696
6697
6698 test "$with_ldap_nolber" = "no" && {
6699 xe_msg_checking="for ldap_open in -lldap" 6356 xe_msg_checking="for ldap_open in -lldap"
6700 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber" 6357 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6701 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6358 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6702 echo "configure:6703: checking "$xe_msg_checking"" >&5 6359 echo "configure:6360: checking "$xe_msg_checking"" >&5
6703 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 6360 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6704 6361
6705 xe_check_libs=" -lldap -llber" 6362 xe_check_libs=" -lldap -llber"
6706 cat > conftest.$ac_ext <<EOF 6363 cat > conftest.$ac_ext <<EOF
6707 #line 6708 "configure" 6364 #line 6365 "configure"
6708 #include "confdefs.h" 6365 #include "confdefs.h"
6709 /* Override any gcc2 internal prototype to avoid an error. */ 6366 /* Override any gcc2 internal prototype to avoid an error. */
6710 /* We use char because int might match the return type of a gcc2 6367 /* We use char because int might match the return type of a gcc2
6711 builtin and then its argument prototype would still apply. */ 6368 builtin and then its argument prototype would still apply. */
6712 char ldap_open(); 6369 char ldap_open();
6713 6370
6714 int main() { 6371 int main() {
6715 ldap_open() 6372 ldap_open()
6716 ; return 0; } 6373 ; return 0; }
6717 EOF 6374 EOF
6718 if { (eval echo configure:6719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6375 if { (eval echo configure:6376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6719 rm -rf conftest* 6376 rm -rf conftest*
6720 eval "ac_cv_lib_$ac_lib_var=yes" 6377 eval "ac_cv_lib_$ac_lib_var=yes"
6721 else 6378 else
6722 echo "configure: failed program was:" >&5 6379 echo "configure: failed program was:" >&5
6723 cat conftest.$ac_ext >&5 6380 cat conftest.$ac_ext >&5
6727 rm -f conftest* 6384 rm -f conftest*
6728 xe_check_libs="" 6385 xe_check_libs=""
6729 6386
6730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 6387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6731 echo "$ac_t""yes" 1>&6 6388 echo "$ac_t""yes" 1>&6
6732 with_ldap_lber=yes 6389 with_umich_ldap=yes
6733 else 6390 else
6734 echo "$ac_t""no" 1>&6 6391 echo "$ac_t""no" 1>&6
6735 with_ldap_lber=no 6392 with_umich_ldap=no
6736 fi 6393 fi
6737 6394
6738 } 6395 }
6739 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && { 6396 test "$with_umich_ldap" = "no" && {
6740 xe_msg_checking="for ldap_open in -lldap" 6397 echo $ac_n "checking for ldap_set_option in -lldap10""... $ac_c" 1>&6
6741 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb" 6398 echo "configure:6399: checking for ldap_set_option in -lldap10" >&5
6742 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6399 ac_lib_var=`echo ldap10'_'ldap_set_option | sed 'y%./+-%__p_%'`
6743 echo "configure:6744: checking "$xe_msg_checking"" >&5 6400
6744 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 6401 xe_check_libs=" -lldap10 "
6745 6402 cat > conftest.$ac_ext <<EOF
6746 xe_check_libs=" -lldap -llber -lkrb" 6403 #line 6404 "configure"
6747 cat > conftest.$ac_ext <<EOF
6748 #line 6749 "configure"
6749 #include "confdefs.h" 6404 #include "confdefs.h"
6750 /* Override any gcc2 internal prototype to avoid an error. */ 6405 /* Override any gcc2 internal prototype to avoid an error. */
6751 /* We use char because int might match the return type of a gcc2 6406 /* We use char because int might match the return type of a gcc2
6752 builtin and then its argument prototype would still apply. */ 6407 builtin and then its argument prototype would still apply. */
6753 char ldap_open(); 6408 char ldap_set_option();
6754 6409
6755 int main() { 6410 int main() {
6756 ldap_open() 6411 ldap_set_option()
6757 ; return 0; } 6412 ; return 0; }
6758 EOF 6413 EOF
6759 if { (eval echo configure:6760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6414 if { (eval echo configure:6415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6760 rm -rf conftest* 6415 rm -rf conftest*
6761 eval "ac_cv_lib_$ac_lib_var=yes" 6416 eval "ac_cv_lib_$ac_lib_var=yes"
6762 else 6417 else
6763 echo "configure: failed program was:" >&5 6418 echo "configure: failed program was:" >&5
6764 cat conftest.$ac_ext >&5 6419 cat conftest.$ac_ext >&5
6768 rm -f conftest* 6423 rm -f conftest*
6769 xe_check_libs="" 6424 xe_check_libs=""
6770 6425
6771 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 6426 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6772 echo "$ac_t""yes" 1>&6 6427 echo "$ac_t""yes" 1>&6
6773 with_ldap_krb=yes 6428 with_ns_ldap=yes
6774 else 6429 else
6775 echo "$ac_t""no" 1>&6 6430 echo "$ac_t""no" 1>&6
6776 with_ldap_krb=no 6431 with_ns_ldap=no
6777 fi 6432 fi
6778 6433
6779 } 6434 }
6780 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && { 6435 test -z "$with_ldap" -a \( "$with_umich_ldap" = "yes" -o "$with_ns_ldap" = "yes" \) && with_ldap=yes
6781 xe_msg_checking="for ldap_open in -lldap"
6782 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
6783 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6784 echo "configure:6785: checking "$xe_msg_checking"" >&5
6785 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6786
6787 xe_check_libs=" -lldap -llber -lkrb -ldes"
6788 cat > conftest.$ac_ext <<EOF
6789 #line 6790 "configure"
6790 #include "confdefs.h"
6791 /* Override any gcc2 internal prototype to avoid an error. */
6792 /* We use char because int might match the return type of a gcc2
6793 builtin and then its argument prototype would still apply. */
6794 char ldap_open();
6795
6796 int main() {
6797 ldap_open()
6798 ; return 0; }
6799 EOF
6800 if { (eval echo configure:6801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6801 rm -rf conftest*
6802 eval "ac_cv_lib_$ac_lib_var=yes"
6803 else
6804 echo "configure: failed program was:" >&5
6805 cat conftest.$ac_ext >&5
6806 rm -rf conftest*
6807 eval "ac_cv_lib_$ac_lib_var=no"
6808 fi
6809 rm -f conftest*
6810 xe_check_libs=""
6811
6812 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6813 echo "$ac_t""yes" 1>&6
6814 with_ldap_krbdes=yes
6815 else
6816 echo "$ac_t""no" 1>&6
6817 with_ldap_krbdes=no
6818 fi
6819
6820 }
6821 test -z "$with_ldap" -a \( "$with_ldap_lber" = "yes" -o "$with_ldap_nolber" = "yes" -o "$with_ldap_krb" = "yes" -o "$with_ldap_krbdes" = "yes" \) && with_ldap=yes
6822 fi 6436 fi
6823 if test "$with_ldap" = "yes"; then 6437 if test "$with_ldap" = "yes"; then
6824 { test "$extra_verbose" = "yes" && cat << \EOF 6438 { test "$extra_verbose" = "yes" && cat << \EOF
6825 Defining HAVE_LDAP 6439 Defining HAVE_LDAP
6826 EOF 6440 EOF
6830 } 6444 }
6831 6445
6832 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then 6446 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
6833 echo " xemacs will be linked with \"eldap.o\"" 6447 echo " xemacs will be linked with \"eldap.o\""
6834 fi 6448 fi
6835 if test "$with_ldap_nolber" = "yes" ; then 6449 if test "$with_umich_ldap" = "yes" ; then
6836 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi 6450 { test "$extra_verbose" = "yes" && cat << \EOF
6837 else 6451 Defining HAVE_UMICH_LDAP
6838 if test "$with_ldap_krb" = "yes" ; then 6452 EOF
6839 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi 6453 cat >> confdefs.h <<\EOF
6840 fi 6454 #define HAVE_UMICH_LDAP 1
6841 if test "$with_ldap_krbdes" = "yes" ; then 6455 EOF
6842 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi 6456 }
6843 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi 6457
6844 fi
6845 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi 6458 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
6846 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi 6459 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6460 elif test "$with_ldap" = "yes" -a "$with_ns_ldap" = "yes" ; then
6461 { test "$extra_verbose" = "yes" && cat << \EOF
6462 Defining HAVE_NS_LDAP
6463 EOF
6464 cat >> confdefs.h <<\EOF
6465 #define HAVE_NS_LDAP 1
6466 EOF
6467 }
6468
6469 LIBS="-lldap10 $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap10\" to \$LIBS"; fi
6470 elif test "$with_ldap" = "yes" ; then
6471 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6847 fi 6472 fi
6848 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
6849 do
6850 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6851 echo "configure:6852: checking for $ac_func" >&5
6852
6853 cat > conftest.$ac_ext <<EOF
6854 #line 6855 "configure"
6855 #include "confdefs.h"
6856 /* System header to define __stub macros and hopefully few prototypes,
6857 which can conflict with char $ac_func(); below. */
6858 #include <assert.h>
6859 /* Override any gcc2 internal prototype to avoid an error. */
6860 /* We use char because int might match the return type of a gcc2
6861 builtin and then its argument prototype would still apply. */
6862 char $ac_func();
6863
6864 int main() {
6865
6866 /* The GNU C library defines this for functions which it implements
6867 to always fail with ENOSYS. Some functions are actually named
6868 something starting with __ and the normal name is an alias. */
6869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6870 choke me
6871 #else
6872 $ac_func();
6873 #endif
6874
6875 ; return 0; }
6876 EOF
6877 if { (eval echo configure:6878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6878 rm -rf conftest*
6879 eval "ac_cv_func_$ac_func=yes"
6880 else
6881 echo "configure: failed program was:" >&5
6882 cat conftest.$ac_ext >&5
6883 rm -rf conftest*
6884 eval "ac_cv_func_$ac_func=no"
6885 fi
6886 rm -f conftest*
6887
6888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6889 echo "$ac_t""yes" 1>&6
6890 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6891 { test "$extra_verbose" = "yes" && cat << EOF
6892 Defining $ac_tr_func
6893 EOF
6894 cat >> confdefs.h <<EOF
6895 #define $ac_tr_func 1
6896 EOF
6897 }
6898
6899 else
6900 echo "$ac_t""no" 1>&6
6901 fi
6902 done
6903
6904 fi 6473 fi
6905 6474
6906 6475
6907 if test "$window_system" != "none"; then 6476 if test "$window_system" != "none"; then
6908 echo "checking for graphics libraries" 1>&6 6477 echo "checking for graphics libraries" 1>&6
6909 echo "configure:6910: checking for graphics libraries" >&5 6478 echo "configure:6479: checking for graphics libraries" >&5
6910 6479
6911 6480 if test -z "$with_xpm"; then
6912 echo $ac_n "checking for __T_9__nothrow in -lCsup""... $ac_c" 1>&6
6913 echo "configure:6914: checking for __T_9__nothrow in -lCsup" >&5
6914 ac_lib_var=`echo Csup'_'__T_9__nothrow | sed 'y%./+-%__p_%'`
6915
6916 xe_check_libs=" -lCsup "
6917 cat > conftest.$ac_ext <<EOF
6918 #line 6919 "configure"
6919 #include "confdefs.h"
6920 /* Override any gcc2 internal prototype to avoid an error. */
6921 /* We use char because int might match the return type of a gcc2
6922 builtin and then its argument prototype would still apply. */
6923 char __T_9__nothrow();
6924
6925 int main() {
6926 __T_9__nothrow()
6927 ; return 0; }
6928 EOF
6929 if { (eval echo configure:6930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6930 rm -rf conftest*
6931 eval "ac_cv_lib_$ac_lib_var=yes"
6932 else
6933 echo "configure: failed program was:" >&5
6934 cat conftest.$ac_ext >&5
6935 rm -rf conftest*
6936 eval "ac_cv_lib_$ac_lib_var=no"
6937 fi
6938 rm -f conftest*
6939 xe_check_libs=""
6940
6941 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6942 echo "$ac_t""yes" 1>&6
6943 LIBS="-lCsup $LIBS"
6944 else
6945 echo "$ac_t""no" 1>&6
6946 fi
6947
6948
6949
6950 xpm_problem=""
6951 if test -z "$with_xpm"; then
6952 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 6481 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6953 echo "configure:6954: checking for Xpm - no older than 3.4f" >&5 6482 echo "configure:6483: checking for Xpm - no older than 3.4f" >&5
6954 xe_check_libs=-lXpm 6483 xe_check_libs=-lXpm
6955 cat > conftest.$ac_ext <<EOF 6484 cat > conftest.$ac_ext <<EOF
6956 #line 6957 "configure" 6485 #line 6486 "configure"
6957 #include "confdefs.h" 6486 #include "confdefs.h"
6958 #include <X11/xpm.h> 6487 #include <X11/xpm.h>
6959 int main(int c, char **v) { 6488 int main(int c, char **v) {
6960 return c == 1 ? 0 : 6489 return c == 1 ? 0 :
6961 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 6490 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6962 XpmIncludeVersion < 30406 ? 2 : 0 ;} 6491 XpmIncludeVersion < 30406 ? 2 : 0 ;}
6963 EOF 6492 EOF
6964 if { (eval echo configure:6965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6493 if { (eval echo configure:6494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
6965 then 6494 then
6966 ./conftest dummy_arg; xpm_status=$?; 6495 ./conftest dummy_arg; xpm_status=$?;
6967 if test "$xpm_status" = "0"; then 6496 if test "$?" = "0"; then
6968 with_xpm=yes; 6497 with_xpm=yes;
6969 else 6498 else
6970 with_xpm=no; 6499 with_xpm=no;
6971 if test "$xpm_status" = "1"; then 6500 if test "$?" = "1"; then
6972 xpm_problem="Xpm library version and header file version don't match!" 6501 xpm_problem="Xpm library version and header file version don't match!"
6973 elif test "$xpm_status" = "2"; then 6502 elif test "$?" = "2"; then
6974 xpm_problem="Xpm library version is too old!" 6503 xpm_problem="Xpm library version is too old!"
6975 else 6504 else
6976 xpm_problem="Internal xpm detection logic error!" 6505 xpm_problem="Internal xpm detection logic error!"
6977 fi 6506 fi
6978 echo " 6507 echo "
6979 *** WARNING *** $xpm_problem 6508 *** WARNING *** $problem
6980 I'm not touching that with a 10-foot pole! 6509 I'm not touching that with a 10-foot pole!
6981 If you really want to use the installed version of Xpm, rerun 6510 If you really want to use the installed version of Xpm, rerun
6982 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!" 6511 configure --with-xpm=yes, but don't blame me if XEmacs crashes!"
6983 fi 6512 fi
6984 else 6513 else
6985 conftest_rc="$?"
6986 echo "configure: failed program was:" >&5 6514 echo "configure: failed program was:" >&5
6987 cat conftest.$ac_ext >&5 6515 cat conftest.$ac_ext >&5
6988 rm -fr conftest* 6516 rm -fr conftest*
6989 with_xpm=no 6517 with_xpm=no
6990 fi 6518 fi
7001 EOF 6529 EOF
7002 } 6530 }
7003 6531
7004 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 6532 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
7005 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6 6533 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
7006 echo "configure:7007: checking for \"FOR_MSW\" xpm" >&5 6534 echo "configure:6535: checking for \"FOR_MSW\" xpm" >&5
7007 xe_check_libs=-lXpm 6535 xe_check_libs=-lXpm
7008 cat > conftest.$ac_ext <<EOF 6536 cat > conftest.$ac_ext <<EOF
7009 #line 7010 "configure" 6537 #line 6538 "configure"
7010 #include "confdefs.h" 6538 #include "confdefs.h"
7011 6539
7012 int main() { 6540 int main() {
7013 XpmCreatePixmapFromData() 6541 XpmCreatePixmapFromData()
7014 ; return 0; } 6542 ; return 0; }
7015 EOF 6543 EOF
7016 if { (eval echo configure:7017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6544 if { (eval echo configure:6545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7017 rm -rf conftest* 6545 rm -rf conftest*
7018 xpm_for_msw=no 6546 xpm_for_msw=no
7019 else 6547 else
7020 echo "configure: failed program was:" >&5 6548 echo "configure: failed program was:" >&5
7021 cat conftest.$ac_ext >&5 6549 cat conftest.$ac_ext >&5
7035 } 6563 }
7036 6564
7037 fi 6565 fi
7038 fi 6566 fi
7039 6567
7040 if test "$with_gif" != "no"; then
7041 with_gif="yes"
7042 { test "$extra_verbose" = "yes" && cat << \EOF
7043 Defining HAVE_GIF
7044 EOF
7045 cat >> confdefs.h <<\EOF
7046 #define HAVE_GIF 1
7047 EOF
7048 }
7049
7050 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
7051 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
7052 fi
7053 fi
7054
7055 if test "$with_png $with_tiff" != "no no"; then 6568 if test "$with_png $with_tiff" != "no no"; then
7056 6569
7057 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6 6570 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
7058 echo "configure:7059: checking for inflate in -lc" >&5 6571 echo "configure:6572: checking for inflate in -lc" >&5
7059 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'` 6572 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
7060 6573
7061 xe_check_libs=" -lc " 6574 xe_check_libs=" -lc "
7062 cat > conftest.$ac_ext <<EOF 6575 cat > conftest.$ac_ext <<EOF
7063 #line 7064 "configure" 6576 #line 6577 "configure"
7064 #include "confdefs.h" 6577 #include "confdefs.h"
7065 /* Override any gcc2 internal prototype to avoid an error. */ 6578 /* Override any gcc2 internal prototype to avoid an error. */
7066 /* We use char because int might match the return type of a gcc2 6579 /* We use char because int might match the return type of a gcc2
7067 builtin and then its argument prototype would still apply. */ 6580 builtin and then its argument prototype would still apply. */
7068 char inflate(); 6581 char inflate();
7069 6582
7070 int main() { 6583 int main() {
7071 inflate() 6584 inflate()
7072 ; return 0; } 6585 ; return 0; }
7073 EOF 6586 EOF
7074 if { (eval echo configure:7075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6587 if { (eval echo configure:6588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7075 rm -rf conftest* 6588 rm -rf conftest*
7076 eval "ac_cv_lib_$ac_lib_var=yes" 6589 eval "ac_cv_lib_$ac_lib_var=yes"
7077 else 6590 else
7078 echo "configure: failed program was:" >&5 6591 echo "configure: failed program was:" >&5
7079 cat conftest.$ac_ext >&5 6592 cat conftest.$ac_ext >&5
7088 : 6601 :
7089 else 6602 else
7090 echo "$ac_t""no" 1>&6 6603 echo "$ac_t""no" 1>&6
7091 6604
7092 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 6605 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
7093 echo "configure:7094: checking for inflate in -lz" >&5 6606 echo "configure:6607: checking for inflate in -lz" >&5
7094 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` 6607 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
7095 6608
7096 xe_check_libs=" -lz " 6609 xe_check_libs=" -lz "
7097 cat > conftest.$ac_ext <<EOF 6610 cat > conftest.$ac_ext <<EOF
7098 #line 7099 "configure" 6611 #line 6612 "configure"
7099 #include "confdefs.h" 6612 #include "confdefs.h"
7100 /* Override any gcc2 internal prototype to avoid an error. */ 6613 /* Override any gcc2 internal prototype to avoid an error. */
7101 /* We use char because int might match the return type of a gcc2 6614 /* We use char because int might match the return type of a gcc2
7102 builtin and then its argument prototype would still apply. */ 6615 builtin and then its argument prototype would still apply. */
7103 char inflate(); 6616 char inflate();
7104 6617
7105 int main() { 6618 int main() {
7106 inflate() 6619 inflate()
7107 ; return 0; } 6620 ; return 0; }
7108 EOF 6621 EOF
7109 if { (eval echo configure:7110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6622 if { (eval echo configure:6623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7110 rm -rf conftest* 6623 rm -rf conftest*
7111 eval "ac_cv_lib_$ac_lib_var=yes" 6624 eval "ac_cv_lib_$ac_lib_var=yes"
7112 else 6625 else
7113 echo "configure: failed program was:" >&5 6626 echo "configure: failed program was:" >&5
7114 cat conftest.$ac_ext >&5 6627 cat conftest.$ac_ext >&5
7123 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi 6636 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7124 else 6637 else
7125 echo "$ac_t""no" 1>&6 6638 echo "$ac_t""no" 1>&6
7126 6639
7127 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6 6640 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7128 echo "configure:7129: checking for inflate in -lgz" >&5 6641 echo "configure:6642: checking for inflate in -lgz" >&5
7129 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'` 6642 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7130 6643
7131 xe_check_libs=" -lgz " 6644 xe_check_libs=" -lgz "
7132 cat > conftest.$ac_ext <<EOF 6645 cat > conftest.$ac_ext <<EOF
7133 #line 7134 "configure" 6646 #line 6647 "configure"
7134 #include "confdefs.h" 6647 #include "confdefs.h"
7135 /* Override any gcc2 internal prototype to avoid an error. */ 6648 /* Override any gcc2 internal prototype to avoid an error. */
7136 /* We use char because int might match the return type of a gcc2 6649 /* We use char because int might match the return type of a gcc2
7137 builtin and then its argument prototype would still apply. */ 6650 builtin and then its argument prototype would still apply. */
7138 char inflate(); 6651 char inflate();
7139 6652
7140 int main() { 6653 int main() {
7141 inflate() 6654 inflate()
7142 ; return 0; } 6655 ; return 0; }
7143 EOF 6656 EOF
7144 if { (eval echo configure:7145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6657 if { (eval echo configure:6658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7145 rm -rf conftest* 6658 rm -rf conftest*
7146 eval "ac_cv_lib_$ac_lib_var=yes" 6659 eval "ac_cv_lib_$ac_lib_var=yes"
7147 else 6660 else
7148 echo "configure: failed program was:" >&5 6661 echo "configure: failed program was:" >&5
7149 cat conftest.$ac_ext >&5 6662 cat conftest.$ac_ext >&5
7167 fi 6680 fi
7168 6681
7169 6682
7170 fi 6683 fi
7171 6684
7172 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 6685 echo $ac_n "checking for gifreader""... $ac_c" 1>&6
7173 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 6686 echo "configure:6687: checking for gifreader" >&5
7174 echo "configure:7175: checking for jpeglib.h" >&5 6687 test -z "$with_gif" && { ac_safe=`echo "gifrlib.h" | sed 'y%./+-%__p_%'`
7175 6688 echo $ac_n "checking for gifrlib.h""... $ac_c" 1>&6
7176 cat > conftest.$ac_ext <<EOF 6689 echo "configure:6690: checking for gifrlib.h" >&5
7177 #line 7178 "configure" 6690
7178 #include "confdefs.h" 6691 cat > conftest.$ac_ext <<EOF
7179 #include <jpeglib.h> 6692 #line 6693 "configure"
6693 #include "confdefs.h"
6694 #include <gifrlib.h>
7180 EOF 6695 EOF
7181 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7182 { (eval echo configure:7183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6697 { (eval echo configure:6698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7183 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6698 ac_err=`grep -v '^ *+' conftest.out`
7184 if test -z "$ac_err"; then 6699 if test -z "$ac_err"; then
7185 rm -rf conftest* 6700 rm -rf conftest*
7186 eval "ac_cv_header_$ac_safe=yes" 6701 eval "ac_cv_header_$ac_safe=yes"
7187 else 6702 else
7188 echo "$ac_err" >&5 6703 echo "$ac_err" >&5
7195 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 6710 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7196 echo "$ac_t""yes" 1>&6 6711 echo "$ac_t""yes" 1>&6
7197 : 6712 :
7198 else 6713 else
7199 echo "$ac_t""no" 1>&6 6714 echo "$ac_t""no" 1>&6
6715 with_gif=no
6716 fi
6717 }
6718 test -z "$with_gif" && {
6719 echo $ac_n "checking for GetGifError in -lgifreader""... $ac_c" 1>&6
6720 echo "configure:6721: checking for GetGifError in -lgifreader" >&5
6721 ac_lib_var=`echo gifreader'_'GetGifError | sed 'y%./+-%__p_%'`
6722
6723 xe_check_libs=" -lgifreader "
6724 cat > conftest.$ac_ext <<EOF
6725 #line 6726 "configure"
6726 #include "confdefs.h"
6727 /* Override any gcc2 internal prototype to avoid an error. */
6728 /* We use char because int might match the return type of a gcc2
6729 builtin and then its argument prototype would still apply. */
6730 char GetGifError();
6731
6732 int main() {
6733 GetGifError()
6734 ; return 0; }
6735 EOF
6736 if { (eval echo configure:6737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6737 rm -rf conftest*
6738 eval "ac_cv_lib_$ac_lib_var=yes"
6739 else
6740 echo "configure: failed program was:" >&5
6741 cat conftest.$ac_ext >&5
6742 rm -rf conftest*
6743 eval "ac_cv_lib_$ac_lib_var=no"
6744 fi
6745 rm -f conftest*
6746 xe_check_libs=""
6747
6748 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6749 echo "$ac_t""yes" 1>&6
6750 :
6751 else
6752 echo "$ac_t""no" 1>&6
6753 with_gif=no
6754 fi
6755
6756 }
6757 test -z "$with_gif" && with_gif=yes
6758 if test "$with_gif" = "yes"; then
6759 { test "$extra_verbose" = "yes" && cat << \EOF
6760 Defining HAVE_GIF
6761 EOF
6762 cat >> confdefs.h <<\EOF
6763 #define HAVE_GIF 1
6764 EOF
6765 }
6766
6767 libs_x="-lgifreader $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgifreader\" to \$libs_x"; fi
6768 fi
6769
6770 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
6771 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
6772 echo "configure:6773: checking for jpeglib.h" >&5
6773
6774 cat > conftest.$ac_ext <<EOF
6775 #line 6776 "configure"
6776 #include "confdefs.h"
6777 #include <jpeglib.h>
6778 EOF
6779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6780 { (eval echo configure:6781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6781 ac_err=`grep -v '^ *+' conftest.out`
6782 if test -z "$ac_err"; then
6783 rm -rf conftest*
6784 eval "ac_cv_header_$ac_safe=yes"
6785 else
6786 echo "$ac_err" >&5
6787 echo "configure: failed program was:" >&5
6788 cat conftest.$ac_ext >&5
6789 rm -rf conftest*
6790 eval "ac_cv_header_$ac_safe=no"
6791 fi
6792 rm -f conftest*
6793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6794 echo "$ac_t""yes" 1>&6
6795 :
6796 else
6797 echo "$ac_t""no" 1>&6
7200 with_jpeg=no 6798 with_jpeg=no
7201 fi 6799 fi
7202 } 6800 }
7203 test -z "$with_jpeg" && { 6801 test -z "$with_jpeg" && {
7204 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 6802 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7205 echo "configure:7206: checking for jpeg_destroy_decompress in -ljpeg" >&5 6803 echo "configure:6804: checking for jpeg_destroy_decompress in -ljpeg" >&5
7206 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 6804 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7207 6805
7208 xe_check_libs=" -ljpeg " 6806 xe_check_libs=" -ljpeg "
7209 cat > conftest.$ac_ext <<EOF 6807 cat > conftest.$ac_ext <<EOF
7210 #line 7211 "configure" 6808 #line 6809 "configure"
7211 #include "confdefs.h" 6809 #include "confdefs.h"
7212 /* Override any gcc2 internal prototype to avoid an error. */ 6810 /* Override any gcc2 internal prototype to avoid an error. */
7213 /* We use char because int might match the return type of a gcc2 6811 /* We use char because int might match the return type of a gcc2
7214 builtin and then its argument prototype would still apply. */ 6812 builtin and then its argument prototype would still apply. */
7215 char jpeg_destroy_decompress(); 6813 char jpeg_destroy_decompress();
7216 6814
7217 int main() { 6815 int main() {
7218 jpeg_destroy_decompress() 6816 jpeg_destroy_decompress()
7219 ; return 0; } 6817 ; return 0; }
7220 EOF 6818 EOF
7221 if { (eval echo configure:7222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6819 if { (eval echo configure:6820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7222 rm -rf conftest* 6820 rm -rf conftest*
7223 eval "ac_cv_lib_$ac_lib_var=yes" 6821 eval "ac_cv_lib_$ac_lib_var=yes"
7224 else 6822 else
7225 echo "configure: failed program was:" >&5 6823 echo "configure: failed program was:" >&5
7226 cat conftest.$ac_ext >&5 6824 cat conftest.$ac_ext >&5
7250 } 6848 }
7251 6849
7252 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 6850 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7253 fi 6851 fi
7254 6852
7255 png_problem="" 6853 if test -z "$with_png"; then
6854 echo $ac_n "checking for png.h - no older than 0.96""... $ac_c" 1>&6
6855 echo "configure:6856: checking for png.h - no older than 0.96" >&5
6856 cat > conftest.$ac_ext <<EOF
6857 #line 6858 "configure"
6858 #include "confdefs.h"
6859 #include <png.h>
6860 #if PNG_LIBPNG_VER >= 96
6861 yes
6862 #endif
6863
6864 EOF
6865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6866 egrep "yes" >/dev/null 2>&1; then
6867 rm -rf conftest*
6868 echo "$ac_t""yes" 1>&6
6869 else
6870 rm -rf conftest*
6871 echo "$ac_t""no" 1>&6; with_png=no
6872 fi
6873 rm -f conftest*
6874
6875 fi
7256 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 6876 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7257 echo "configure:7258: checking for pow" >&5 6877 echo "configure:6878: checking for pow" >&5
7258 6878
7259 cat > conftest.$ac_ext <<EOF 6879 cat > conftest.$ac_ext <<EOF
7260 #line 7261 "configure" 6880 #line 6881 "configure"
7261 #include "confdefs.h" 6881 #include "confdefs.h"
7262 /* System header to define __stub macros and hopefully few prototypes, 6882 /* System header to define __stub macros and hopefully few prototypes,
7263 which can conflict with char pow(); below. */ 6883 which can conflict with char pow(); below. */
7264 #include <assert.h> 6884 #include <assert.h>
7265 /* Override any gcc2 internal prototype to avoid an error. */ 6885 /* Override any gcc2 internal prototype to avoid an error. */
7278 pow(); 6898 pow();
7279 #endif 6899 #endif
7280 6900
7281 ; return 0; } 6901 ; return 0; }
7282 EOF 6902 EOF
7283 if { (eval echo configure:7284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6903 if { (eval echo configure:6904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7284 rm -rf conftest* 6904 rm -rf conftest*
7285 eval "ac_cv_func_pow=yes" 6905 eval "ac_cv_func_pow=yes"
7286 else 6906 else
7287 echo "configure: failed program was:" >&5 6907 echo "configure: failed program was:" >&5
7288 cat conftest.$ac_ext >&5 6908 cat conftest.$ac_ext >&5
7297 else 6917 else
7298 echo "$ac_t""no" 1>&6 6918 echo "$ac_t""no" 1>&6
7299 with_png=no 6919 with_png=no
7300 fi 6920 fi
7301 } 6921 }
7302 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7303 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7304 echo "configure:7305: checking for png.h" >&5
7305
7306 cat > conftest.$ac_ext <<EOF
7307 #line 7308 "configure"
7308 #include "confdefs.h"
7309 #include <png.h>
7310 EOF
7311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7312 { (eval echo configure:7313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7314 if test -z "$ac_err"; then
7315 rm -rf conftest*
7316 eval "ac_cv_header_$ac_safe=yes"
7317 else
7318 echo "$ac_err" >&5
7319 echo "configure: failed program was:" >&5
7320 cat conftest.$ac_ext >&5
7321 rm -rf conftest*
7322 eval "ac_cv_header_$ac_safe=no"
7323 fi
7324 rm -f conftest*
7325 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7326 echo "$ac_t""yes" 1>&6
7327 :
7328 else
7329 echo "$ac_t""no" 1>&6
7330 with_png=no
7331 fi
7332 }
7333 test -z "$with_png" && { 6922 test -z "$with_png" && {
7334 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6 6923 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7335 echo "configure:7336: checking for png_read_image in -lpng" >&5 6924 echo "configure:6925: checking for png_read_image in -lpng" >&5
7336 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 6925 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7337 6926
7338 xe_check_libs=" -lpng " 6927 xe_check_libs=" -lpng "
7339 cat > conftest.$ac_ext <<EOF 6928 cat > conftest.$ac_ext <<EOF
7340 #line 7341 "configure" 6929 #line 6930 "configure"
7341 #include "confdefs.h" 6930 #include "confdefs.h"
7342 /* Override any gcc2 internal prototype to avoid an error. */ 6931 /* Override any gcc2 internal prototype to avoid an error. */
7343 /* We use char because int might match the return type of a gcc2 6932 /* We use char because int might match the return type of a gcc2
7344 builtin and then its argument prototype would still apply. */ 6933 builtin and then its argument prototype would still apply. */
7345 char png_read_image(); 6934 char png_read_image();
7346 6935
7347 int main() { 6936 int main() {
7348 png_read_image() 6937 png_read_image()
7349 ; return 0; } 6938 ; return 0; }
7350 EOF 6939 EOF
7351 if { (eval echo configure:7352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6940 if { (eval echo configure:6941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7352 rm -rf conftest* 6941 rm -rf conftest*
7353 eval "ac_cv_lib_$ac_lib_var=yes" 6942 eval "ac_cv_lib_$ac_lib_var=yes"
7354 else 6943 else
7355 echo "configure: failed program was:" >&5 6944 echo "configure: failed program was:" >&5
7356 cat conftest.$ac_ext >&5 6945 cat conftest.$ac_ext >&5
7367 echo "$ac_t""no" 1>&6 6956 echo "$ac_t""no" 1>&6
7368 with_png=no 6957 with_png=no
7369 fi 6958 fi
7370 6959
7371 } 6960 }
7372 if test -z "$with_png"; then 6961 test -z "$with_png" && with_png=yes
7373 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
7374 echo "configure:7375: checking for workable png version information" >&5
7375 xe_check_libs="-lpng -lz"
7376 cat > conftest.$ac_ext <<EOF
7377 #line 7378 "configure"
7378 #include "confdefs.h"
7379 #include <png.h>
7380 int main(int c, char **v) {
7381 if (c == 1) return 0;
7382 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
7383 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
7384 EOF
7385 if { (eval echo configure:7386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7386 then
7387 ./conftest dummy_arg; png_status=$?;
7388 if test "$png_status" = "0"; then
7389 with_png=yes;
7390 else
7391 with_png=no;
7392 if test "$png_status" = "1"; then
7393 png_problem="PNG library version and header file don't match!"
7394 elif test "$png_status" = "2"; then
7395 png_problem="PNG library version too old (pre 1.0.2)!"
7396 fi
7397 echo "
7398 *** WARNING *** $png_problem
7399 I'm not touching that with a 10-foot pole!
7400 If you really want to use the installed version of libPNG, rerun
7401 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
7402 fi
7403 else
7404 conftest_rc="$?"
7405 echo "configure: failed program was:" >&5
7406 cat conftest.$ac_ext >&5
7407 rm -fr conftest*
7408 with_png=no
7409 fi
7410 rm -fr conftest*
7411 xe_check_libs=
7412 echo "$ac_t""$with_png" 1>&6
7413 fi
7414 if test "$with_png" = "yes"; then 6962 if test "$with_png" = "yes"; then
7415 { test "$extra_verbose" = "yes" && cat << \EOF 6963 { test "$extra_verbose" = "yes" && cat << \EOF
7416 Defining HAVE_PNG 6964 Defining HAVE_PNG
7417 EOF 6965 EOF
7418 cat >> confdefs.h <<\EOF 6966 cat >> confdefs.h <<\EOF
7423 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi 6971 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
7424 fi 6972 fi
7425 6973
7426 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 6974 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7427 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 6975 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7428 echo "configure:7429: checking for tiffio.h" >&5 6976 echo "configure:6977: checking for tiffio.h" >&5
7429 6977
7430 cat > conftest.$ac_ext <<EOF 6978 cat > conftest.$ac_ext <<EOF
7431 #line 7432 "configure" 6979 #line 6980 "configure"
7432 #include "confdefs.h" 6980 #include "confdefs.h"
7433 #include <tiffio.h> 6981 #include <tiffio.h>
7434 EOF 6982 EOF
7435 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7436 { (eval echo configure:7437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6984 { (eval echo configure:6985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7437 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6985 ac_err=`grep -v '^ *+' conftest.out`
7438 if test -z "$ac_err"; then 6986 if test -z "$ac_err"; then
7439 rm -rf conftest* 6987 rm -rf conftest*
7440 eval "ac_cv_header_$ac_safe=yes" 6988 eval "ac_cv_header_$ac_safe=yes"
7441 else 6989 else
7442 echo "$ac_err" >&5 6990 echo "$ac_err" >&5
7454 with_tiff=no 7002 with_tiff=no
7455 fi 7003 fi
7456 } 7004 }
7457 test -z "$with_tiff" && { 7005 test -z "$with_tiff" && {
7458 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 7006 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7459 echo "configure:7460: checking for TIFFClientOpen in -ltiff" >&5 7007 echo "configure:7008: checking for TIFFClientOpen in -ltiff" >&5
7460 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` 7008 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7461 7009
7462 xe_check_libs=" -ltiff " 7010 xe_check_libs=" -ltiff "
7463 cat > conftest.$ac_ext <<EOF 7011 cat > conftest.$ac_ext <<EOF
7464 #line 7465 "configure" 7012 #line 7013 "configure"
7465 #include "confdefs.h" 7013 #include "confdefs.h"
7466 /* Override any gcc2 internal prototype to avoid an error. */ 7014 /* Override any gcc2 internal prototype to avoid an error. */
7467 /* We use char because int might match the return type of a gcc2 7015 /* We use char because int might match the return type of a gcc2
7468 builtin and then its argument prototype would still apply. */ 7016 builtin and then its argument prototype would still apply. */
7469 char TIFFClientOpen(); 7017 char TIFFClientOpen();
7470 7018
7471 int main() { 7019 int main() {
7472 TIFFClientOpen() 7020 TIFFClientOpen()
7473 ; return 0; } 7021 ; return 0; }
7474 EOF 7022 EOF
7475 if { (eval echo configure:7476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7023 if { (eval echo configure:7024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7476 rm -rf conftest* 7024 rm -rf conftest*
7477 eval "ac_cv_lib_$ac_lib_var=yes" 7025 eval "ac_cv_lib_$ac_lib_var=yes"
7478 else 7026 else
7479 echo "configure: failed program was:" >&5 7027 echo "configure: failed program was:" >&5
7480 cat conftest.$ac_ext >&5 7028 cat conftest.$ac_ext >&5
7509 7057
7510 7058
7511 if test "$with_x11" = "yes"; then 7059 if test "$with_x11" = "yes"; then
7512 7060
7513 echo "checking for X11 graphics libraries" 1>&6 7061 echo "checking for X11 graphics libraries" 1>&6
7514 echo "configure:7515: checking for X11 graphics libraries" >&5 7062 echo "configure:7063: checking for X11 graphics libraries" >&5
7515 7063
7516 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 7064 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7517 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 7065 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7518 echo "configure:7519: checking for compface.h" >&5 7066 echo "configure:7067: checking for compface.h" >&5
7519 7067
7520 cat > conftest.$ac_ext <<EOF 7068 cat > conftest.$ac_ext <<EOF
7521 #line 7522 "configure" 7069 #line 7070 "configure"
7522 #include "confdefs.h" 7070 #include "confdefs.h"
7523 #include <compface.h> 7071 #include <compface.h>
7524 EOF 7072 EOF
7525 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7073 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7526 { (eval echo configure:7527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7074 { (eval echo configure:7075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7527 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7075 ac_err=`grep -v '^ *+' conftest.out`
7528 if test -z "$ac_err"; then 7076 if test -z "$ac_err"; then
7529 rm -rf conftest* 7077 rm -rf conftest*
7530 eval "ac_cv_header_$ac_safe=yes" 7078 eval "ac_cv_header_$ac_safe=yes"
7531 else 7079 else
7532 echo "$ac_err" >&5 7080 echo "$ac_err" >&5
7544 with_xface=no 7092 with_xface=no
7545 fi 7093 fi
7546 } 7094 }
7547 test -z "$with_xface" && { 7095 test -z "$with_xface" && {
7548 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 7096 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7549 echo "configure:7550: checking for UnGenFace in -lcompface" >&5 7097 echo "configure:7098: checking for UnGenFace in -lcompface" >&5
7550 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 7098 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7551 7099
7552 xe_check_libs=" -lcompface " 7100 xe_check_libs=" -lcompface "
7553 cat > conftest.$ac_ext <<EOF 7101 cat > conftest.$ac_ext <<EOF
7554 #line 7555 "configure" 7102 #line 7103 "configure"
7555 #include "confdefs.h" 7103 #include "confdefs.h"
7556 /* Override any gcc2 internal prototype to avoid an error. */ 7104 /* Override any gcc2 internal prototype to avoid an error. */
7557 /* We use char because int might match the return type of a gcc2 7105 /* We use char because int might match the return type of a gcc2
7558 builtin and then its argument prototype would still apply. */ 7106 builtin and then its argument prototype would still apply. */
7559 char UnGenFace(); 7107 char UnGenFace();
7560 7108
7561 int main() { 7109 int main() {
7562 UnGenFace() 7110 UnGenFace()
7563 ; return 0; } 7111 ; return 0; }
7564 EOF 7112 EOF
7565 if { (eval echo configure:7566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7113 if { (eval echo configure:7114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7566 rm -rf conftest* 7114 rm -rf conftest*
7567 eval "ac_cv_lib_$ac_lib_var=yes" 7115 eval "ac_cv_lib_$ac_lib_var=yes"
7568 else 7116 else
7569 echo "configure: failed program was:" >&5 7117 echo "configure: failed program was:" >&5
7570 cat conftest.$ac_ext >&5 7118 cat conftest.$ac_ext >&5
7596 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi 7144 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
7597 fi 7145 fi
7598 7146
7599 7147
7600 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6 7148 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
7601 echo "configure:7602: checking for XawScrollbarSetThumb in -lXaw" >&5 7149 echo "configure:7150: checking for XawScrollbarSetThumb in -lXaw" >&5
7602 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 7150 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7603 7151
7604 xe_check_libs=" -lXaw " 7152 xe_check_libs=" -lXaw "
7605 cat > conftest.$ac_ext <<EOF 7153 cat > conftest.$ac_ext <<EOF
7606 #line 7607 "configure" 7154 #line 7155 "configure"
7607 #include "confdefs.h" 7155 #include "confdefs.h"
7608 /* Override any gcc2 internal prototype to avoid an error. */ 7156 /* Override any gcc2 internal prototype to avoid an error. */
7609 /* We use char because int might match the return type of a gcc2 7157 /* We use char because int might match the return type of a gcc2
7610 builtin and then its argument prototype would still apply. */ 7158 builtin and then its argument prototype would still apply. */
7611 char XawScrollbarSetThumb(); 7159 char XawScrollbarSetThumb();
7612 7160
7613 int main() { 7161 int main() {
7614 XawScrollbarSetThumb() 7162 XawScrollbarSetThumb()
7615 ; return 0; } 7163 ; return 0; }
7616 EOF 7164 EOF
7617 if { (eval echo configure:7618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7165 if { (eval echo configure:7166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7618 rm -rf conftest* 7166 rm -rf conftest*
7619 eval "ac_cv_lib_$ac_lib_var=yes" 7167 eval "ac_cv_lib_$ac_lib_var=yes"
7620 else 7168 else
7621 echo "configure: failed program was:" >&5 7169 echo "configure: failed program was:" >&5
7622 cat conftest.$ac_ext >&5 7170 cat conftest.$ac_ext >&5
7636 7184
7637 7185
7638 7186
7639 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 7187 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
7640 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 7188 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
7641 echo "configure:7642: checking for Xm/Xm.h" >&5 7189 echo "configure:7190: checking for Xm/Xm.h" >&5
7642 7190
7643 cat > conftest.$ac_ext <<EOF 7191 cat > conftest.$ac_ext <<EOF
7644 #line 7645 "configure" 7192 #line 7193 "configure"
7645 #include "confdefs.h" 7193 #include "confdefs.h"
7646 #include <Xm/Xm.h> 7194 #include <Xm/Xm.h>
7647 EOF 7195 EOF
7648 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7196 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7649 { (eval echo configure:7650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7197 { (eval echo configure:7198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7650 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7198 ac_err=`grep -v '^ *+' conftest.out`
7651 if test -z "$ac_err"; then 7199 if test -z "$ac_err"; then
7652 rm -rf conftest* 7200 rm -rf conftest*
7653 eval "ac_cv_header_$ac_safe=yes" 7201 eval "ac_cv_header_$ac_safe=yes"
7654 else 7202 else
7655 echo "$ac_err" >&5 7203 echo "$ac_err" >&5
7661 rm -f conftest* 7209 rm -f conftest*
7662 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7210 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7663 echo "$ac_t""yes" 1>&6 7211 echo "$ac_t""yes" 1>&6
7664 7212
7665 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 7213 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
7666 echo "configure:7667: checking for XmStringFree in -lXm" >&5 7214 echo "configure:7215: checking for XmStringFree in -lXm" >&5
7667 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 7215 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
7668 7216
7669 xe_check_libs=" -lXm " 7217 xe_check_libs=" -lXm "
7670 cat > conftest.$ac_ext <<EOF 7218 cat > conftest.$ac_ext <<EOF
7671 #line 7672 "configure" 7219 #line 7220 "configure"
7672 #include "confdefs.h" 7220 #include "confdefs.h"
7673 /* Override any gcc2 internal prototype to avoid an error. */ 7221 /* Override any gcc2 internal prototype to avoid an error. */
7674 /* We use char because int might match the return type of a gcc2 7222 /* We use char because int might match the return type of a gcc2
7675 builtin and then its argument prototype would still apply. */ 7223 builtin and then its argument prototype would still apply. */
7676 char XmStringFree(); 7224 char XmStringFree();
7677 7225
7678 int main() { 7226 int main() {
7679 XmStringFree() 7227 XmStringFree()
7680 ; return 0; } 7228 ; return 0; }
7681 EOF 7229 EOF
7682 if { (eval echo configure:7683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7230 if { (eval echo configure:7231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7683 rm -rf conftest* 7231 rm -rf conftest*
7684 eval "ac_cv_lib_$ac_lib_var=yes" 7232 eval "ac_cv_lib_$ac_lib_var=yes"
7685 else 7233 else
7686 echo "configure: failed program was:" >&5 7234 echo "configure: failed program was:" >&5
7687 cat conftest.$ac_ext >&5 7235 cat conftest.$ac_ext >&5
7706 fi 7254 fi
7707 7255
7708 7256
7709 if test "$have_motif" = "yes"; then 7257 if test "$have_motif" = "yes"; then
7710 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6 7258 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
7711 echo "configure:7712: checking for Lesstif" >&5 7259 echo "configure:7260: checking for Lesstif" >&5
7712 cat > conftest.$ac_ext <<EOF 7260 cat > conftest.$ac_ext <<EOF
7713 #line 7714 "configure" 7261 #line 7262 "configure"
7714 #include "confdefs.h" 7262 #include "confdefs.h"
7715 #include <Xm/Xm.h> 7263 #include <Xm/Xm.h>
7716 #ifdef LESSTIF_VERSION 7264 #ifdef LESSTIF_VERSION
7717 yes 7265 yes
7718 #endif 7266 #endif
7992 fi 7540 fi
7993 fi 7541 fi
7994 7542
7995 if test "$with_mule" = "yes" ; then 7543 if test "$with_mule" = "yes" ; then
7996 echo "checking for Mule-related features" 1>&6 7544 echo "checking for Mule-related features" 1>&6
7997 echo "configure:7998: checking for Mule-related features" >&5 7545 echo "configure:7546: checking for Mule-related features" >&5
7998 { test "$extra_verbose" = "yes" && cat << \EOF 7546 { test "$extra_verbose" = "yes" && cat << \EOF
7999 Defining MULE 7547 Defining MULE
8000 EOF 7548 EOF
8001 cat >> confdefs.h <<\EOF 7549 cat >> confdefs.h <<\EOF
8002 #define MULE 1 7550 #define MULE 1
8017 7565
8018 for ac_hdr in libintl.h 7566 for ac_hdr in libintl.h
8019 do 7567 do
8020 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7568 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8021 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7569 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8022 echo "configure:8023: checking for $ac_hdr" >&5 7570 echo "configure:7571: checking for $ac_hdr" >&5
8023 7571
8024 cat > conftest.$ac_ext <<EOF 7572 cat > conftest.$ac_ext <<EOF
8025 #line 8026 "configure" 7573 #line 7574 "configure"
8026 #include "confdefs.h" 7574 #include "confdefs.h"
8027 #include <$ac_hdr> 7575 #include <$ac_hdr>
8028 EOF 7576 EOF
8029 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8030 { (eval echo configure:8031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7578 { (eval echo configure:7579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8031 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7579 ac_err=`grep -v '^ *+' conftest.out`
8032 if test -z "$ac_err"; then 7580 if test -z "$ac_err"; then
8033 rm -rf conftest* 7581 rm -rf conftest*
8034 eval "ac_cv_header_$ac_safe=yes" 7582 eval "ac_cv_header_$ac_safe=yes"
8035 else 7583 else
8036 echo "$ac_err" >&5 7584 echo "$ac_err" >&5
8056 fi 7604 fi
8057 done 7605 done
8058 7606
8059 7607
8060 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 7608 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
8061 echo "configure:8062: checking for strerror in -lintl" >&5 7609 echo "configure:7610: checking for strerror in -lintl" >&5
8062 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 7610 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
8063 7611
8064 xe_check_libs=" -lintl " 7612 xe_check_libs=" -lintl "
8065 cat > conftest.$ac_ext <<EOF 7613 cat > conftest.$ac_ext <<EOF
8066 #line 8067 "configure" 7614 #line 7615 "configure"
8067 #include "confdefs.h" 7615 #include "confdefs.h"
8068 /* Override any gcc2 internal prototype to avoid an error. */ 7616 /* Override any gcc2 internal prototype to avoid an error. */
8069 /* We use char because int might match the return type of a gcc2 7617 /* We use char because int might match the return type of a gcc2
8070 builtin and then its argument prototype would still apply. */ 7618 builtin and then its argument prototype would still apply. */
8071 char strerror(); 7619 char strerror();
8072 7620
8073 int main() { 7621 int main() {
8074 strerror() 7622 strerror()
8075 ; return 0; } 7623 ; return 0; }
8076 EOF 7624 EOF
8077 if { (eval echo configure:8078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7625 if { (eval echo configure:7626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8078 rm -rf conftest* 7626 rm -rf conftest*
8079 eval "ac_cv_lib_$ac_lib_var=yes" 7627 eval "ac_cv_lib_$ac_lib_var=yes"
8080 else 7628 else
8081 echo "configure: failed program was:" >&5 7629 echo "configure: failed program was:" >&5
8082 cat conftest.$ac_ext >&5 7630 cat conftest.$ac_ext >&5
8105 fi 7653 fi
8106 7654
8107 7655
8108 7656
8109 echo "checking for Mule input methods" 1>&6 7657 echo "checking for Mule input methods" 1>&6
8110 echo "configure:8111: checking for Mule input methods" >&5 7658 echo "configure:7659: checking for Mule input methods" >&5
8111 case "$with_xim" in "" | "yes" ) 7659 case "$with_xim" in "" | "yes" )
8112 echo "checking for XIM" 1>&6 7660 echo "checking for XIM" 1>&6
8113 echo "configure:8114: checking for XIM" >&5 7661 echo "configure:7662: checking for XIM" >&5
8114 7662 if test "$have_lesstif" = "yes"; then with_xim=xlib
8115 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6 7663 else
8116 echo "configure:8117: checking for XOpenIM in -lX11" >&5
8117 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
8118
8119 xe_check_libs=" -lX11 "
8120 cat > conftest.$ac_ext <<EOF
8121 #line 8122 "configure"
8122 #include "confdefs.h"
8123 /* Override any gcc2 internal prototype to avoid an error. */
8124 /* We use char because int might match the return type of a gcc2
8125 builtin and then its argument prototype would still apply. */
8126 char XOpenIM();
8127
8128 int main() {
8129 XOpenIM()
8130 ; return 0; }
8131 EOF
8132 if { (eval echo configure:8133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8133 rm -rf conftest*
8134 eval "ac_cv_lib_$ac_lib_var=yes"
8135 else
8136 echo "configure: failed program was:" >&5
8137 cat conftest.$ac_ext >&5
8138 rm -rf conftest*
8139 eval "ac_cv_lib_$ac_lib_var=no"
8140 fi
8141 rm -f conftest*
8142 xe_check_libs=""
8143
8144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8145 echo "$ac_t""yes" 1>&6
8146 with_xim=xlib
8147 else
8148 echo "$ac_t""no" 1>&6
8149 with_xim=no
8150 fi
8151
8152
8153 if test "$have_motif $have_lesstif" = "yes no"; then
8154
8155 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 7664 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
8156 echo "configure:8157: checking for XmImMbLookupString in -lXm" >&5 7665 echo "configure:7666: checking for XmImMbLookupString in -lXm" >&5
8157 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 7666 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
8158 7667
8159 xe_check_libs=" -lXm " 7668 xe_check_libs=" -lXm "
8160 cat > conftest.$ac_ext <<EOF 7669 cat > conftest.$ac_ext <<EOF
8161 #line 8162 "configure" 7670 #line 7671 "configure"
8162 #include "confdefs.h" 7671 #include "confdefs.h"
8163 /* Override any gcc2 internal prototype to avoid an error. */ 7672 /* Override any gcc2 internal prototype to avoid an error. */
8164 /* We use char because int might match the return type of a gcc2 7673 /* We use char because int might match the return type of a gcc2
8165 builtin and then its argument prototype would still apply. */ 7674 builtin and then its argument prototype would still apply. */
8166 char XmImMbLookupString(); 7675 char XmImMbLookupString();
8167 7676
8168 int main() { 7677 int main() {
8169 XmImMbLookupString() 7678 XmImMbLookupString()
8170 ; return 0; } 7679 ; return 0; }
8171 EOF 7680 EOF
8172 if { (eval echo configure:8173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7681 if { (eval echo configure:7682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8173 rm -rf conftest* 7682 rm -rf conftest*
8174 eval "ac_cv_lib_$ac_lib_var=yes" 7683 eval "ac_cv_lib_$ac_lib_var=yes"
8175 else 7684 else
8176 echo "configure: failed program was:" >&5 7685 echo "configure: failed program was:" >&5
8177 cat conftest.$ac_ext >&5 7686 cat conftest.$ac_ext >&5
8184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 7693 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8185 echo "$ac_t""yes" 1>&6 7694 echo "$ac_t""yes" 1>&6
8186 with_xim=motif 7695 with_xim=motif
8187 else 7696 else
8188 echo "$ac_t""no" 1>&6 7697 echo "$ac_t""no" 1>&6
8189 fi 7698 with_xim=xlib
8190 7699 fi
8191 7700
8192 fi ;; 7701
7702 fi
8193 esac 7703 esac
8194 if test "$with_xim" != "no"; then 7704 if test "$with_xim" != "no"; then
8195 { test "$extra_verbose" = "yes" && cat << \EOF 7705 { test "$extra_verbose" = "yes" && cat << \EOF
8196 Defining HAVE_XIM 7706 Defining HAVE_XIM
8197 EOF 7707 EOF
8232 fi 7742 fi
8233 fi 7743 fi
8234 7744
8235 if test "$with_xfs" = "yes" ; then 7745 if test "$with_xfs" = "yes" ; then
8236 echo "checking for XFontSet" 1>&6 7746 echo "checking for XFontSet" 1>&6
8237 echo "configure:8238: checking for XFontSet" >&5 7747 echo "configure:7748: checking for XFontSet" >&5
8238 7748
8239 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 7749 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
8240 echo "configure:8241: checking for XmbDrawString in -lX11" >&5 7750 echo "configure:7751: checking for XmbDrawString in -lX11" >&5
8241 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 7751 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
8242 7752
8243 xe_check_libs=" -lX11 " 7753 xe_check_libs=" -lX11 "
8244 cat > conftest.$ac_ext <<EOF 7754 cat > conftest.$ac_ext <<EOF
8245 #line 8246 "configure" 7755 #line 7756 "configure"
8246 #include "confdefs.h" 7756 #include "confdefs.h"
8247 /* Override any gcc2 internal prototype to avoid an error. */ 7757 /* Override any gcc2 internal prototype to avoid an error. */
8248 /* We use char because int might match the return type of a gcc2 7758 /* We use char because int might match the return type of a gcc2
8249 builtin and then its argument prototype would still apply. */ 7759 builtin and then its argument prototype would still apply. */
8250 char XmbDrawString(); 7760 char XmbDrawString();
8251 7761
8252 int main() { 7762 int main() {
8253 XmbDrawString() 7763 XmbDrawString()
8254 ; return 0; } 7764 ; return 0; }
8255 EOF 7765 EOF
8256 if { (eval echo configure:8257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7766 if { (eval echo configure:7767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8257 rm -rf conftest* 7767 rm -rf conftest*
8258 eval "ac_cv_lib_$ac_lib_var=yes" 7768 eval "ac_cv_lib_$ac_lib_var=yes"
8259 else 7769 else
8260 echo "configure: failed program was:" >&5 7770 echo "configure: failed program was:" >&5
8261 cat conftest.$ac_ext >&5 7771 cat conftest.$ac_ext >&5
8291 fi 7801 fi
8292 fi 7802 fi
8293 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 7803 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
8294 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 7804 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
8295 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 7805 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
8296 echo "configure:8297: checking for wnn/jllib.h" >&5 7806 echo "configure:7807: checking for wnn/jllib.h" >&5
8297 7807
8298 cat > conftest.$ac_ext <<EOF 7808 cat > conftest.$ac_ext <<EOF
8299 #line 8300 "configure" 7809 #line 7810 "configure"
8300 #include "confdefs.h" 7810 #include "confdefs.h"
8301 #include <wnn/jllib.h> 7811 #include <wnn/jllib.h>
8302 EOF 7812 EOF
8303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7813 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8304 { (eval echo configure:8305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7814 { (eval echo configure:7815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8305 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7815 ac_err=`grep -v '^ *+' conftest.out`
8306 if test -z "$ac_err"; then 7816 if test -z "$ac_err"; then
8307 rm -rf conftest* 7817 rm -rf conftest*
8308 eval "ac_cv_header_$ac_safe=yes" 7818 eval "ac_cv_header_$ac_safe=yes"
8309 else 7819 else
8310 echo "$ac_err" >&5 7820 echo "$ac_err" >&5
8324 } 7834 }
8325 if test "$with_wnn" != "no"; then 7835 if test "$with_wnn" != "no"; then
8326 for ac_func in crypt 7836 for ac_func in crypt
8327 do 7837 do
8328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8329 echo "configure:8330: checking for $ac_func" >&5 7839 echo "configure:7840: checking for $ac_func" >&5
8330 7840
8331 cat > conftest.$ac_ext <<EOF 7841 cat > conftest.$ac_ext <<EOF
8332 #line 8333 "configure" 7842 #line 7843 "configure"
8333 #include "confdefs.h" 7843 #include "confdefs.h"
8334 /* System header to define __stub macros and hopefully few prototypes, 7844 /* System header to define __stub macros and hopefully few prototypes,
8335 which can conflict with char $ac_func(); below. */ 7845 which can conflict with char $ac_func(); below. */
8336 #include <assert.h> 7846 #include <assert.h>
8337 /* Override any gcc2 internal prototype to avoid an error. */ 7847 /* Override any gcc2 internal prototype to avoid an error. */
8350 $ac_func(); 7860 $ac_func();
8351 #endif 7861 #endif
8352 7862
8353 ; return 0; } 7863 ; return 0; }
8354 EOF 7864 EOF
8355 if { (eval echo configure:8356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7865 if { (eval echo configure:7866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8356 rm -rf conftest* 7866 rm -rf conftest*
8357 eval "ac_cv_func_$ac_func=yes" 7867 eval "ac_cv_func_$ac_func=yes"
8358 else 7868 else
8359 echo "configure: failed program was:" >&5 7869 echo "configure: failed program was:" >&5
8360 cat conftest.$ac_ext >&5 7870 cat conftest.$ac_ext >&5
8379 fi 7889 fi
8380 done 7890 done
8381 7891
8382 test "$ac_cv_func_crypt" != "yes" && { 7892 test "$ac_cv_func_crypt" != "yes" && {
8383 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 7893 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
8384 echo "configure:8385: checking for crypt in -lcrypt" >&5 7894 echo "configure:7895: checking for crypt in -lcrypt" >&5
8385 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 7895 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
8386 7896
8387 xe_check_libs=" -lcrypt " 7897 xe_check_libs=" -lcrypt "
8388 cat > conftest.$ac_ext <<EOF 7898 cat > conftest.$ac_ext <<EOF
8389 #line 8390 "configure" 7899 #line 7900 "configure"
8390 #include "confdefs.h" 7900 #include "confdefs.h"
8391 /* Override any gcc2 internal prototype to avoid an error. */ 7901 /* Override any gcc2 internal prototype to avoid an error. */
8392 /* We use char because int might match the return type of a gcc2 7902 /* We use char because int might match the return type of a gcc2
8393 builtin and then its argument prototype would still apply. */ 7903 builtin and then its argument prototype would still apply. */
8394 char crypt(); 7904 char crypt();
8395 7905
8396 int main() { 7906 int main() {
8397 crypt() 7907 crypt()
8398 ; return 0; } 7908 ; return 0; }
8399 EOF 7909 EOF
8400 if { (eval echo configure:8401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7910 if { (eval echo configure:7911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8401 rm -rf conftest* 7911 rm -rf conftest*
8402 eval "ac_cv_lib_$ac_lib_var=yes" 7912 eval "ac_cv_lib_$ac_lib_var=yes"
8403 else 7913 else
8404 echo "configure: failed program was:" >&5 7914 echo "configure: failed program was:" >&5
8405 cat conftest.$ac_ext >&5 7915 cat conftest.$ac_ext >&5
8427 echo "$ac_t""no" 1>&6 7937 echo "$ac_t""no" 1>&6
8428 fi 7938 fi
8429 7939
8430 } 7940 }
8431 fi 7941 fi
8432 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then 7942 test -z "$with_wnn" && {
8433
8434 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 7943 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
8435 echo "configure:8436: checking for jl_dic_list_e in -lwnn" >&5 7944 echo "configure:7945: checking for jl_dic_list_e in -lwnn" >&5
8436 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 7945 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8437 7946
8438 xe_check_libs=" -lwnn " 7947 xe_check_libs=" -lwnn "
8439 cat > conftest.$ac_ext <<EOF 7948 cat > conftest.$ac_ext <<EOF
8440 #line 8441 "configure" 7949 #line 7950 "configure"
8441 #include "confdefs.h" 7950 #include "confdefs.h"
8442 /* Override any gcc2 internal prototype to avoid an error. */ 7951 /* Override any gcc2 internal prototype to avoid an error. */
8443 /* We use char because int might match the return type of a gcc2 7952 /* We use char because int might match the return type of a gcc2
8444 builtin and then its argument prototype would still apply. */ 7953 builtin and then its argument prototype would still apply. */
8445 char jl_dic_list_e(); 7954 char jl_dic_list_e();
8446 7955
8447 int main() { 7956 int main() {
8448 jl_dic_list_e() 7957 jl_dic_list_e()
8449 ; return 0; } 7958 ; return 0; }
8450 EOF 7959 EOF
8451 if { (eval echo configure:8452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7960 if { (eval echo configure:7961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8452 rm -rf conftest* 7961 rm -rf conftest*
8453 eval "ac_cv_lib_$ac_lib_var=yes" 7962 eval "ac_cv_lib_$ac_lib_var=yes"
8454 else 7963 else
8455 echo "configure: failed program was:" >&5 7964 echo "configure: failed program was:" >&5
8456 cat conftest.$ac_ext >&5 7965 cat conftest.$ac_ext >&5
8460 rm -f conftest* 7969 rm -f conftest*
8461 xe_check_libs="" 7970 xe_check_libs=""
8462 7971
8463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 7972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8464 echo "$ac_t""yes" 1>&6 7973 echo "$ac_t""yes" 1>&6
8465 libwnn=wnn 7974 :
8466 else
8467 echo "$ac_t""no" 1>&6
8468 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
8469 echo "configure:8470: checking for jl_dic_list_e in -lwnn4" >&5
8470 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8471
8472 xe_check_libs=" -lwnn4 "
8473 cat > conftest.$ac_ext <<EOF
8474 #line 8475 "configure"
8475 #include "confdefs.h"
8476 /* Override any gcc2 internal prototype to avoid an error. */
8477 /* We use char because int might match the return type of a gcc2
8478 builtin and then its argument prototype would still apply. */
8479 char jl_dic_list_e();
8480
8481 int main() {
8482 jl_dic_list_e()
8483 ; return 0; }
8484 EOF
8485 if { (eval echo configure:8486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8486 rm -rf conftest*
8487 eval "ac_cv_lib_$ac_lib_var=yes"
8488 else
8489 echo "configure: failed program was:" >&5
8490 cat conftest.$ac_ext >&5
8491 rm -rf conftest*
8492 eval "ac_cv_lib_$ac_lib_var=no"
8493 fi
8494 rm -f conftest*
8495 xe_check_libs=""
8496
8497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8498 echo "$ac_t""yes" 1>&6
8499 libwnn=wnn4
8500 else
8501 echo "$ac_t""no" 1>&6
8502 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
8503 echo "configure:8504: checking for jl_dic_list_e in -lwnn6" >&5
8504 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8505
8506 xe_check_libs=" -lwnn6 "
8507 cat > conftest.$ac_ext <<EOF
8508 #line 8509 "configure"
8509 #include "confdefs.h"
8510 /* Override any gcc2 internal prototype to avoid an error. */
8511 /* We use char because int might match the return type of a gcc2
8512 builtin and then its argument prototype would still apply. */
8513 char jl_dic_list_e();
8514
8515 int main() {
8516 jl_dic_list_e()
8517 ; return 0; }
8518 EOF
8519 if { (eval echo configure:8520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8520 rm -rf conftest*
8521 eval "ac_cv_lib_$ac_lib_var=yes"
8522 else
8523 echo "configure: failed program was:" >&5
8524 cat conftest.$ac_ext >&5
8525 rm -rf conftest*
8526 eval "ac_cv_lib_$ac_lib_var=no"
8527 fi
8528 rm -f conftest*
8529 xe_check_libs=""
8530
8531 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8532 echo "$ac_t""yes" 1>&6
8533 libwnn=wnn6
8534 else
8535 echo "$ac_t""no" 1>&6
8536 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
8537 echo "configure:8538: checking for dic_list_e in -lwnn6_fromsrc" >&5
8538 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
8539
8540 xe_check_libs=" -lwnn6_fromsrc "
8541 cat > conftest.$ac_ext <<EOF
8542 #line 8543 "configure"
8543 #include "confdefs.h"
8544 /* Override any gcc2 internal prototype to avoid an error. */
8545 /* We use char because int might match the return type of a gcc2
8546 builtin and then its argument prototype would still apply. */
8547 char dic_list_e();
8548
8549 int main() {
8550 dic_list_e()
8551 ; return 0; }
8552 EOF
8553 if { (eval echo configure:8554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8554 rm -rf conftest*
8555 eval "ac_cv_lib_$ac_lib_var=yes"
8556 else
8557 echo "configure: failed program was:" >&5
8558 cat conftest.$ac_ext >&5
8559 rm -rf conftest*
8560 eval "ac_cv_lib_$ac_lib_var=no"
8561 fi
8562 rm -f conftest*
8563 xe_check_libs=""
8564
8565 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8566 echo "$ac_t""yes" 1>&6
8567 libwnn=wnn6_fromsrc
8568 else 7975 else
8569 echo "$ac_t""no" 1>&6 7976 echo "$ac_t""no" 1>&6
8570 with_wnn=no 7977 with_wnn=no
8571 fi 7978 fi
8572 7979
8573 7980 }
8574 fi
8575
8576
8577 fi
8578
8579
8580 fi
8581
8582
8583 fi
8584 test -z "$with_wnn" && with_wnn=yes 7981 test -z "$with_wnn" && with_wnn=yes
8585 if test "$with_wnn" = "yes"; then 7982 if test "$with_wnn" = "yes"; then
8586 { test "$extra_verbose" = "yes" && cat << \EOF 7983 { test "$extra_verbose" = "yes" && cat << \EOF
8587 Defining HAVE_WNN 7984 Defining HAVE_WNN
8588 EOF 7985 EOF
8589 cat >> confdefs.h <<\EOF 7986 cat >> confdefs.h <<\EOF
8590 #define HAVE_WNN 1 7987 #define HAVE_WNN 1
8591 EOF 7988 EOF
8592 } 7989 }
8593 7990
8594 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi 7991 libs_x="-lwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lwnn\" to \$libs_x"; fi
8595 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then 7992 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
8596 echo " xemacs will be linked with \"mule-wnnfns.o\"" 7993 echo " xemacs will be linked with \"mule-wnnfns.o\""
8597 fi 7994 fi
8598 if test "$with_wnn6" != "no"; then 7995 if test "$with_wnn6" != "no"; then
8599 7996
8600 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6 7997 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6
8601 echo "configure:8602: checking for jl_fi_dic_list in -l$libwnn" >&5 7998 echo "configure:7999: checking for jl_fi_dic_list in -lwnn" >&5
8602 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 7999 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
8603 8000
8604 xe_check_libs=" -l$libwnn " 8001 xe_check_libs=" -lwnn "
8605 cat > conftest.$ac_ext <<EOF 8002 cat > conftest.$ac_ext <<EOF
8606 #line 8607 "configure" 8003 #line 8004 "configure"
8607 #include "confdefs.h" 8004 #include "confdefs.h"
8608 /* Override any gcc2 internal prototype to avoid an error. */ 8005 /* Override any gcc2 internal prototype to avoid an error. */
8609 /* We use char because int might match the return type of a gcc2 8006 /* We use char because int might match the return type of a gcc2
8610 builtin and then its argument prototype would still apply. */ 8007 builtin and then its argument prototype would still apply. */
8611 char jl_fi_dic_list(); 8008 char jl_fi_dic_list();
8612 8009
8613 int main() { 8010 int main() {
8614 jl_fi_dic_list() 8011 jl_fi_dic_list()
8615 ; return 0; } 8012 ; return 0; }
8616 EOF 8013 EOF
8617 if { (eval echo configure:8618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8014 if { (eval echo configure:8015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8618 rm -rf conftest* 8015 rm -rf conftest*
8619 eval "ac_cv_lib_$ac_lib_var=yes" 8016 eval "ac_cv_lib_$ac_lib_var=yes"
8620 else 8017 else
8621 echo "configure: failed program was:" >&5 8018 echo "configure: failed program was:" >&5
8622 cat conftest.$ac_ext >&5 8019 cat conftest.$ac_ext >&5
8647 8044
8648 canna_includes_found=no 8045 canna_includes_found=no
8649 if test "$with_canna" != "no"; then 8046 if test "$with_canna" != "no"; then
8650 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 8047 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8651 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 8048 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8652 echo "configure:8653: checking for canna/jrkanji.h" >&5 8049 echo "configure:8050: checking for canna/jrkanji.h" >&5
8653 8050
8654 cat > conftest.$ac_ext <<EOF 8051 cat > conftest.$ac_ext <<EOF
8655 #line 8656 "configure" 8052 #line 8053 "configure"
8656 #include "confdefs.h" 8053 #include "confdefs.h"
8657 #include <canna/jrkanji.h> 8054 #include <canna/jrkanji.h>
8658 EOF 8055 EOF
8659 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8660 { (eval echo configure:8661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8057 { (eval echo configure:8058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8661 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8058 ac_err=`grep -v '^ *+' conftest.out`
8662 if test -z "$ac_err"; then 8059 if test -z "$ac_err"; then
8663 rm -rf conftest* 8060 rm -rf conftest*
8664 eval "ac_cv_header_$ac_safe=yes" 8061 eval "ac_cv_header_$ac_safe=yes"
8665 else 8062 else
8666 echo "$ac_err" >&5 8063 echo "$ac_err" >&5
8682 -d "/usr/local/canna/include"; then 8079 -d "/usr/local/canna/include"; then
8683 save_c_switch_site="$c_switch_site" 8080 save_c_switch_site="$c_switch_site"
8684 c_switch_site="$c_switch_site -I/usr/local/canna/include" 8081 c_switch_site="$c_switch_site -I/usr/local/canna/include"
8685 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 8082 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8686 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 8083 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8687 echo "configure:8688: checking for canna/jrkanji.h" >&5 8084 echo "configure:8085: checking for canna/jrkanji.h" >&5
8688 8085
8689 cat > conftest.$ac_ext <<EOF 8086 cat > conftest.$ac_ext <<EOF
8690 #line 8691 "configure" 8087 #line 8088 "configure"
8691 #include "confdefs.h" 8088 #include "confdefs.h"
8692 #include <canna/jrkanji.h> 8089 #include <canna/jrkanji.h>
8693 EOF 8090 EOF
8694 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8695 { (eval echo configure:8696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8092 { (eval echo configure:8093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8696 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8093 ac_err=`grep -v '^ *+' conftest.out`
8697 if test -z "$ac_err"; then 8094 if test -z "$ac_err"; then
8698 rm -rf conftest* 8095 rm -rf conftest*
8699 eval "ac_cv_header_$ac_safe=yes" 8096 eval "ac_cv_header_$ac_safe=yes"
8700 else 8097 else
8701 echo "$ac_err" >&5 8098 echo "$ac_err" >&5
8718 fi 8115 fi
8719 fi 8116 fi
8720 8117
8721 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 8118 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
8722 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 8119 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
8723 echo "configure:8724: checking for canna/RK.h" >&5 8120 echo "configure:8121: checking for canna/RK.h" >&5
8724 8121
8725 cat > conftest.$ac_ext <<EOF 8122 cat > conftest.$ac_ext <<EOF
8726 #line 8727 "configure" 8123 #line 8124 "configure"
8727 #include "confdefs.h" 8124 #include "confdefs.h"
8728 #include <canna/RK.h> 8125 #include <canna/RK.h>
8729 EOF 8126 EOF
8730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8731 { (eval echo configure:8732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8128 { (eval echo configure:8129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8732 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8129 ac_err=`grep -v '^ *+' conftest.out`
8733 if test -z "$ac_err"; then 8130 if test -z "$ac_err"; then
8734 rm -rf conftest* 8131 rm -rf conftest*
8735 eval "ac_cv_header_$ac_safe=yes" 8132 eval "ac_cv_header_$ac_safe=yes"
8736 else 8133 else
8737 echo "$ac_err" >&5 8134 echo "$ac_err" >&5
8749 with_canna=no 8146 with_canna=no
8750 fi 8147 fi
8751 } 8148 }
8752 test -z "$with_canna" && { 8149 test -z "$with_canna" && {
8753 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 8150 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
8754 echo "configure:8755: checking for RkBgnBun in -lRKC" >&5 8151 echo "configure:8152: checking for RkBgnBun in -lRKC" >&5
8755 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 8152 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
8756 8153
8757 xe_check_libs=" -lRKC " 8154 xe_check_libs=" -lRKC "
8758 cat > conftest.$ac_ext <<EOF 8155 cat > conftest.$ac_ext <<EOF
8759 #line 8760 "configure" 8156 #line 8157 "configure"
8760 #include "confdefs.h" 8157 #include "confdefs.h"
8761 /* Override any gcc2 internal prototype to avoid an error. */ 8158 /* Override any gcc2 internal prototype to avoid an error. */
8762 /* We use char because int might match the return type of a gcc2 8159 /* We use char because int might match the return type of a gcc2
8763 builtin and then its argument prototype would still apply. */ 8160 builtin and then its argument prototype would still apply. */
8764 char RkBgnBun(); 8161 char RkBgnBun();
8765 8162
8766 int main() { 8163 int main() {
8767 RkBgnBun() 8164 RkBgnBun()
8768 ; return 0; } 8165 ; return 0; }
8769 EOF 8166 EOF
8770 if { (eval echo configure:8771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8167 if { (eval echo configure:8168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8771 rm -rf conftest* 8168 rm -rf conftest*
8772 eval "ac_cv_lib_$ac_lib_var=yes" 8169 eval "ac_cv_lib_$ac_lib_var=yes"
8773 else 8170 else
8774 echo "configure: failed program was:" >&5 8171 echo "configure: failed program was:" >&5
8775 cat conftest.$ac_ext >&5 8172 cat conftest.$ac_ext >&5
8788 fi 8185 fi
8789 8186
8790 } 8187 }
8791 test -z "$with_canna" && { 8188 test -z "$with_canna" && {
8792 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 8189 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
8793 echo "configure:8794: checking for jrKanjiControl in -lcanna" >&5 8190 echo "configure:8191: checking for jrKanjiControl in -lcanna" >&5
8794 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 8191 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
8795 8192
8796 xe_check_libs=" -lcanna " 8193 xe_check_libs=" -lcanna "
8797 cat > conftest.$ac_ext <<EOF 8194 cat > conftest.$ac_ext <<EOF
8798 #line 8799 "configure" 8195 #line 8196 "configure"
8799 #include "confdefs.h" 8196 #include "confdefs.h"
8800 /* Override any gcc2 internal prototype to avoid an error. */ 8197 /* Override any gcc2 internal prototype to avoid an error. */
8801 /* We use char because int might match the return type of a gcc2 8198 /* We use char because int might match the return type of a gcc2
8802 builtin and then its argument prototype would still apply. */ 8199 builtin and then its argument prototype would still apply. */
8803 char jrKanjiControl(); 8200 char jrKanjiControl();
8804 8201
8805 int main() { 8202 int main() {
8806 jrKanjiControl() 8203 jrKanjiControl()
8807 ; return 0; } 8204 ; return 0; }
8808 EOF 8205 EOF
8809 if { (eval echo configure:8810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8206 if { (eval echo configure:8207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8810 rm -rf conftest* 8207 rm -rf conftest*
8811 eval "ac_cv_lib_$ac_lib_var=yes" 8208 eval "ac_cv_lib_$ac_lib_var=yes"
8812 else 8209 else
8813 echo "configure: failed program was:" >&5 8210 echo "configure: failed program was:" >&5
8814 cat conftest.$ac_ext >&5 8211 cat conftest.$ac_ext >&5
8853 8250
8854 if test "$need_motif" = "yes" ; then 8251 if test "$need_motif" = "yes" ; then
8855 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 8252 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
8856 8253
8857 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 8254 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
8858 echo "configure:8859: checking for layout_object_getvalue in -li18n" >&5 8255 echo "configure:8256: checking for layout_object_getvalue in -li18n" >&5
8859 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 8256 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
8860 8257
8861 xe_check_libs=" -li18n " 8258 xe_check_libs=" -li18n "
8862 cat > conftest.$ac_ext <<EOF 8259 cat > conftest.$ac_ext <<EOF
8863 #line 8864 "configure" 8260 #line 8261 "configure"
8864 #include "confdefs.h" 8261 #include "confdefs.h"
8865 /* Override any gcc2 internal prototype to avoid an error. */ 8262 /* Override any gcc2 internal prototype to avoid an error. */
8866 /* We use char because int might match the return type of a gcc2 8263 /* We use char because int might match the return type of a gcc2
8867 builtin and then its argument prototype would still apply. */ 8264 builtin and then its argument prototype would still apply. */
8868 char layout_object_getvalue(); 8265 char layout_object_getvalue();
8869 8266
8870 int main() { 8267 int main() {
8871 layout_object_getvalue() 8268 layout_object_getvalue()
8872 ; return 0; } 8269 ; return 0; }
8873 EOF 8270 EOF
8874 if { (eval echo configure:8875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8271 if { (eval echo configure:8272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8875 rm -rf conftest* 8272 rm -rf conftest*
8876 eval "ac_cv_lib_$ac_lib_var=yes" 8273 eval "ac_cv_lib_$ac_lib_var=yes"
8877 else 8274 else
8878 echo "configure: failed program was:" >&5 8275 echo "configure: failed program was:" >&5
8879 cat conftest.$ac_ext >&5 8276 cat conftest.$ac_ext >&5
8908 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do 8305 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
8909 { 8306 {
8910 xe_runpath_dir="$dir" 8307 xe_runpath_dir="$dir"
8911 test "$xe_runpath_dir" != "/lib" -a \ 8308 test "$xe_runpath_dir" != "/lib" -a \
8912 "$xe_runpath_dir" != "/usr/lib" -a \ 8309 "$xe_runpath_dir" != "/usr/lib" -a \
8913 -n "`ls ${xe_runpath_dir}/*.s[ol] ${xe_runpath_dir}/*.so.* 2>/dev/null`" && \ 8310 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8914 eval "$xe_add_unique_runpath_dir" 8311 eval "$xe_add_unique_runpath_dir"
8915 } 8312 }
8916 done ;; 8313 done ;;
8917 esac 8314 esac
8918 done 8315 done
8922 for arg in $ld_switch_site $ld_switch_x_site; do 8319 for arg in $ld_switch_site $ld_switch_x_site; do
8923 case "$arg" in -L*) { 8320 case "$arg" in -L*) {
8924 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'` 8321 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
8925 test "$xe_runpath_dir" != "/lib" -a \ 8322 test "$xe_runpath_dir" != "/lib" -a \
8926 "$xe_runpath_dir" != "/usr/lib" -a \ 8323 "$xe_runpath_dir" != "/usr/lib" -a \
8927 -n "`ls ${xe_runpath_dir}/*.s[ol] ${xe_runpath_dir}/*.so.* 2>/dev/null`" && \ 8324 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8928 eval "$xe_add_unique_runpath_dir" 8325 eval "$xe_add_unique_runpath_dir"
8929 };; esac 8326 };; esac
8930 done 8327 done
8931 if test "$opsys $need_motif" = "sol2 yes"; then 8328 if test "$opsys $need_motif" = "sol2 yes"; then
8932 xe_runpath_dir="/opt/SUNWdt/lib"; 8329 xe_runpath_dir="/opt/SUNWdt/lib";
8955 fi 8352 fi
8956 8353
8957 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf 8354 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf
8958 do 8355 do
8959 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8356 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8960 echo "configure:8961: checking for $ac_func" >&5 8357 echo "configure:8358: checking for $ac_func" >&5
8961 8358
8962 cat > conftest.$ac_ext <<EOF 8359 cat > conftest.$ac_ext <<EOF
8963 #line 8964 "configure" 8360 #line 8361 "configure"
8964 #include "confdefs.h" 8361 #include "confdefs.h"
8965 /* System header to define __stub macros and hopefully few prototypes, 8362 /* System header to define __stub macros and hopefully few prototypes,
8966 which can conflict with char $ac_func(); below. */ 8363 which can conflict with char $ac_func(); below. */
8967 #include <assert.h> 8364 #include <assert.h>
8968 /* Override any gcc2 internal prototype to avoid an error. */ 8365 /* Override any gcc2 internal prototype to avoid an error. */
8981 $ac_func(); 8378 $ac_func();
8982 #endif 8379 #endif
8983 8380
8984 ; return 0; } 8381 ; return 0; }
8985 EOF 8382 EOF
8986 if { (eval echo configure:8987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8383 if { (eval echo configure:8384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8987 rm -rf conftest* 8384 rm -rf conftest*
8988 eval "ac_cv_func_$ac_func=yes" 8385 eval "ac_cv_func_$ac_func=yes"
8989 else 8386 else
8990 echo "configure: failed program was:" >&5 8387 echo "configure: failed program was:" >&5
8991 cat conftest.$ac_ext >&5 8388 cat conftest.$ac_ext >&5
9009 echo "$ac_t""no" 1>&6 8406 echo "$ac_t""no" 1>&6
9010 fi 8407 fi
9011 done 8408 done
9012 8409
9013 8410
9014 # Check for UNIX98 PTYs. 8411
9015 # getpt is a glibc addition which emulates the master device on 8412 case "$opsys" in
9016 # systems without kernel support. 8413 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
9017 for ac_func in grantpt unlockpt getpt ptsname killpg 8414 echo " xemacs will be linked with \"realpath.o\""
8415 fi ;;
8416 * )
8417 for ac_func in realpath
9018 do 8418 do
9019 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8419 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9020 echo "configure:9021: checking for $ac_func" >&5 8420 echo "configure:8421: checking for $ac_func" >&5
9021 8421
9022 cat > conftest.$ac_ext <<EOF 8422 cat > conftest.$ac_ext <<EOF
9023 #line 9024 "configure" 8423 #line 8424 "configure"
9024 #include "confdefs.h" 8424 #include "confdefs.h"
9025 /* System header to define __stub macros and hopefully few prototypes, 8425 /* System header to define __stub macros and hopefully few prototypes,
9026 which can conflict with char $ac_func(); below. */ 8426 which can conflict with char $ac_func(); below. */
9027 #include <assert.h> 8427 #include <assert.h>
9028 /* Override any gcc2 internal prototype to avoid an error. */ 8428 /* Override any gcc2 internal prototype to avoid an error. */
9041 $ac_func(); 8441 $ac_func();
9042 #endif 8442 #endif
9043 8443
9044 ; return 0; } 8444 ; return 0; }
9045 EOF 8445 EOF
9046 if { (eval echo configure:9047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8446 if { (eval echo configure:8447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9047 rm -rf conftest* 8447 rm -rf conftest*
9048 eval "ac_cv_func_$ac_func=yes" 8448 eval "ac_cv_func_$ac_func=yes"
9049 else 8449 else
9050 echo "configure: failed program was:" >&5 8450 echo "configure: failed program was:" >&5
9051 cat conftest.$ac_ext >&5 8451 cat conftest.$ac_ext >&5
9068 else 8468 else
9069 echo "$ac_t""no" 1>&6 8469 echo "$ac_t""no" 1>&6
9070 fi 8470 fi
9071 done 8471 done
9072 8472
9073 8473 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
9074 for ac_hdr in stropts.h
9075 do
9076 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9077 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9078 echo "configure:9079: checking for $ac_hdr" >&5
9079
9080 cat > conftest.$ac_ext <<EOF
9081 #line 9082 "configure"
9082 #include "confdefs.h"
9083 #include <$ac_hdr>
9084 EOF
9085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9086 { (eval echo configure:9087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9088 if test -z "$ac_err"; then
9089 rm -rf conftest*
9090 eval "ac_cv_header_$ac_safe=yes"
9091 else
9092 echo "$ac_err" >&5
9093 echo "configure: failed program was:" >&5
9094 cat conftest.$ac_ext >&5
9095 rm -rf conftest*
9096 eval "ac_cv_header_$ac_safe=no"
9097 fi
9098 rm -f conftest*
9099 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9100 echo "$ac_t""yes" 1>&6
9101 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9102 { test "$extra_verbose" = "yes" && cat << EOF
9103 Defining $ac_tr_hdr
9104 EOF
9105 cat >> confdefs.h <<EOF
9106 #define $ac_tr_hdr 1
9107 EOF
9108 }
9109
9110 else
9111 echo "$ac_t""no" 1>&6
9112 fi
9113 done
9114
9115 if test "$ac_cv_header_stropts_h" = "yes"; then
9116 for ac_func in isastream
9117 do
9118 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9119 echo "configure:9120: checking for $ac_func" >&5
9120
9121 cat > conftest.$ac_ext <<EOF
9122 #line 9123 "configure"
9123 #include "confdefs.h"
9124 /* System header to define __stub macros and hopefully few prototypes,
9125 which can conflict with char $ac_func(); below. */
9126 #include <assert.h>
9127 /* Override any gcc2 internal prototype to avoid an error. */
9128 /* We use char because int might match the return type of a gcc2
9129 builtin and then its argument prototype would still apply. */
9130 char $ac_func();
9131
9132 int main() {
9133
9134 /* The GNU C library defines this for functions which it implements
9135 to always fail with ENOSYS. Some functions are actually named
9136 something starting with __ and the normal name is an alias. */
9137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9138 choke me
9139 #else
9140 $ac_func();
9141 #endif
9142
9143 ; return 0; }
9144 EOF
9145 if { (eval echo configure:9146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9146 rm -rf conftest*
9147 eval "ac_cv_func_$ac_func=yes"
9148 else
9149 echo "configure: failed program was:" >&5
9150 cat conftest.$ac_ext >&5
9151 rm -rf conftest*
9152 eval "ac_cv_func_$ac_func=no"
9153 fi
9154 rm -f conftest*
9155
9156 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9157 echo "$ac_t""yes" 1>&6
9158 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9159 { test "$extra_verbose" = "yes" && cat << EOF
9160 Defining $ac_tr_func
9161 EOF
9162 cat >> confdefs.h <<EOF
9163 #define $ac_tr_func 1
9164 EOF
9165 }
9166
9167 else
9168 echo "$ac_t""no" 1>&6
9169 fi
9170 done
9171
9172 for ac_hdr in strtio.h
9173 do
9174 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9175 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9176 echo "configure:9177: checking for $ac_hdr" >&5
9177
9178 cat > conftest.$ac_ext <<EOF
9179 #line 9180 "configure"
9180 #include "confdefs.h"
9181 #include <$ac_hdr>
9182 EOF
9183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9184 { (eval echo configure:9185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9185 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9186 if test -z "$ac_err"; then
9187 rm -rf conftest*
9188 eval "ac_cv_header_$ac_safe=yes"
9189 else
9190 echo "$ac_err" >&5
9191 echo "configure: failed program was:" >&5
9192 cat conftest.$ac_ext >&5
9193 rm -rf conftest*
9194 eval "ac_cv_header_$ac_safe=no"
9195 fi
9196 rm -f conftest*
9197 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9198 echo "$ac_t""yes" 1>&6
9199 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9200 { test "$extra_verbose" = "yes" && cat << EOF
9201 Defining $ac_tr_hdr
9202 EOF
9203 cat >> confdefs.h <<EOF
9204 #define $ac_tr_hdr 1
9205 EOF
9206 }
9207
9208 else
9209 echo "$ac_t""no" 1>&6
9210 fi
9211 done
9212 fi
9213
9214
9215 case "$opsys" in
9216 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
9217 echo " xemacs will be linked with \"realpath.o\"" 8474 echo " xemacs will be linked with \"realpath.o\""
9218 fi ;; 8475 fi ;;
9219 * )
9220 case "$canonical" in
9221 *-*-sysv4.2uw2* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
9222 echo " xemacs will be linked with \"realpath.o\""
9223 fi ;;
9224 * ) for ac_func in realpath
9225 do
9226 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9227 echo "configure:9228: checking for $ac_func" >&5
9228
9229 cat > conftest.$ac_ext <<EOF
9230 #line 9231 "configure"
9231 #include "confdefs.h"
9232 /* System header to define __stub macros and hopefully few prototypes,
9233 which can conflict with char $ac_func(); below. */
9234 #include <assert.h>
9235 /* Override any gcc2 internal prototype to avoid an error. */
9236 /* We use char because int might match the return type of a gcc2
9237 builtin and then its argument prototype would still apply. */
9238 char $ac_func();
9239
9240 int main() {
9241
9242 /* The GNU C library defines this for functions which it implements
9243 to always fail with ENOSYS. Some functions are actually named
9244 something starting with __ and the normal name is an alias. */
9245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9246 choke me
9247 #else
9248 $ac_func();
9249 #endif
9250
9251 ; return 0; }
9252 EOF
9253 if { (eval echo configure:9254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9254 rm -rf conftest*
9255 eval "ac_cv_func_$ac_func=yes"
9256 else
9257 echo "configure: failed program was:" >&5
9258 cat conftest.$ac_ext >&5
9259 rm -rf conftest*
9260 eval "ac_cv_func_$ac_func=no"
9261 fi
9262 rm -f conftest*
9263
9264 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9265 echo "$ac_t""yes" 1>&6
9266 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9267 { test "$extra_verbose" = "yes" && cat << EOF
9268 Defining $ac_tr_func
9269 EOF
9270 cat >> confdefs.h <<EOF
9271 #define $ac_tr_func 1
9272 EOF
9273 }
9274
9275 else
9276 echo "$ac_t""no" 1>&6
9277 fi
9278 done
9279
9280 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
9281 echo " xemacs will be linked with \"realpath.o\""
9282 fi ;;
9283 esac ;;
9284 esac 8476 esac
9285 8477
9286 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 8478 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
9287 echo "configure:9288: checking whether netdb declares h_errno" >&5 8479 echo "configure:8480: checking whether netdb declares h_errno" >&5
9288 cat > conftest.$ac_ext <<EOF 8480 cat > conftest.$ac_ext <<EOF
9289 #line 9290 "configure" 8481 #line 8482 "configure"
9290 #include "confdefs.h" 8482 #include "confdefs.h"
9291 #include <netdb.h> 8483 #include <netdb.h>
9292 int main() { 8484 int main() {
9293 return h_errno; 8485 return h_errno;
9294 ; return 0; } 8486 ; return 0; }
9295 EOF 8487 EOF
9296 if { (eval echo configure:9297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8488 if { (eval echo configure:8489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9297 rm -rf conftest* 8489 rm -rf conftest*
9298 echo "$ac_t""yes" 1>&6 8490 echo "$ac_t""yes" 1>&6
9299 { test "$extra_verbose" = "yes" && cat << \EOF 8491 { test "$extra_verbose" = "yes" && cat << \EOF
9300 Defining HAVE_H_ERRNO 8492 Defining HAVE_H_ERRNO
9301 EOF 8493 EOF
9311 echo "$ac_t""no" 1>&6 8503 echo "$ac_t""no" 1>&6
9312 fi 8504 fi
9313 rm -f conftest* 8505 rm -f conftest*
9314 8506
9315 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 8507 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
9316 echo "configure:9317: checking for sigsetjmp" >&5 8508 echo "configure:8509: checking for sigsetjmp" >&5
9317 cat > conftest.$ac_ext <<EOF 8509 cat > conftest.$ac_ext <<EOF
9318 #line 9319 "configure" 8510 #line 8511 "configure"
9319 #include "confdefs.h" 8511 #include "confdefs.h"
9320 #include <setjmp.h> 8512 #include <setjmp.h>
9321 int main() { 8513 int main() {
9322 sigjmp_buf bar; sigsetjmp (bar, 0); 8514 sigjmp_buf bar; sigsetjmp (bar, 0);
9323 ; return 0; } 8515 ; return 0; }
9324 EOF 8516 EOF
9325 if { (eval echo configure:9326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8517 if { (eval echo configure:8518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9326 rm -rf conftest* 8518 rm -rf conftest*
9327 echo "$ac_t""yes" 1>&6 8519 echo "$ac_t""yes" 1>&6
9328 { test "$extra_verbose" = "yes" && cat << \EOF 8520 { test "$extra_verbose" = "yes" && cat << \EOF
9329 Defining HAVE_SIGSETJMP 8521 Defining HAVE_SIGSETJMP
9330 EOF 8522 EOF
9340 echo "$ac_t""no" 1>&6 8532 echo "$ac_t""no" 1>&6
9341 fi 8533 fi
9342 rm -f conftest* 8534 rm -f conftest*
9343 8535
9344 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 8536 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
9345 echo "configure:9346: checking whether localtime caches TZ" >&5 8537 echo "configure:8538: checking whether localtime caches TZ" >&5
9346 8538
9347 if test "$ac_cv_func_tzset" = "yes"; then 8539 if test "$ac_cv_func_tzset" = "yes"; then
9348 cat > conftest.$ac_ext <<EOF 8540 cat > conftest.$ac_ext <<EOF
9349 #line 9350 "configure" 8541 #line 8542 "configure"
9350 #include "confdefs.h" 8542 #include "confdefs.h"
9351 #include <time.h> 8543 #include <time.h>
9352 #if STDC_HEADERS 8544 #if STDC_HEADERS
9353 # include <stdlib.h> 8545 # include <stdlib.h>
9354 #endif 8546 #endif
9379 if (localtime (&now)->tm_hour != hour_unset) 8571 if (localtime (&now)->tm_hour != hour_unset)
9380 exit (1); 8572 exit (1);
9381 exit (0); 8573 exit (0);
9382 } 8574 }
9383 EOF 8575 EOF
9384 if { (eval echo configure:9385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 8576 if { (eval echo configure:8577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
9385 then 8577 then
9386 emacs_cv_localtime_cache=no 8578 emacs_cv_localtime_cache=no
9387 else 8579 else
9388 conftest_rc="$?"
9389 echo "configure: failed program was:" >&5 8580 echo "configure: failed program was:" >&5
9390 cat conftest.$ac_ext >&5 8581 cat conftest.$ac_ext >&5
9391 rm -fr conftest* 8582 rm -fr conftest*
9392 emacs_cv_localtime_cache=yes 8583 emacs_cv_localtime_cache=yes
9393 fi 8584 fi
9409 8600
9410 fi 8601 fi
9411 8602
9412 if test "$HAVE_TIMEVAL" = "yes"; then 8603 if test "$HAVE_TIMEVAL" = "yes"; then
9413 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 8604 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
9414 echo "configure:9415: checking whether gettimeofday accepts one or two arguments" >&5 8605 echo "configure:8606: checking whether gettimeofday accepts one or two arguments" >&5
9415 cat > conftest.$ac_ext <<EOF 8606 cat > conftest.$ac_ext <<EOF
9416 #line 9417 "configure" 8607 #line 8608 "configure"
9417 #include "confdefs.h" 8608 #include "confdefs.h"
9418 8609
9419 #ifdef TIME_WITH_SYS_TIME 8610 #ifdef TIME_WITH_SYS_TIME
9420 #include <sys/time.h> 8611 #include <sys/time.h>
9421 #include <time.h> 8612 #include <time.h>
9433 struct timezone dummy; 8624 struct timezone dummy;
9434 gettimeofday (&time, &dummy); 8625 gettimeofday (&time, &dummy);
9435 8626
9436 ; return 0; } 8627 ; return 0; }
9437 EOF 8628 EOF
9438 if { (eval echo configure:9439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8629 if { (eval echo configure:8630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9439 rm -rf conftest* 8630 rm -rf conftest*
9440 echo "$ac_t""two" 1>&6 8631 echo "$ac_t""two" 1>&6
9441 else 8632 else
9442 echo "configure: failed program was:" >&5 8633 echo "configure: failed program was:" >&5
9443 cat conftest.$ac_ext >&5 8634 cat conftest.$ac_ext >&5
9455 rm -f conftest* 8646 rm -f conftest*
9456 fi 8647 fi
9457 8648
9458 8649
9459 echo $ac_n "checking for inline""... $ac_c" 1>&6 8650 echo $ac_n "checking for inline""... $ac_c" 1>&6
9460 echo "configure:9461: checking for inline" >&5 8651 echo "configure:8652: checking for inline" >&5
9461 8652
9462 ac_cv_c_inline=no 8653 ac_cv_c_inline=no
9463 for ac_kw in inline __inline__ __inline; do 8654 for ac_kw in inline __inline__ __inline; do
9464 cat > conftest.$ac_ext <<EOF 8655 cat > conftest.$ac_ext <<EOF
9465 #line 9466 "configure" 8656 #line 8657 "configure"
9466 #include "confdefs.h" 8657 #include "confdefs.h"
9467 8658
9468 int main() { 8659 int main() {
9469 } $ac_kw foo() { 8660 } $ac_kw foo() {
9470 ; return 0; } 8661 ; return 0; }
9471 EOF 8662 EOF
9472 if { (eval echo configure:9473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8663 if { (eval echo configure:8664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9473 rm -rf conftest* 8664 rm -rf conftest*
9474 ac_cv_c_inline=$ac_kw; break 8665 ac_cv_c_inline=$ac_kw; break
9475 else 8666 else
9476 echo "configure: failed program was:" >&5 8667 echo "configure: failed program was:" >&5
9477 cat conftest.$ac_ext >&5 8668 cat conftest.$ac_ext >&5
9514 echo " xemacs will be linked with \"inline.o\"" 8705 echo " xemacs will be linked with \"inline.o\""
9515 fi 8706 fi
9516 fi 8707 fi
9517 8708
9518 8709
9519 if test "$__DECC" != "yes"; then
9520 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 8710 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9521 # for constant arguments. Useless! 8711 # for constant arguments. Useless!
9522 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 8712 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
9523 echo "configure:9524: checking for working alloca.h" >&5 8713 echo "configure:8714: checking for working alloca.h" >&5
9524 8714
9525 cat > conftest.$ac_ext <<EOF 8715 cat > conftest.$ac_ext <<EOF
9526 #line 9527 "configure" 8716 #line 8717 "configure"
9527 #include "confdefs.h" 8717 #include "confdefs.h"
9528 #include <alloca.h> 8718 #include <alloca.h>
9529 int main() { 8719 int main() {
9530 char *p = alloca(2 * sizeof(int)); 8720 char *p = alloca(2 * sizeof(int));
9531 ; return 0; } 8721 ; return 0; }
9532 EOF 8722 EOF
9533 if { (eval echo configure:9534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8723 if { (eval echo configure:8724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9534 rm -rf conftest* 8724 rm -rf conftest*
9535 ac_cv_header_alloca_h=yes 8725 ac_cv_header_alloca_h=yes
9536 else 8726 else
9537 echo "configure: failed program was:" >&5 8727 echo "configure: failed program was:" >&5
9538 cat conftest.$ac_ext >&5 8728 cat conftest.$ac_ext >&5
9552 } 8742 }
9553 8743
9554 fi 8744 fi
9555 8745
9556 echo $ac_n "checking for alloca""... $ac_c" 1>&6 8746 echo $ac_n "checking for alloca""... $ac_c" 1>&6
9557 echo "configure:9558: checking for alloca" >&5 8747 echo "configure:8748: checking for alloca" >&5
9558 8748
9559 cat > conftest.$ac_ext <<EOF 8749 cat > conftest.$ac_ext <<EOF
9560 #line 9561 "configure" 8750 #line 8751 "configure"
9561 #include "confdefs.h" 8751 #include "confdefs.h"
9562 8752
9563 #ifdef __GNUC__ 8753 #ifdef __GNUC__
9564 # define alloca __builtin_alloca 8754 # define alloca __builtin_alloca
9565 #else 8755 #else
9566 # ifdef _MSC_VER 8756 # if HAVE_ALLOCA_H
9567 # include <malloc.h> 8757 # include <alloca.h>
9568 # define alloca _alloca
9569 # else 8758 # else
9570 # if HAVE_ALLOCA_H 8759 # ifdef _AIX
9571 # include <alloca.h> 8760 #pragma alloca
9572 # else 8761 # else
9573 # ifdef _AIX 8762 # ifndef alloca /* predefined by HP cc +Olibcalls */
9574 #pragma alloca
9575 # else
9576 # ifndef alloca /* predefined by HP cc +Olibcalls */
9577 char *alloca (); 8763 char *alloca ();
9578 # endif
9579 # endif 8764 # endif
9580 # endif 8765 # endif
9581 # endif 8766 # endif
9582 #endif 8767 #endif
9583 8768
9584 int main() { 8769 int main() {
9585 char *p = (char *) alloca(1); 8770 char *p = (char *) alloca(1);
9586 ; return 0; } 8771 ; return 0; }
9587 EOF 8772 EOF
9588 if { (eval echo configure:9589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8773 if { (eval echo configure:8774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9589 rm -rf conftest* 8774 rm -rf conftest*
9590 ac_cv_func_alloca_works=yes 8775 ac_cv_func_alloca_works=yes
9591 else 8776 else
9592 echo "configure: failed program was:" >&5 8777 echo "configure: failed program was:" >&5
9593 cat conftest.$ac_ext >&5 8778 cat conftest.$ac_ext >&5
9611 if test $ac_cv_func_alloca_works = no; then 8796 if test $ac_cv_func_alloca_works = no; then
9612 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 8797 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9613 # that cause trouble. Some versions do not even contain alloca or 8798 # that cause trouble. Some versions do not even contain alloca or
9614 # contain a buggy version. If you still want to use their alloca, 8799 # contain a buggy version. If you still want to use their alloca,
9615 # use ar to extract alloca.o from them instead of compiling alloca.c. 8800 # use ar to extract alloca.o from them instead of compiling alloca.c.
9616 ALLOCA=alloca.${ac_objext} 8801 ALLOCA=alloca.o
9617 { test "$extra_verbose" = "yes" && cat << \EOF 8802 { test "$extra_verbose" = "yes" && cat << \EOF
9618 Defining C_ALLOCA 8803 Defining C_ALLOCA
9619 EOF 8804 EOF
9620 cat >> confdefs.h <<\EOF 8805 cat >> confdefs.h <<\EOF
9621 #define C_ALLOCA 1 8806 #define C_ALLOCA 1
9622 EOF 8807 EOF
9623 } 8808 }
9624 8809
9625 8810
9626 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 8811 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
9627 echo "configure:9628: checking whether alloca needs Cray hooks" >&5 8812 echo "configure:8813: checking whether alloca needs Cray hooks" >&5
9628 8813
9629 cat > conftest.$ac_ext <<EOF 8814 cat > conftest.$ac_ext <<EOF
9630 #line 9631 "configure" 8815 #line 8816 "configure"
9631 #include "confdefs.h" 8816 #include "confdefs.h"
9632 #if defined(CRAY) && ! defined(CRAY2) 8817 #if defined(CRAY) && ! defined(CRAY2)
9633 webecray 8818 webecray
9634 #else 8819 #else
9635 wenotbecray 8820 wenotbecray
9649 8834
9650 echo "$ac_t""$ac_cv_os_cray" 1>&6 8835 echo "$ac_t""$ac_cv_os_cray" 1>&6
9651 if test $ac_cv_os_cray = yes; then 8836 if test $ac_cv_os_cray = yes; then
9652 for ac_func in _getb67 GETB67 getb67; do 8837 for ac_func in _getb67 GETB67 getb67; do
9653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9654 echo "configure:9655: checking for $ac_func" >&5 8839 echo "configure:8840: checking for $ac_func" >&5
9655 8840
9656 cat > conftest.$ac_ext <<EOF 8841 cat > conftest.$ac_ext <<EOF
9657 #line 9658 "configure" 8842 #line 8843 "configure"
9658 #include "confdefs.h" 8843 #include "confdefs.h"
9659 /* System header to define __stub macros and hopefully few prototypes, 8844 /* System header to define __stub macros and hopefully few prototypes,
9660 which can conflict with char $ac_func(); below. */ 8845 which can conflict with char $ac_func(); below. */
9661 #include <assert.h> 8846 #include <assert.h>
9662 /* Override any gcc2 internal prototype to avoid an error. */ 8847 /* Override any gcc2 internal prototype to avoid an error. */
9675 $ac_func(); 8860 $ac_func();
9676 #endif 8861 #endif
9677 8862
9678 ; return 0; } 8863 ; return 0; }
9679 EOF 8864 EOF
9680 if { (eval echo configure:9681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8865 if { (eval echo configure:8866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9681 rm -rf conftest* 8866 rm -rf conftest*
9682 eval "ac_cv_func_$ac_func=yes" 8867 eval "ac_cv_func_$ac_func=yes"
9683 else 8868 else
9684 echo "configure: failed program was:" >&5 8869 echo "configure: failed program was:" >&5
9685 cat conftest.$ac_ext >&5 8870 cat conftest.$ac_ext >&5
9705 8890
9706 done 8891 done
9707 fi 8892 fi
9708 8893
9709 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 8894 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
9710 echo "configure:9711: checking stack direction for C alloca" >&5 8895 echo "configure:8896: checking stack direction for C alloca" >&5
9711 8896
9712 cat > conftest.$ac_ext <<EOF 8897 cat > conftest.$ac_ext <<EOF
9713 #line 9714 "configure" 8898 #line 8899 "configure"
9714 #include "confdefs.h" 8899 #include "confdefs.h"
9715 find_stack_direction () 8900 find_stack_direction ()
9716 { 8901 {
9717 static char *addr = 0; 8902 static char *addr = 0;
9718 auto char dummy; 8903 auto char dummy;
9727 main () 8912 main ()
9728 { 8913 {
9729 exit (find_stack_direction() < 0); 8914 exit (find_stack_direction() < 0);
9730 } 8915 }
9731 EOF 8916 EOF
9732 if { (eval echo configure:9733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 8917 if { (eval echo configure:8918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
9733 then 8918 then
9734 ac_cv_c_stack_direction=1 8919 ac_cv_c_stack_direction=1
9735 else 8920 else
9736 conftest_rc="$?"
9737 echo "configure: failed program was:" >&5 8921 echo "configure: failed program was:" >&5
9738 cat conftest.$ac_ext >&5 8922 cat conftest.$ac_ext >&5
9739 rm -fr conftest* 8923 rm -fr conftest*
9740 ac_cv_c_stack_direction=-1 8924 ac_cv_c_stack_direction=-1
9741 fi 8925 fi
9753 fi 8937 fi
9754 8938
9755 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then 8939 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
9756 echo " xemacs will be linked with \"$ALLOCA\"" 8940 echo " xemacs will be linked with \"$ALLOCA\""
9757 fi 8941 fi
9758 fi
9759 8942
9760 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 8943 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
9761 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 8944 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
9762 echo "configure:9763: checking for vfork.h" >&5 8945 echo "configure:8946: checking for vfork.h" >&5
9763 8946
9764 cat > conftest.$ac_ext <<EOF 8947 cat > conftest.$ac_ext <<EOF
9765 #line 9766 "configure" 8948 #line 8949 "configure"
9766 #include "confdefs.h" 8949 #include "confdefs.h"
9767 #include <vfork.h> 8950 #include <vfork.h>
9768 EOF 8951 EOF
9769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9770 { (eval echo configure:9771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8953 { (eval echo configure:8954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9771 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8954 ac_err=`grep -v '^ *+' conftest.out`
9772 if test -z "$ac_err"; then 8955 if test -z "$ac_err"; then
9773 rm -rf conftest* 8956 rm -rf conftest*
9774 eval "ac_cv_header_$ac_safe=yes" 8957 eval "ac_cv_header_$ac_safe=yes"
9775 else 8958 else
9776 echo "$ac_err" >&5 8959 echo "$ac_err" >&5
9793 else 8976 else
9794 echo "$ac_t""no" 1>&6 8977 echo "$ac_t""no" 1>&6
9795 fi 8978 fi
9796 8979
9797 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 8980 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
9798 echo "configure:9799: checking for working vfork" >&5 8981 echo "configure:8982: checking for working vfork" >&5
9799 8982
9800 cat > conftest.$ac_ext <<EOF 8983 cat > conftest.$ac_ext <<EOF
9801 #line 9802 "configure" 8984 #line 8985 "configure"
9802 #include "confdefs.h" 8985 #include "confdefs.h"
9803 /* Thanks to Paul Eggert for this test. */ 8986 /* Thanks to Paul Eggert for this test. */
9804 #include <stdio.h> 8987 #include <stdio.h>
9805 #include <sys/types.h> 8988 #include <sys/types.h>
9806 #include <sys/stat.h> 8989 #include <sys/stat.h>
9891 || fstat(fileno(stdout), &st) != 0 9074 || fstat(fileno(stdout), &st) != 0
9892 ); 9075 );
9893 } 9076 }
9894 } 9077 }
9895 EOF 9078 EOF
9896 if { (eval echo configure:9897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9079 if { (eval echo configure:9080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
9897 then 9080 then
9898 ac_cv_func_vfork_works=yes 9081 ac_cv_func_vfork_works=yes
9899 else 9082 else
9900 conftest_rc="$?"
9901 echo "configure: failed program was:" >&5 9083 echo "configure: failed program was:" >&5
9902 cat conftest.$ac_ext >&5 9084 cat conftest.$ac_ext >&5
9903 rm -fr conftest* 9085 rm -fr conftest*
9904 ac_cv_func_vfork_works=no 9086 ac_cv_func_vfork_works=no
9905 fi 9087 fi
9917 9099
9918 fi 9100 fi
9919 9101
9920 9102
9921 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 9103 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
9922 echo "configure:9923: checking for working strcoll" >&5 9104 echo "configure:9105: checking for working strcoll" >&5
9923 9105
9924 cat > conftest.$ac_ext <<EOF 9106 cat > conftest.$ac_ext <<EOF
9925 #line 9926 "configure" 9107 #line 9108 "configure"
9926 #include "confdefs.h" 9108 #include "confdefs.h"
9927 #include <string.h> 9109 #include <string.h>
9928 main () 9110 main ()
9929 { 9111 {
9930 exit (strcoll ("abc", "def") >= 0 || 9112 exit (strcoll ("abc", "def") >= 0 ||
9931 strcoll ("ABC", "DEF") >= 0 || 9113 strcoll ("ABC", "DEF") >= 0 ||
9932 strcoll ("123", "456") >= 0); 9114 strcoll ("123", "456") >= 0);
9933 } 9115 }
9934 EOF 9116 EOF
9935 if { (eval echo configure:9936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9117 if { (eval echo configure:9118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
9936 then 9118 then
9937 ac_cv_func_strcoll_works=yes 9119 ac_cv_func_strcoll_works=yes
9938 else 9120 else
9939 conftest_rc="$?"
9940 echo "configure: failed program was:" >&5 9121 echo "configure: failed program was:" >&5
9941 cat conftest.$ac_ext >&5 9122 cat conftest.$ac_ext >&5
9942 rm -fr conftest* 9123 rm -fr conftest*
9943 ac_cv_func_strcoll_works=no 9124 ac_cv_func_strcoll_works=no
9944 fi 9125 fi
9958 9139
9959 9140
9960 for ac_func in getpgrp 9141 for ac_func in getpgrp
9961 do 9142 do
9962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9963 echo "configure:9964: checking for $ac_func" >&5 9144 echo "configure:9145: checking for $ac_func" >&5
9964 9145
9965 cat > conftest.$ac_ext <<EOF 9146 cat > conftest.$ac_ext <<EOF
9966 #line 9967 "configure" 9147 #line 9148 "configure"
9967 #include "confdefs.h" 9148 #include "confdefs.h"
9968 /* System header to define __stub macros and hopefully few prototypes, 9149 /* System header to define __stub macros and hopefully few prototypes,
9969 which can conflict with char $ac_func(); below. */ 9150 which can conflict with char $ac_func(); below. */
9970 #include <assert.h> 9151 #include <assert.h>
9971 /* Override any gcc2 internal prototype to avoid an error. */ 9152 /* Override any gcc2 internal prototype to avoid an error. */
9984 $ac_func(); 9165 $ac_func();
9985 #endif 9166 #endif
9986 9167
9987 ; return 0; } 9168 ; return 0; }
9988 EOF 9169 EOF
9989 if { (eval echo configure:9990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9170 if { (eval echo configure:9171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9990 rm -rf conftest* 9171 rm -rf conftest*
9991 eval "ac_cv_func_$ac_func=yes" 9172 eval "ac_cv_func_$ac_func=yes"
9992 else 9173 else
9993 echo "configure: failed program was:" >&5 9174 echo "configure: failed program was:" >&5
9994 cat conftest.$ac_ext >&5 9175 cat conftest.$ac_ext >&5
10012 echo "$ac_t""no" 1>&6 9193 echo "$ac_t""no" 1>&6
10013 fi 9194 fi
10014 done 9195 done
10015 9196
10016 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 9197 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
10017 echo "configure:10018: checking whether getpgrp takes no argument" >&5 9198 echo "configure:9199: checking whether getpgrp takes no argument" >&5
10018 9199
10019 cat > conftest.$ac_ext <<EOF 9200 cat > conftest.$ac_ext <<EOF
10020 #line 10021 "configure" 9201 #line 9202 "configure"
10021 #include "confdefs.h" 9202 #include "confdefs.h"
10022 9203
10023 /* 9204 /*
10024 * If this system has a BSD-style getpgrp(), 9205 * If this system has a BSD-style getpgrp(),
10025 * which takes a pid argument, exit unsuccessfully. 9206 * which takes a pid argument, exit unsuccessfully.
10070 exit(s>>8); 9251 exit(s>>8);
10071 } 9252 }
10072 } 9253 }
10073 9254
10074 EOF 9255 EOF
10075 if { (eval echo configure:10076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9256 if { (eval echo configure:9257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
10076 then 9257 then
10077 ac_cv_func_getpgrp_void=yes 9258 ac_cv_func_getpgrp_void=yes
10078 else 9259 else
10079 conftest_rc="$?"
10080 echo "configure: failed program was:" >&5 9260 echo "configure: failed program was:" >&5
10081 cat conftest.$ac_ext >&5 9261 cat conftest.$ac_ext >&5
10082 rm -fr conftest* 9262 rm -fr conftest*
10083 ac_cv_func_getpgrp_void=no 9263 ac_cv_func_getpgrp_void=no
10084 fi 9264 fi
10097 9277
10098 fi 9278 fi
10099 9279
10100 9280
10101 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 9281 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10102 echo "configure:10103: checking for working mmap" >&5 9282 echo "configure:9283: checking for working mmap" >&5
10103 case "$opsys" in ultrix* ) have_mmap=no ;; *) 9283 case "$opsys" in ultrix* ) have_mmap=no ;; *)
10104 cat > conftest.$ac_ext <<EOF 9284 cat > conftest.$ac_ext <<EOF
10105 #line 10106 "configure" 9285 #line 9286 "configure"
10106 #include "confdefs.h" 9286 #include "confdefs.h"
10107 #include <stdio.h> 9287 #include <stdio.h>
10108 #include <unistd.h> 9288 #include <unistd.h>
10109 #include <fcntl.h> 9289 #include <fcntl.h>
10110 #include <sys/mman.h> 9290 #include <sys/mman.h>
10133 return 0; 9313 return 0;
10134 perror ("conftest: mmap failed"); 9314 perror ("conftest: mmap failed");
10135 return 1; 9315 return 1;
10136 } 9316 }
10137 EOF 9317 EOF
10138 if { (eval echo configure:10139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9318 if { (eval echo configure:9319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
10139 then 9319 then
10140 have_mmap=yes 9320 have_mmap=yes
10141 else 9321 else
10142 conftest_rc="$?"
10143 echo "configure: failed program was:" >&5 9322 echo "configure: failed program was:" >&5
10144 cat conftest.$ac_ext >&5 9323 cat conftest.$ac_ext >&5
10145 rm -fr conftest* 9324 rm -fr conftest*
10146 have_mmap=no 9325 have_mmap=no
10147 fi 9326 fi
10168 } 9347 }
10169 9348
10170 9349
10171 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 9350 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
10172 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 9351 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
10173 echo "configure:10174: checking for termios.h" >&5 9352 echo "configure:9353: checking for termios.h" >&5
10174 9353
10175 cat > conftest.$ac_ext <<EOF 9354 cat > conftest.$ac_ext <<EOF
10176 #line 10177 "configure" 9355 #line 9356 "configure"
10177 #include "confdefs.h" 9356 #include "confdefs.h"
10178 #include <termios.h> 9357 #include <termios.h>
10179 EOF 9358 EOF
10180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10181 { (eval echo configure:10182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9360 { (eval echo configure:9361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10182 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9361 ac_err=`grep -v '^ *+' conftest.out`
10183 if test -z "$ac_err"; then 9362 if test -z "$ac_err"; then
10184 rm -rf conftest* 9363 rm -rf conftest*
10185 eval "ac_cv_header_$ac_safe=yes" 9364 eval "ac_cv_header_$ac_safe=yes"
10186 else 9365 else
10187 echo "$ac_err" >&5 9366 echo "$ac_err" >&5
10219 9398
10220 else 9399 else
10221 echo "$ac_t""no" 1>&6 9400 echo "$ac_t""no" 1>&6
10222 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 9401 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
10223 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 9402 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
10224 echo "configure:10225: checking for termio.h" >&5 9403 echo "configure:9404: checking for termio.h" >&5
10225 9404
10226 cat > conftest.$ac_ext <<EOF 9405 cat > conftest.$ac_ext <<EOF
10227 #line 10228 "configure" 9406 #line 9407 "configure"
10228 #include "confdefs.h" 9407 #include "confdefs.h"
10229 #include <termio.h> 9408 #include <termio.h>
10230 EOF 9409 EOF
10231 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10232 { (eval echo configure:10233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9411 { (eval echo configure:9412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10233 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9412 ac_err=`grep -v '^ *+' conftest.out`
10234 if test -z "$ac_err"; then 9413 if test -z "$ac_err"; then
10235 rm -rf conftest* 9414 rm -rf conftest*
10236 eval "ac_cv_header_$ac_safe=yes" 9415 eval "ac_cv_header_$ac_safe=yes"
10237 else 9416 else
10238 echo "$ac_err" >&5 9417 echo "$ac_err" >&5
10259 fi 9438 fi
10260 9439
10261 9440
10262 9441
10263 echo $ac_n "checking for socket""... $ac_c" 1>&6 9442 echo $ac_n "checking for socket""... $ac_c" 1>&6
10264 echo "configure:10265: checking for socket" >&5 9443 echo "configure:9444: checking for socket" >&5
10265 9444
10266 cat > conftest.$ac_ext <<EOF 9445 cat > conftest.$ac_ext <<EOF
10267 #line 10268 "configure" 9446 #line 9447 "configure"
10268 #include "confdefs.h" 9447 #include "confdefs.h"
10269 /* System header to define __stub macros and hopefully few prototypes, 9448 /* System header to define __stub macros and hopefully few prototypes,
10270 which can conflict with char socket(); below. */ 9449 which can conflict with char socket(); below. */
10271 #include <assert.h> 9450 #include <assert.h>
10272 /* Override any gcc2 internal prototype to avoid an error. */ 9451 /* Override any gcc2 internal prototype to avoid an error. */
10285 socket(); 9464 socket();
10286 #endif 9465 #endif
10287 9466
10288 ; return 0; } 9467 ; return 0; }
10289 EOF 9468 EOF
10290 if { (eval echo configure:10291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9469 if { (eval echo configure:9470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10291 rm -rf conftest* 9470 rm -rf conftest*
10292 eval "ac_cv_func_socket=yes" 9471 eval "ac_cv_func_socket=yes"
10293 else 9472 else
10294 echo "configure: failed program was:" >&5 9473 echo "configure: failed program was:" >&5
10295 cat conftest.$ac_ext >&5 9474 cat conftest.$ac_ext >&5
10300 9479
10301 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 9480 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
10302 echo "$ac_t""yes" 1>&6 9481 echo "$ac_t""yes" 1>&6
10303 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 9482 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
10304 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 9483 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
10305 echo "configure:10306: checking for netinet/in.h" >&5 9484 echo "configure:9485: checking for netinet/in.h" >&5
10306 9485
10307 cat > conftest.$ac_ext <<EOF 9486 cat > conftest.$ac_ext <<EOF
10308 #line 10309 "configure" 9487 #line 9488 "configure"
10309 #include "confdefs.h" 9488 #include "confdefs.h"
10310 #include <netinet/in.h> 9489 #include <netinet/in.h>
10311 EOF 9490 EOF
10312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10313 { (eval echo configure:10314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9492 { (eval echo configure:9493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10314 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9493 ac_err=`grep -v '^ *+' conftest.out`
10315 if test -z "$ac_err"; then 9494 if test -z "$ac_err"; then
10316 rm -rf conftest* 9495 rm -rf conftest*
10317 eval "ac_cv_header_$ac_safe=yes" 9496 eval "ac_cv_header_$ac_safe=yes"
10318 else 9497 else
10319 echo "$ac_err" >&5 9498 echo "$ac_err" >&5
10325 rm -f conftest* 9504 rm -f conftest*
10326 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9505 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10327 echo "$ac_t""yes" 1>&6 9506 echo "$ac_t""yes" 1>&6
10328 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 9507 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
10329 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 9508 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
10330 echo "configure:10331: checking for arpa/inet.h" >&5 9509 echo "configure:9510: checking for arpa/inet.h" >&5
10331 9510
10332 cat > conftest.$ac_ext <<EOF 9511 cat > conftest.$ac_ext <<EOF
10333 #line 10334 "configure" 9512 #line 9513 "configure"
10334 #include "confdefs.h" 9513 #include "confdefs.h"
10335 #include <arpa/inet.h> 9514 #include <arpa/inet.h>
10336 EOF 9515 EOF
10337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9516 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10338 { (eval echo configure:10339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9517 { (eval echo configure:9518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9518 ac_err=`grep -v '^ *+' conftest.out`
10340 if test -z "$ac_err"; then 9519 if test -z "$ac_err"; then
10341 rm -rf conftest* 9520 rm -rf conftest*
10342 eval "ac_cv_header_$ac_safe=yes" 9521 eval "ac_cv_header_$ac_safe=yes"
10343 else 9522 else
10344 echo "$ac_err" >&5 9523 echo "$ac_err" >&5
10358 #define HAVE_SOCKETS 1 9537 #define HAVE_SOCKETS 1
10359 EOF 9538 EOF
10360 } 9539 }
10361 9540
10362 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 9541 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
10363 echo "configure:10364: checking "for sun_len member in struct sockaddr_un"" >&5 9542 echo "configure:9543: checking "for sun_len member in struct sockaddr_un"" >&5
10364 cat > conftest.$ac_ext <<EOF 9543 cat > conftest.$ac_ext <<EOF
10365 #line 10366 "configure" 9544 #line 9545 "configure"
10366 #include "confdefs.h" 9545 #include "confdefs.h"
10367 9546
10368 #include <sys/types.h> 9547 #include <sys/types.h>
10369 #include <sys/socket.h> 9548 #include <sys/socket.h>
10370 #include <sys/un.h> 9549 #include <sys/un.h>
10371 9550
10372 int main() { 9551 int main() {
10373 static struct sockaddr_un x; x.sun_len = 1; 9552 static struct sockaddr_un x; x.sun_len = 1;
10374 ; return 0; } 9553 ; return 0; }
10375 EOF 9554 EOF
10376 if { (eval echo configure:10377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9555 if { (eval echo configure:9556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10377 rm -rf conftest* 9556 rm -rf conftest*
10378 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 9557 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10379 Defining HAVE_SOCKADDR_SUN_LEN 9558 Defining HAVE_SOCKADDR_SUN_LEN
10380 EOF 9559 EOF
10381 cat >> confdefs.h <<\EOF 9560 cat >> confdefs.h <<\EOF
10389 rm -rf conftest* 9568 rm -rf conftest*
10390 echo "$ac_t""no" 1>&6 9569 echo "$ac_t""no" 1>&6
10391 fi 9570 fi
10392 rm -f conftest* 9571 rm -f conftest*
10393 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 9572 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
10394 echo "configure:10395: checking "for ip_mreq struct in netinet/in.h"" >&5 9573 echo "configure:9574: checking "for ip_mreq struct in netinet/in.h"" >&5
10395 cat > conftest.$ac_ext <<EOF 9574 cat > conftest.$ac_ext <<EOF
10396 #line 10397 "configure" 9575 #line 9576 "configure"
10397 #include "confdefs.h" 9576 #include "confdefs.h"
10398 9577
10399 #include <sys/types.h> 9578 #include <sys/types.h>
10400 #include <netinet/in.h> 9579 #include <netinet/in.h>
10401 9580
10402 int main() { 9581 int main() {
10403 static struct ip_mreq x; 9582 static struct ip_mreq x;
10404 ; return 0; } 9583 ; return 0; }
10405 EOF 9584 EOF
10406 if { (eval echo configure:10407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9585 if { (eval echo configure:9586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10407 rm -rf conftest* 9586 rm -rf conftest*
10408 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 9587 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10409 Defining HAVE_MULTICAST 9588 Defining HAVE_MULTICAST
10410 EOF 9589 EOF
10411 cat >> confdefs.h <<\EOF 9590 cat >> confdefs.h <<\EOF
10432 echo "$ac_t""no" 1>&6 9611 echo "$ac_t""no" 1>&6
10433 fi 9612 fi
10434 9613
10435 9614
10436 echo $ac_n "checking for msgget""... $ac_c" 1>&6 9615 echo $ac_n "checking for msgget""... $ac_c" 1>&6
10437 echo "configure:10438: checking for msgget" >&5 9616 echo "configure:9617: checking for msgget" >&5
10438 9617
10439 cat > conftest.$ac_ext <<EOF 9618 cat > conftest.$ac_ext <<EOF
10440 #line 10441 "configure" 9619 #line 9620 "configure"
10441 #include "confdefs.h" 9620 #include "confdefs.h"
10442 /* System header to define __stub macros and hopefully few prototypes, 9621 /* System header to define __stub macros and hopefully few prototypes,
10443 which can conflict with char msgget(); below. */ 9622 which can conflict with char msgget(); below. */
10444 #include <assert.h> 9623 #include <assert.h>
10445 /* Override any gcc2 internal prototype to avoid an error. */ 9624 /* Override any gcc2 internal prototype to avoid an error. */
10458 msgget(); 9637 msgget();
10459 #endif 9638 #endif
10460 9639
10461 ; return 0; } 9640 ; return 0; }
10462 EOF 9641 EOF
10463 if { (eval echo configure:10464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9642 if { (eval echo configure:9643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10464 rm -rf conftest* 9643 rm -rf conftest*
10465 eval "ac_cv_func_msgget=yes" 9644 eval "ac_cv_func_msgget=yes"
10466 else 9645 else
10467 echo "configure: failed program was:" >&5 9646 echo "configure: failed program was:" >&5
10468 cat conftest.$ac_ext >&5 9647 cat conftest.$ac_ext >&5
10473 9652
10474 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 9653 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
10475 echo "$ac_t""yes" 1>&6 9654 echo "$ac_t""yes" 1>&6
10476 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 9655 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
10477 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 9656 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
10478 echo "configure:10479: checking for sys/ipc.h" >&5 9657 echo "configure:9658: checking for sys/ipc.h" >&5
10479 9658
10480 cat > conftest.$ac_ext <<EOF 9659 cat > conftest.$ac_ext <<EOF
10481 #line 10482 "configure" 9660 #line 9661 "configure"
10482 #include "confdefs.h" 9661 #include "confdefs.h"
10483 #include <sys/ipc.h> 9662 #include <sys/ipc.h>
10484 EOF 9663 EOF
10485 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9664 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10486 { (eval echo configure:10487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9665 { (eval echo configure:9666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10487 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9666 ac_err=`grep -v '^ *+' conftest.out`
10488 if test -z "$ac_err"; then 9667 if test -z "$ac_err"; then
10489 rm -rf conftest* 9668 rm -rf conftest*
10490 eval "ac_cv_header_$ac_safe=yes" 9669 eval "ac_cv_header_$ac_safe=yes"
10491 else 9670 else
10492 echo "$ac_err" >&5 9671 echo "$ac_err" >&5
10498 rm -f conftest* 9677 rm -f conftest*
10499 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9678 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10500 echo "$ac_t""yes" 1>&6 9679 echo "$ac_t""yes" 1>&6
10501 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 9680 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
10502 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 9681 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
10503 echo "configure:10504: checking for sys/msg.h" >&5 9682 echo "configure:9683: checking for sys/msg.h" >&5
10504 9683
10505 cat > conftest.$ac_ext <<EOF 9684 cat > conftest.$ac_ext <<EOF
10506 #line 10507 "configure" 9685 #line 9686 "configure"
10507 #include "confdefs.h" 9686 #include "confdefs.h"
10508 #include <sys/msg.h> 9687 #include <sys/msg.h>
10509 EOF 9688 EOF
10510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10511 { (eval echo configure:10512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9690 { (eval echo configure:9691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10512 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9691 ac_err=`grep -v '^ *+' conftest.out`
10513 if test -z "$ac_err"; then 9692 if test -z "$ac_err"; then
10514 rm -rf conftest* 9693 rm -rf conftest*
10515 eval "ac_cv_header_$ac_safe=yes" 9694 eval "ac_cv_header_$ac_safe=yes"
10516 else 9695 else
10517 echo "$ac_err" >&5 9696 echo "$ac_err" >&5
10544 fi 9723 fi
10545 9724
10546 9725
10547 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 9726 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
10548 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 9727 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
10549 echo "configure:10550: checking for dirent.h" >&5 9728 echo "configure:9729: checking for dirent.h" >&5
10550 9729
10551 cat > conftest.$ac_ext <<EOF 9730 cat > conftest.$ac_ext <<EOF
10552 #line 10553 "configure" 9731 #line 9732 "configure"
10553 #include "confdefs.h" 9732 #include "confdefs.h"
10554 #include <dirent.h> 9733 #include <dirent.h>
10555 EOF 9734 EOF
10556 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10557 { (eval echo configure:10558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9736 { (eval echo configure:9737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10558 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9737 ac_err=`grep -v '^ *+' conftest.out`
10559 if test -z "$ac_err"; then 9738 if test -z "$ac_err"; then
10560 rm -rf conftest* 9739 rm -rf conftest*
10561 eval "ac_cv_header_$ac_safe=yes" 9740 eval "ac_cv_header_$ac_safe=yes"
10562 else 9741 else
10563 echo "$ac_err" >&5 9742 echo "$ac_err" >&5
10579 9758
10580 else 9759 else
10581 echo "$ac_t""no" 1>&6 9760 echo "$ac_t""no" 1>&6
10582 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 9761 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
10583 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 9762 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
10584 echo "configure:10585: checking for sys/dir.h" >&5 9763 echo "configure:9764: checking for sys/dir.h" >&5
10585 9764
10586 cat > conftest.$ac_ext <<EOF 9765 cat > conftest.$ac_ext <<EOF
10587 #line 10588 "configure" 9766 #line 9767 "configure"
10588 #include "confdefs.h" 9767 #include "confdefs.h"
10589 #include <sys/dir.h> 9768 #include <sys/dir.h>
10590 EOF 9769 EOF
10591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9770 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10592 { (eval echo configure:10593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9771 { (eval echo configure:9772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9772 ac_err=`grep -v '^ *+' conftest.out`
10594 if test -z "$ac_err"; then 9773 if test -z "$ac_err"; then
10595 rm -rf conftest* 9774 rm -rf conftest*
10596 eval "ac_cv_header_$ac_safe=yes" 9775 eval "ac_cv_header_$ac_safe=yes"
10597 else 9776 else
10598 echo "$ac_err" >&5 9777 echo "$ac_err" >&5
10620 fi 9799 fi
10621 9800
10622 9801
10623 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 9802 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
10624 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 9803 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
10625 echo "configure:10626: checking for nlist.h" >&5 9804 echo "configure:9805: checking for nlist.h" >&5
10626 9805
10627 cat > conftest.$ac_ext <<EOF 9806 cat > conftest.$ac_ext <<EOF
10628 #line 10629 "configure" 9807 #line 9808 "configure"
10629 #include "confdefs.h" 9808 #include "confdefs.h"
10630 #include <nlist.h> 9809 #include <nlist.h>
10631 EOF 9810 EOF
10632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10633 { (eval echo configure:10634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9812 { (eval echo configure:9813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10634 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9813 ac_err=`grep -v '^ *+' conftest.out`
10635 if test -z "$ac_err"; then 9814 if test -z "$ac_err"; then
10636 rm -rf conftest* 9815 rm -rf conftest*
10637 eval "ac_cv_header_$ac_safe=yes" 9816 eval "ac_cv_header_$ac_safe=yes"
10638 else 9817 else
10639 echo "$ac_err" >&5 9818 echo "$ac_err" >&5
10658 fi 9837 fi
10659 9838
10660 9839
10661 9840
10662 echo "checking "for sound support"" 1>&6 9841 echo "checking "for sound support"" 1>&6
10663 echo "configure:10664: checking "for sound support"" >&5 9842 echo "configure:9843: checking "for sound support"" >&5
10664 case "$with_sound" in 9843 case "$with_sound" in
10665 native | both ) with_native_sound=yes;; 9844 native | both ) with_native_sound=yes;;
10666 nas | no ) with_native_sound=no;; 9845 nas | no ) with_native_sound=no;;
10667 esac 9846 esac
10668 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 9847 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
10669 9848
10670 if test "$with_native_sound" != "no"; then 9849 if test "$with_native_sound" != "no"; then
10671 if test -n "$native_sound_lib"; then 9850 if test -n "$native_sound_lib"; then
10672 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 9851 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
10673 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 9852 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
10674 echo "configure:10675: checking for multimedia/audio_device.h" >&5 9853 echo "configure:9854: checking for multimedia/audio_device.h" >&5
10675 9854
10676 cat > conftest.$ac_ext <<EOF 9855 cat > conftest.$ac_ext <<EOF
10677 #line 10678 "configure" 9856 #line 9857 "configure"
10678 #include "confdefs.h" 9857 #include "confdefs.h"
10679 #include <multimedia/audio_device.h> 9858 #include <multimedia/audio_device.h>
10680 EOF 9859 EOF
10681 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10682 { (eval echo configure:10683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9861 { (eval echo configure:9862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10683 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9862 ac_err=`grep -v '^ *+' conftest.out`
10684 if test -z "$ac_err"; then 9863 if test -z "$ac_err"; then
10685 rm -rf conftest* 9864 rm -rf conftest*
10686 eval "ac_cv_header_$ac_safe=yes" 9865 eval "ac_cv_header_$ac_safe=yes"
10687 else 9866 else
10688 echo "$ac_err" >&5 9867 echo "$ac_err" >&5
10723 9902
10724 if test -z "$sound_found"; then 9903 if test -z "$sound_found"; then
10725 case "$canonical" in 9904 case "$canonical" in
10726 *-sgi-* ) 9905 *-sgi-* )
10727 if test -z "$native_sound_lib"; then 9906 if test -z "$native_sound_lib"; then
10728 ac_safe=`echo "audio.h" | sed 'y%./+-%__p_%'`
10729 echo $ac_n "checking for audio.h""... $ac_c" 1>&6
10730 echo "configure:10731: checking for audio.h" >&5
10731
10732 cat > conftest.$ac_ext <<EOF
10733 #line 10734 "configure"
10734 #include "confdefs.h"
10735 #include <audio.h>
10736 EOF
10737 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10738 { (eval echo configure:10739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10739 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10740 if test -z "$ac_err"; then
10741 rm -rf conftest*
10742 eval "ac_cv_header_$ac_safe=yes"
10743 else
10744 echo "$ac_err" >&5
10745 echo "configure: failed program was:" >&5
10746 cat conftest.$ac_ext >&5
10747 rm -rf conftest*
10748 eval "ac_cv_header_$ac_safe=no"
10749 fi
10750 rm -f conftest*
10751 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10752 echo "$ac_t""yes" 1>&6
10753
10754 9907
10755 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 9908 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
10756 echo "configure:10757: checking for ALopenport in -laudio" >&5 9909 echo "configure:9910: checking for ALopenport in -laudio" >&5
10757 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 9910 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
10758 9911
10759 xe_check_libs=" -laudio " 9912 xe_check_libs=" -laudio "
10760 cat > conftest.$ac_ext <<EOF 9913 cat > conftest.$ac_ext <<EOF
10761 #line 10762 "configure" 9914 #line 9915 "configure"
10762 #include "confdefs.h" 9915 #include "confdefs.h"
10763 /* Override any gcc2 internal prototype to avoid an error. */ 9916 /* Override any gcc2 internal prototype to avoid an error. */
10764 /* We use char because int might match the return type of a gcc2 9917 /* We use char because int might match the return type of a gcc2
10765 builtin and then its argument prototype would still apply. */ 9918 builtin and then its argument prototype would still apply. */
10766 char ALopenport(); 9919 char ALopenport();
10767 9920
10768 int main() { 9921 int main() {
10769 ALopenport() 9922 ALopenport()
10770 ; return 0; } 9923 ; return 0; }
10771 EOF 9924 EOF
10772 if { (eval echo configure:10773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9925 if { (eval echo configure:9926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10773 rm -rf conftest* 9926 rm -rf conftest*
10774 eval "ac_cv_lib_$ac_lib_var=yes" 9927 eval "ac_cv_lib_$ac_lib_var=yes"
10775 else 9928 else
10776 echo "configure: failed program was:" >&5 9929 echo "configure: failed program was:" >&5
10777 cat conftest.$ac_ext >&5 9930 cat conftest.$ac_ext >&5
10786 native_sound_lib="-laudio" 9939 native_sound_lib="-laudio"
10787 else 9940 else
10788 echo "$ac_t""no" 1>&6 9941 echo "$ac_t""no" 1>&6
10789 fi 9942 fi
10790 9943
10791
10792
10793 else
10794 echo "$ac_t""no" 1>&6
10795 fi
10796 9944
10797 fi 9945 fi
10798 if test -n "$native_sound_lib"; then 9946 if test -n "$native_sound_lib"; then
10799 sound_found=yes sound_cflags="" 9947 sound_found=yes sound_cflags=""
10800 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then 9948 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
10803 fi ;; 9951 fi ;;
10804 hppa*-hp-hpux* ) 9952 hppa*-hp-hpux* )
10805 if test -z "$native_sound_lib"; then 9953 if test -z "$native_sound_lib"; then
10806 9954
10807 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 9955 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
10808 echo "configure:10809: checking for AOpenAudio in -lAlib" >&5 9956 echo "configure:9957: checking for AOpenAudio in -lAlib" >&5
10809 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 9957 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
10810 9958
10811 xe_check_libs=" -lAlib " 9959 xe_check_libs=" -lAlib "
10812 cat > conftest.$ac_ext <<EOF 9960 cat > conftest.$ac_ext <<EOF
10813 #line 10814 "configure" 9961 #line 9962 "configure"
10814 #include "confdefs.h" 9962 #include "confdefs.h"
10815 /* Override any gcc2 internal prototype to avoid an error. */ 9963 /* Override any gcc2 internal prototype to avoid an error. */
10816 /* We use char because int might match the return type of a gcc2 9964 /* We use char because int might match the return type of a gcc2
10817 builtin and then its argument prototype would still apply. */ 9965 builtin and then its argument prototype would still apply. */
10818 char AOpenAudio(); 9966 char AOpenAudio();
10819 9967
10820 int main() { 9968 int main() {
10821 AOpenAudio() 9969 AOpenAudio()
10822 ; return 0; } 9970 ; return 0; }
10823 EOF 9971 EOF
10824 if { (eval echo configure:10825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9972 if { (eval echo configure:9973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10825 rm -rf conftest* 9973 rm -rf conftest*
10826 eval "ac_cv_lib_$ac_lib_var=yes" 9974 eval "ac_cv_lib_$ac_lib_var=yes"
10827 else 9975 else
10828 echo "configure: failed program was:" >&5 9976 echo "configure: failed program was:" >&5
10829 cat conftest.$ac_ext >&5 9977 cat conftest.$ac_ext >&5
10857 10005
10858 if test -z "$sound_found"; then 10006 if test -z "$sound_found"; then
10859 for dir in "machine" "sys" "linux"; do 10007 for dir in "machine" "sys" "linux"; do
10860 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 10008 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
10861 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 10009 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
10862 echo "configure:10863: checking for ${dir}/soundcard.h" >&5 10010 echo "configure:10011: checking for ${dir}/soundcard.h" >&5
10863 10011
10864 cat > conftest.$ac_ext <<EOF 10012 cat > conftest.$ac_ext <<EOF
10865 #line 10866 "configure" 10013 #line 10014 "configure"
10866 #include "confdefs.h" 10014 #include "confdefs.h"
10867 #include <${dir}/soundcard.h> 10015 #include <${dir}/soundcard.h>
10868 EOF 10016 EOF
10869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10017 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10870 { (eval echo configure:10871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10018 { (eval echo configure:10019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10871 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10019 ac_err=`grep -v '^ *+' conftest.out`
10872 if test -z "$ac_err"; then 10020 if test -z "$ac_err"; then
10873 rm -rf conftest* 10021 rm -rf conftest*
10874 eval "ac_cv_header_$ac_safe=yes" 10022 eval "ac_cv_header_$ac_safe=yes"
10875 else 10023 else
10876 echo "$ac_err" >&5 10024 echo "$ac_err" >&5
10935 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 10083 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
10936 echo " xemacs will be linked with \"nas.o\"" 10084 echo " xemacs will be linked with \"nas.o\""
10937 fi 10085 fi
10938 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 10086 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
10939 cat > conftest.$ac_ext <<EOF 10087 cat > conftest.$ac_ext <<EOF
10940 #line 10941 "configure" 10088 #line 10089 "configure"
10941 #include "confdefs.h" 10089 #include "confdefs.h"
10942 #include <audio/Xtutil.h> 10090 #include <audio/Xtutil.h>
10943 EOF 10091 EOF
10944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10945 egrep "AuXtErrorJump" >/dev/null 2>&1; then 10093 egrep "AuXtErrorJump" >/dev/null 2>&1; then
10955 } 10103 }
10956 10104
10957 fi 10105 fi
10958 rm -f conftest* 10106 rm -f conftest*
10959 10107
10960 cat > conftest.$ac_ext <<EOF
10961 #line 10962 "configure"
10962 #include "confdefs.h"
10963 #include <audio/fileutil.h>
10964 #ifdef NAS_BIG_ENDIAN
10965 yes
10966 #endif
10967
10968 EOF
10969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10970 egrep "yes" >/dev/null 2>&1; then
10971 rm -rf conftest*
10972 { test "$extra_verbose" = "yes" && cat << \EOF
10973 Defining NAS_USES_OWN_NAMESPACE
10974 EOF
10975 cat >> confdefs.h <<\EOF
10976 #define NAS_USES_OWN_NAMESPACE 1
10977 EOF
10978 }
10979
10980 fi
10981 rm -f conftest*
10982
10983 esac 10108 esac
10984 10109
10985 10110
10986 test -z "$with_tty" && with_tty=yes 10111 test -z "$with_tty" && with_tty=yes
10987 10112
10988 if test "$with_tty" = "yes" ; then 10113 if test "$with_tty" = "yes" ; then
10989 echo "checking for TTY-related features" 1>&6 10114 echo "checking for TTY-related features" 1>&6
10990 echo "configure:10991: checking for TTY-related features" >&5 10115 echo "configure:10116: checking for TTY-related features" >&5
10991 { test "$extra_verbose" = "yes" && cat << \EOF 10116 { test "$extra_verbose" = "yes" && cat << \EOF
10992 Defining HAVE_TTY 10117 Defining HAVE_TTY
10993 EOF 10118 EOF
10994 cat >> confdefs.h <<\EOF 10119 cat >> confdefs.h <<\EOF
10995 #define HAVE_TTY 1 10120 #define HAVE_TTY 1
11001 fi 10126 fi
11002 10127
11003 if test -z "$with_ncurses"; then 10128 if test -z "$with_ncurses"; then
11004 10129
11005 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 10130 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
11006 echo "configure:11007: checking for tgetent in -lncurses" >&5 10131 echo "configure:10132: checking for tgetent in -lncurses" >&5
11007 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 10132 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
11008 10133
11009 xe_check_libs=" -lncurses " 10134 xe_check_libs=" -lncurses "
11010 cat > conftest.$ac_ext <<EOF 10135 cat > conftest.$ac_ext <<EOF
11011 #line 11012 "configure" 10136 #line 10137 "configure"
11012 #include "confdefs.h" 10137 #include "confdefs.h"
11013 /* Override any gcc2 internal prototype to avoid an error. */ 10138 /* Override any gcc2 internal prototype to avoid an error. */
11014 /* We use char because int might match the return type of a gcc2 10139 /* We use char because int might match the return type of a gcc2
11015 builtin and then its argument prototype would still apply. */ 10140 builtin and then its argument prototype would still apply. */
11016 char tgetent(); 10141 char tgetent();
11017 10142
11018 int main() { 10143 int main() {
11019 tgetent() 10144 tgetent()
11020 ; return 0; } 10145 ; return 0; }
11021 EOF 10146 EOF
11022 if { (eval echo configure:11023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10147 if { (eval echo configure:10148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11023 rm -rf conftest* 10148 rm -rf conftest*
11024 eval "ac_cv_lib_$ac_lib_var=yes" 10149 eval "ac_cv_lib_$ac_lib_var=yes"
11025 else 10150 else
11026 echo "configure: failed program was:" >&5 10151 echo "configure: failed program was:" >&5
11027 cat conftest.$ac_ext >&5 10152 cat conftest.$ac_ext >&5
11050 EOF 10175 EOF
11051 } 10176 }
11052 10177
11053 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 10178 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
11054 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 10179 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
11055 echo "configure:11056: checking for ncurses/curses.h" >&5 10180 echo "configure:10181: checking for ncurses/curses.h" >&5
11056 10181
11057 cat > conftest.$ac_ext <<EOF 10182 cat > conftest.$ac_ext <<EOF
11058 #line 11059 "configure" 10183 #line 10184 "configure"
11059 #include "confdefs.h" 10184 #include "confdefs.h"
11060 #include <ncurses/curses.h> 10185 #include <ncurses/curses.h>
11061 EOF 10186 EOF
11062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11063 { (eval echo configure:11064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10188 { (eval echo configure:10189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10189 ac_err=`grep -v '^ *+' conftest.out`
11065 if test -z "$ac_err"; then 10190 if test -z "$ac_err"; then
11066 rm -rf conftest* 10191 rm -rf conftest*
11067 eval "ac_cv_header_$ac_safe=yes" 10192 eval "ac_cv_header_$ac_safe=yes"
11068 else 10193 else
11069 echo "$ac_err" >&5 10194 echo "$ac_err" >&5
11080 echo "$ac_t""no" 1>&6 10205 echo "$ac_t""no" 1>&6
11081 fi 10206 fi
11082 10207
11083 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 10208 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
11084 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 10209 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
11085 echo "configure:11086: checking for ncurses/term.h" >&5 10210 echo "configure:10211: checking for ncurses/term.h" >&5
11086 10211
11087 cat > conftest.$ac_ext <<EOF 10212 cat > conftest.$ac_ext <<EOF
11088 #line 11089 "configure" 10213 #line 10214 "configure"
11089 #include "confdefs.h" 10214 #include "confdefs.h"
11090 #include <ncurses/term.h> 10215 #include <ncurses/term.h>
11091 EOF 10216 EOF
11092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11093 { (eval echo configure:11094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10218 { (eval echo configure:10219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11094 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10219 ac_err=`grep -v '^ *+' conftest.out`
11095 if test -z "$ac_err"; then 10220 if test -z "$ac_err"; then
11096 rm -rf conftest* 10221 rm -rf conftest*
11097 eval "ac_cv_header_$ac_safe=yes" 10222 eval "ac_cv_header_$ac_safe=yes"
11098 else 10223 else
11099 echo "$ac_err" >&5 10224 echo "$ac_err" >&5
11118 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 10243 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
11119 save_c_switch_site="$c_switch_site" 10244 save_c_switch_site="$c_switch_site"
11120 c_switch_site="$c_switch_site -I/usr/include/ncurses" 10245 c_switch_site="$c_switch_site -I/usr/include/ncurses"
11121 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 10246 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
11122 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 10247 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
11123 echo "configure:11124: checking for ncurses/curses.h" >&5 10248 echo "configure:10249: checking for ncurses/curses.h" >&5
11124 10249
11125 cat > conftest.$ac_ext <<EOF 10250 cat > conftest.$ac_ext <<EOF
11126 #line 11127 "configure" 10251 #line 10252 "configure"
11127 #include "confdefs.h" 10252 #include "confdefs.h"
11128 #include <ncurses/curses.h> 10253 #include <ncurses/curses.h>
11129 EOF 10254 EOF
11130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11131 { (eval echo configure:11132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10256 { (eval echo configure:10257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11132 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10257 ac_err=`grep -v '^ *+' conftest.out`
11133 if test -z "$ac_err"; then 10258 if test -z "$ac_err"; then
11134 rm -rf conftest* 10259 rm -rf conftest*
11135 eval "ac_cv_header_$ac_safe=yes" 10260 eval "ac_cv_header_$ac_safe=yes"
11136 else 10261 else
11137 echo "$ac_err" >&5 10262 echo "$ac_err" >&5
11161 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 10286 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11162 else 10287 else
11163 for lib in curses termlib termcap; do 10288 for lib in curses termlib termcap; do
11164 10289
11165 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 10290 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
11166 echo "configure:11167: checking for tgetent in -l$lib" >&5 10291 echo "configure:10292: checking for tgetent in -l$lib" >&5
11167 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 10292 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
11168 10293
11169 xe_check_libs=" -l$lib " 10294 xe_check_libs=" -l$lib "
11170 cat > conftest.$ac_ext <<EOF 10295 cat > conftest.$ac_ext <<EOF
11171 #line 11172 "configure" 10296 #line 10297 "configure"
11172 #include "confdefs.h" 10297 #include "confdefs.h"
11173 /* Override any gcc2 internal prototype to avoid an error. */ 10298 /* Override any gcc2 internal prototype to avoid an error. */
11174 /* We use char because int might match the return type of a gcc2 10299 /* We use char because int might match the return type of a gcc2
11175 builtin and then its argument prototype would still apply. */ 10300 builtin and then its argument prototype would still apply. */
11176 char tgetent(); 10301 char tgetent();
11177 10302
11178 int main() { 10303 int main() {
11179 tgetent() 10304 tgetent()
11180 ; return 0; } 10305 ; return 0; }
11181 EOF 10306 EOF
11182 if { (eval echo configure:11183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10307 if { (eval echo configure:10308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11183 rm -rf conftest* 10308 rm -rf conftest*
11184 eval "ac_cv_lib_$ac_lib_var=yes" 10309 eval "ac_cv_lib_$ac_lib_var=yes"
11185 else 10310 else
11186 echo "configure: failed program was:" >&5 10311 echo "configure: failed program was:" >&5
11187 cat conftest.$ac_ext >&5 10312 cat conftest.$ac_ext >&5
11208 if test -n "$libs_termcap"; then 10333 if test -n "$libs_termcap"; then
11209 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 10334 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11210 else 10335 else
11211 10336
11212 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 10337 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
11213 echo "configure:11214: checking for tgetent in -lcurses" >&5 10338 echo "configure:10339: checking for tgetent in -lcurses" >&5
11214 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 10339 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
11215 10340
11216 xe_check_libs=" -lcurses " 10341 xe_check_libs=" -lcurses "
11217 cat > conftest.$ac_ext <<EOF 10342 cat > conftest.$ac_ext <<EOF
11218 #line 11219 "configure" 10343 #line 10344 "configure"
11219 #include "confdefs.h" 10344 #include "confdefs.h"
11220 /* Override any gcc2 internal prototype to avoid an error. */ 10345 /* Override any gcc2 internal prototype to avoid an error. */
11221 /* We use char because int might match the return type of a gcc2 10346 /* We use char because int might match the return type of a gcc2
11222 builtin and then its argument prototype would still apply. */ 10347 builtin and then its argument prototype would still apply. */
11223 char tgetent(); 10348 char tgetent();
11224 10349
11225 int main() { 10350 int main() {
11226 tgetent() 10351 tgetent()
11227 ; return 0; } 10352 ; return 0; }
11228 EOF 10353 EOF
11229 if { (eval echo configure:11230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10354 if { (eval echo configure:10355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11230 rm -rf conftest* 10355 rm -rf conftest*
11231 eval "ac_cv_lib_$ac_lib_var=yes" 10356 eval "ac_cv_lib_$ac_lib_var=yes"
11232 else 10357 else
11233 echo "configure: failed program was:" >&5 10358 echo "configure: failed program was:" >&5
11234 cat conftest.$ac_ext >&5 10359 cat conftest.$ac_ext >&5
11242 echo "$ac_t""yes" 1>&6 10367 echo "$ac_t""yes" 1>&6
11243 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 10368 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
11244 else 10369 else
11245 echo "$ac_t""no" 1>&6 10370 echo "$ac_t""no" 1>&6
11246 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 10371 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
11247 echo "configure:11248: checking for tgetent in -ltermcap" >&5 10372 echo "configure:10373: checking for tgetent in -ltermcap" >&5
11248 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 10373 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
11249 10374
11250 xe_check_libs=" -ltermcap " 10375 xe_check_libs=" -ltermcap "
11251 cat > conftest.$ac_ext <<EOF 10376 cat > conftest.$ac_ext <<EOF
11252 #line 11253 "configure" 10377 #line 10378 "configure"
11253 #include "confdefs.h" 10378 #include "confdefs.h"
11254 /* Override any gcc2 internal prototype to avoid an error. */ 10379 /* Override any gcc2 internal prototype to avoid an error. */
11255 /* We use char because int might match the return type of a gcc2 10380 /* We use char because int might match the return type of a gcc2
11256 builtin and then its argument prototype would still apply. */ 10381 builtin and then its argument prototype would still apply. */
11257 char tgetent(); 10382 char tgetent();
11258 10383
11259 int main() { 10384 int main() {
11260 tgetent() 10385 tgetent()
11261 ; return 0; } 10386 ; return 0; }
11262 EOF 10387 EOF
11263 if { (eval echo configure:11264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10388 if { (eval echo configure:10389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11264 rm -rf conftest* 10389 rm -rf conftest*
11265 eval "ac_cv_lib_$ac_lib_var=yes" 10390 eval "ac_cv_lib_$ac_lib_var=yes"
11266 else 10391 else
11267 echo "configure: failed program was:" >&5 10392 echo "configure: failed program was:" >&5
11268 cat conftest.$ac_ext >&5 10393 cat conftest.$ac_ext >&5
11306 } 10431 }
11307 10432
11308 10433
11309 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 10434 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
11310 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 10435 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
11311 echo "configure:11312: checking for gpm.h" >&5 10436 echo "configure:10437: checking for gpm.h" >&5
11312 10437
11313 cat > conftest.$ac_ext <<EOF 10438 cat > conftest.$ac_ext <<EOF
11314 #line 11315 "configure" 10439 #line 10440 "configure"
11315 #include "confdefs.h" 10440 #include "confdefs.h"
11316 #include <gpm.h> 10441 #include <gpm.h>
11317 EOF 10442 EOF
11318 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11319 { (eval echo configure:11320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10444 { (eval echo configure:10445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11320 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10445 ac_err=`grep -v '^ *+' conftest.out`
11321 if test -z "$ac_err"; then 10446 if test -z "$ac_err"; then
11322 rm -rf conftest* 10447 rm -rf conftest*
11323 eval "ac_cv_header_$ac_safe=yes" 10448 eval "ac_cv_header_$ac_safe=yes"
11324 else 10449 else
11325 echo "$ac_err" >&5 10450 echo "$ac_err" >&5
11337 with_gpm=no 10462 with_gpm=no
11338 fi 10463 fi
11339 } 10464 }
11340 test -z "$with_gpm" && { 10465 test -z "$with_gpm" && {
11341 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 10466 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
11342 echo "configure:11343: checking for Gpm_Open in -lgpm" >&5 10467 echo "configure:10468: checking for Gpm_Open in -lgpm" >&5
11343 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 10468 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
11344 10469
11345 xe_check_libs=" -lgpm " 10470 xe_check_libs=" -lgpm "
11346 cat > conftest.$ac_ext <<EOF 10471 cat > conftest.$ac_ext <<EOF
11347 #line 11348 "configure" 10472 #line 10473 "configure"
11348 #include "confdefs.h" 10473 #include "confdefs.h"
11349 /* Override any gcc2 internal prototype to avoid an error. */ 10474 /* Override any gcc2 internal prototype to avoid an error. */
11350 /* We use char because int might match the return type of a gcc2 10475 /* We use char because int might match the return type of a gcc2
11351 builtin and then its argument prototype would still apply. */ 10476 builtin and then its argument prototype would still apply. */
11352 char Gpm_Open(); 10477 char Gpm_Open();
11353 10478
11354 int main() { 10479 int main() {
11355 Gpm_Open() 10480 Gpm_Open()
11356 ; return 0; } 10481 ; return 0; }
11357 EOF 10482 EOF
11358 if { (eval echo configure:11359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10483 if { (eval echo configure:10484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11359 rm -rf conftest* 10484 rm -rf conftest*
11360 eval "ac_cv_lib_$ac_lib_var=yes" 10485 eval "ac_cv_lib_$ac_lib_var=yes"
11361 else 10486 else
11362 echo "configure: failed program was:" >&5 10487 echo "configure: failed program was:" >&5
11363 cat conftest.$ac_ext >&5 10488 cat conftest.$ac_ext >&5
11402 echo " xemacs will be linked with \"event-unixoid.o\"" 10527 echo " xemacs will be linked with \"event-unixoid.o\""
11403 fi 10528 fi
11404 10529
11405 10530
11406 echo "checking for database support" 1>&6 10531 echo "checking for database support" 1>&6
11407 echo "configure:11408: checking for database support" >&5 10532 echo "configure:10533: checking for database support" >&5
11408 10533
11409 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then 10534 if test "$with_database_gnudbm" != "no"; then
11410 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` 10535 for ac_hdr in ndbm.h
11411 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 10536 do
11412 echo "configure:11413: checking for ndbm.h" >&5 10537 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11413 10538 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11414 cat > conftest.$ac_ext <<EOF 10539 echo "configure:10540: checking for $ac_hdr" >&5
11415 #line 11416 "configure" 10540
11416 #include "confdefs.h" 10541 cat > conftest.$ac_ext <<EOF
11417 #include <ndbm.h> 10542 #line 10543 "configure"
10543 #include "confdefs.h"
10544 #include <$ac_hdr>
11418 EOF 10545 EOF
11419 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11420 { (eval echo configure:11421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10547 { (eval echo configure:10548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11421 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10548 ac_err=`grep -v '^ *+' conftest.out`
11422 if test -z "$ac_err"; then 10549 if test -z "$ac_err"; then
11423 rm -rf conftest* 10550 rm -rf conftest*
11424 eval "ac_cv_header_$ac_safe=yes" 10551 eval "ac_cv_header_$ac_safe=yes"
11425 else 10552 else
11426 echo "$ac_err" >&5 10553 echo "$ac_err" >&5
11430 eval "ac_cv_header_$ac_safe=no" 10557 eval "ac_cv_header_$ac_safe=no"
11431 fi 10558 fi
11432 rm -f conftest* 10559 rm -f conftest*
11433 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10560 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11434 echo "$ac_t""yes" 1>&6 10561 echo "$ac_t""yes" 1>&6
11435 : 10562 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11436 else 10563 { test "$extra_verbose" = "yes" && cat << EOF
11437 echo "$ac_t""no" 1>&6 10564 Defining $ac_tr_hdr
11438 10565 EOF
11439 test "$with_database_gnudbm" = "yes" -o \ 10566 cat >> confdefs.h <<EOF
11440 "$with_database_dbm" = "yes" && \ 10567 #define $ac_tr_hdr 1
11441 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; } 10568 EOF
11442 with_database_gnudbm=no with_database_dbm=no 10569 }
11443 fi 10570 have_ndbm_h=yes
11444 10571 else
11445 fi 10572 echo "$ac_t""no" 1>&6
11446 10573 fi
11447 if test "$with_database_gnudbm" != "no"; then 10574 done
11448 10575
10576 if test "$have_ndbm_h" = "yes"; then
10577
11449 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 10578 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
11450 echo "configure:11451: checking for dbm_open in -lgdbm" >&5 10579 echo "configure:10580: checking for dbm_open in -lgdbm" >&5
11451 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 10580 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
11452 10581
11453 xe_check_libs=" -lgdbm " 10582 xe_check_libs=" -lgdbm "
11454 cat > conftest.$ac_ext <<EOF 10583 cat > conftest.$ac_ext <<EOF
11455 #line 11456 "configure" 10584 #line 10585 "configure"
11456 #include "confdefs.h" 10585 #include "confdefs.h"
11457 /* Override any gcc2 internal prototype to avoid an error. */ 10586 /* Override any gcc2 internal prototype to avoid an error. */
11458 /* We use char because int might match the return type of a gcc2 10587 /* We use char because int might match the return type of a gcc2
11459 builtin and then its argument prototype would still apply. */ 10588 builtin and then its argument prototype would still apply. */
11460 char dbm_open(); 10589 char dbm_open();
11461 10590
11462 int main() { 10591 int main() {
11463 dbm_open() 10592 dbm_open()
11464 ; return 0; } 10593 ; return 0; }
11465 EOF 10594 EOF
11466 if { (eval echo configure:11467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10595 if { (eval echo configure:10596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11467 rm -rf conftest* 10596 rm -rf conftest*
11468 eval "ac_cv_lib_$ac_lib_var=yes" 10597 eval "ac_cv_lib_$ac_lib_var=yes"
11469 else 10598 else
11470 echo "configure: failed program was:" >&5 10599 echo "configure: failed program was:" >&5
11471 cat conftest.$ac_ext >&5 10600 cat conftest.$ac_ext >&5
11475 rm -f conftest* 10604 rm -f conftest*
11476 xe_check_libs="" 10605 xe_check_libs=""
11477 10606
11478 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 10607 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11479 echo "$ac_t""yes" 1>&6 10608 echo "$ac_t""yes" 1>&6
11480 with_database_gnudbm=yes with_database_dbm=no libdbm=-lgdbm 10609 with_database_gnudbm=yes have_libgdbm=yes
11481 else 10610 else
11482 echo "$ac_t""no" 1>&6 10611 echo "$ac_t""no" 1>&6
11483 if test "$with_database_gnudbm" = "yes"; then 10612 fi
11484 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; } 10613
11485 fi 10614
11486 with_database_gnudbm=no 10615 fi
11487 fi 10616 if test "$with_database_gnudbm" != "yes"; then
11488 10617 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11489 10618 echo "configure:10619: checking for dbm_open" >&5
11490 fi 10619
11491 10620 cat > conftest.$ac_ext <<EOF
11492 if test "$with_database_dbm" != "no"; then 10621 #line 10622 "configure"
11493 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11494 echo "configure:11495: checking for dbm_open" >&5
11495
11496 cat > conftest.$ac_ext <<EOF
11497 #line 11498 "configure"
11498 #include "confdefs.h" 10622 #include "confdefs.h"
11499 /* System header to define __stub macros and hopefully few prototypes, 10623 /* System header to define __stub macros and hopefully few prototypes,
11500 which can conflict with char dbm_open(); below. */ 10624 which can conflict with char dbm_open(); below. */
11501 #include <assert.h> 10625 #include <assert.h>
11502 /* Override any gcc2 internal prototype to avoid an error. */ 10626 /* Override any gcc2 internal prototype to avoid an error. */
11515 dbm_open(); 10639 dbm_open();
11516 #endif 10640 #endif
11517 10641
11518 ; return 0; } 10642 ; return 0; }
11519 EOF 10643 EOF
11520 if { (eval echo configure:11521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10644 if { (eval echo configure:10645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11521 rm -rf conftest* 10645 rm -rf conftest*
11522 eval "ac_cv_func_dbm_open=yes" 10646 eval "ac_cv_func_dbm_open=yes"
11523 else 10647 else
11524 echo "configure: failed program was:" >&5 10648 echo "configure: failed program was:" >&5
11525 cat conftest.$ac_ext >&5 10649 cat conftest.$ac_ext >&5
11528 fi 10652 fi
11529 rm -f conftest* 10653 rm -f conftest*
11530 10654
11531 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then 10655 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
11532 echo "$ac_t""yes" 1>&6 10656 echo "$ac_t""yes" 1>&6
11533 with_database_dbm=yes libdbm= 10657 with_database_gnudbm=yes
11534 else 10658 else
11535 echo "$ac_t""no" 1>&6 10659 echo "$ac_t""no" 1>&6
11536 10660 fi
11537 10661
11538 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 10662 fi
11539 echo "configure:11540: checking for dbm_open in -ldbm" >&5 10663 if test "$with_database_gnudbm" = "yes"; then
11540 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 10664 { test "$extra_verbose" = "yes" && cat << \EOF
11541 10665 Defining HAVE_DBM
11542 xe_check_libs=" -ldbm " 10666 EOF
11543 cat > conftest.$ac_ext <<EOF 10667 cat >> confdefs.h <<\EOF
11544 #line 11545 "configure" 10668 #define HAVE_DBM 1
11545 #include "confdefs.h" 10669 EOF
10670 }
10671
10672 test "$have_libgdbm" = "yes" && LIBS="-lgdbm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdbm\" to \$LIBS"; fi
10673 with_database_dbm=no
10674 else with_database_gnudbm=no
10675 fi
10676 fi
10677
10678 if test "$with_database_dbm" != "no"; then
10679 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
10680 echo "configure:10681: checking for dbm_open" >&5
10681
10682 cat > conftest.$ac_ext <<EOF
10683 #line 10684 "configure"
10684 #include "confdefs.h"
10685 /* System header to define __stub macros and hopefully few prototypes,
10686 which can conflict with char dbm_open(); below. */
10687 #include <assert.h>
11546 /* Override any gcc2 internal prototype to avoid an error. */ 10688 /* Override any gcc2 internal prototype to avoid an error. */
11547 /* We use char because int might match the return type of a gcc2 10689 /* We use char because int might match the return type of a gcc2
11548 builtin and then its argument prototype would still apply. */ 10690 builtin and then its argument prototype would still apply. */
11549 char dbm_open(); 10691 char dbm_open();
11550 10692
11551 int main() { 10693 int main() {
10694
10695 /* The GNU C library defines this for functions which it implements
10696 to always fail with ENOSYS. Some functions are actually named
10697 something starting with __ and the normal name is an alias. */
10698 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
10699 choke me
10700 #else
10701 dbm_open();
10702 #endif
10703
10704 ; return 0; }
10705 EOF
10706 if { (eval echo configure:10707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10707 rm -rf conftest*
10708 eval "ac_cv_func_dbm_open=yes"
10709 else
10710 echo "configure: failed program was:" >&5
10711 cat conftest.$ac_ext >&5
10712 rm -rf conftest*
10713 eval "ac_cv_func_dbm_open=no"
10714 fi
10715 rm -f conftest*
10716
10717 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
10718 echo "$ac_t""yes" 1>&6
10719 with_database_dbm=yes need_libdbm=no
10720 else
10721 echo "$ac_t""no" 1>&6
10722 fi
10723
10724 if test "$need_libdbm" != "no"; then
10725
10726 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
10727 echo "configure:10728: checking for dbm_open in -ldbm" >&5
10728 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
10729
10730 xe_check_libs=" -ldbm "
10731 cat > conftest.$ac_ext <<EOF
10732 #line 10733 "configure"
10733 #include "confdefs.h"
10734 /* Override any gcc2 internal prototype to avoid an error. */
10735 /* We use char because int might match the return type of a gcc2
10736 builtin and then its argument prototype would still apply. */
10737 char dbm_open();
10738
10739 int main() {
11552 dbm_open() 10740 dbm_open()
11553 ; return 0; } 10741 ; return 0; }
11554 EOF 10742 EOF
11555 if { (eval echo configure:11556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10743 if { (eval echo configure:10744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11556 rm -rf conftest* 10744 rm -rf conftest*
11557 eval "ac_cv_lib_$ac_lib_var=yes" 10745 eval "ac_cv_lib_$ac_lib_var=yes"
11558 else 10746 else
11559 echo "configure: failed program was:" >&5 10747 echo "configure: failed program was:" >&5
11560 cat conftest.$ac_ext >&5 10748 cat conftest.$ac_ext >&5
11564 rm -f conftest* 10752 rm -f conftest*
11565 xe_check_libs="" 10753 xe_check_libs=""
11566 10754
11567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 10755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11568 echo "$ac_t""yes" 1>&6 10756 echo "$ac_t""yes" 1>&6
11569 with_database_dbm=yes libdbm=-ldbm 10757 with_database_dbm=yes need_libdbm=yes
11570 else 10758 else
11571 echo "$ac_t""no" 1>&6 10759 echo "$ac_t""no" 1>&6
11572 test "$with_database_dbm" = "yes" && \ 10760 fi
11573 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; } 10761
11574 with_database_dbm=no 10762
11575 fi 10763 fi
11576 10764 if test "$with_database_dbm" = "yes"; then
11577 10765 { test "$extra_verbose" = "yes" && cat << \EOF
11578 fi
11579
11580 fi
11581
11582 if test -n "$libdbm"; then LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi; fi
11583 if test "$with_database_gnudbm" = "yes" -o \
11584 "$with_database_dbm" = "yes"; then
11585 { test "$extra_verbose" = "yes" && cat << \EOF
11586 Defining HAVE_DBM 10766 Defining HAVE_DBM
11587 EOF 10767 EOF
11588 cat >> confdefs.h <<\EOF 10768 cat >> confdefs.h <<\EOF
11589 #define HAVE_DBM 1 10769 #define HAVE_DBM 1
11590 EOF 10770 EOF
11591 } 10771 }
11592 10772
10773 test "$need_libdbm" = "yes" && LIBS="-ldbm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldbm\" to \$LIBS"; fi
10774 else with_database_dbm=no
10775 fi
11593 fi 10776 fi
11594 10777
11595 if test "$with_database_berkdb" != "no"; then 10778 if test "$with_database_berkdb" != "no"; then
11596 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 10779 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
11597 echo "configure:11598: checking for Berkeley db.h" >&5 10780 echo "configure:10781: checking for Berkeley db.h" >&5
11598 for path in "db/db.h" "db.h"; do 10781 for path in "db/db.h" "db.h"; do
11599 cat > conftest.$ac_ext <<EOF 10782 cat > conftest.$ac_ext <<EOF
11600 #line 11601 "configure" 10783 #line 10784 "configure"
11601 #include "confdefs.h" 10784 #include "confdefs.h"
11602
11603 #include <stdlib.h>
11604 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
11605 #ifdef HAVE_INTTYPES_H 10785 #ifdef HAVE_INTTYPES_H
11606 #define __BIT_TYPES_DEFINED__ 10786 #define __BIT_TYPES_DEFINED__
11607 #include <inttypes.h> 10787 #include <inttypes.h>
11608 typedef uint8_t u_int8_t; 10788 typedef uint8_t u_int8_t;
11609 typedef uint16_t u_int16_t; 10789 typedef uint16_t u_int16_t;
11610 typedef uint32_t u_int32_t; 10790 typedef uint32_t u_int32_t;
11611 #ifdef WE_DONT_NEED_QUADS 10791 #ifdef WE_DONT_NEED_QUADS
11612 typedef uint64_t u_int64_t; 10792 typedef uint64_t u_int64_t;
11613 #endif 10793 #endif
11614 #endif 10794 #endif
11615 #endif
11616 #include <$path> 10795 #include <$path>
11617 10796
11618 int main() { 10797 int main() {
11619 10798
11620 ; return 0; } 10799 ; return 0; }
11621 EOF 10800 EOF
11622 if { (eval echo configure:11623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10801 if { (eval echo configure:10802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11623 rm -rf conftest* 10802 rm -rf conftest*
11624 db_h_path="$path"; break 10803 db_h_path="$path"; break
11625 else 10804 else
11626 echo "configure: failed program was:" >&5 10805 echo "configure: failed program was:" >&5
11627 cat conftest.$ac_ext >&5 10806 cat conftest.$ac_ext >&5
11628 fi 10807 fi
11629 rm -f conftest* 10808 rm -f conftest*
11630 done 10809 done
11631 if test -z "$db_h_path" 10810 if test -z "$db_h_path"
11632 then echo "$ac_t""no" 1>&6; with_database_berkdb=no 10811 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
11633 else echo "$ac_t""$db_h_path" 1>&6 10812 else echo "$ac_t""$db_h_path" 1>&6
11634 fi 10813 fi
11635 10814
11636 if test "$with_database_berkdb" != "no"; then 10815 if test "$with_database_berkdb" != "no"; then
11637 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 10816 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
11638 echo "configure:11639: checking for Berkeley DB version" >&5 10817 echo "configure:10818: checking for Berkeley DB version" >&5
11639 cat > conftest.$ac_ext <<EOF 10818 cat > conftest.$ac_ext <<EOF
11640 #line 11641 "configure" 10819 #line 10820 "configure"
11641 #include "confdefs.h" 10820 #include "confdefs.h"
11642 #include <$db_h_path> 10821 #include <$db_h_path>
11643 #if DB_VERSION_MAJOR > 1 10822 #if DB_VERSION_MAJOR > 1
11644 yes 10823 yes
11645 #endif 10824 #endif
11654 echo "$ac_t""1" 1>&6; dbfunc=dbopen 10833 echo "$ac_t""1" 1>&6; dbfunc=dbopen
11655 fi 10834 fi
11656 rm -f conftest* 10835 rm -f conftest*
11657 10836
11658 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 10837 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
11659 echo "configure:11660: checking for $dbfunc" >&5 10838 echo "configure:10839: checking for $dbfunc" >&5
11660 10839
11661 cat > conftest.$ac_ext <<EOF 10840 cat > conftest.$ac_ext <<EOF
11662 #line 11663 "configure" 10841 #line 10842 "configure"
11663 #include "confdefs.h" 10842 #include "confdefs.h"
11664 /* System header to define __stub macros and hopefully few prototypes, 10843 /* System header to define __stub macros and hopefully few prototypes,
11665 which can conflict with char $dbfunc(); below. */ 10844 which can conflict with char $dbfunc(); below. */
11666 #include <assert.h> 10845 #include <assert.h>
11667 /* Override any gcc2 internal prototype to avoid an error. */ 10846 /* Override any gcc2 internal prototype to avoid an error. */
11680 $dbfunc(); 10859 $dbfunc();
11681 #endif 10860 #endif
11682 10861
11683 ; return 0; } 10862 ; return 0; }
11684 EOF 10863 EOF
11685 if { (eval echo configure:11686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10864 if { (eval echo configure:10865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11686 rm -rf conftest* 10865 rm -rf conftest*
11687 eval "ac_cv_func_$dbfunc=yes" 10866 eval "ac_cv_func_$dbfunc=yes"
11688 else 10867 else
11689 echo "configure: failed program was:" >&5 10868 echo "configure: failed program was:" >&5
11690 cat conftest.$ac_ext >&5 10869 cat conftest.$ac_ext >&5
11699 else 10878 else
11700 echo "$ac_t""no" 1>&6 10879 echo "$ac_t""no" 1>&6
11701 10880
11702 10881
11703 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 10882 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
11704 echo "configure:11705: checking for $dbfunc in -ldb" >&5 10883 echo "configure:10884: checking for $dbfunc in -ldb" >&5
11705 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 10884 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
11706 10885
11707 xe_check_libs=" -ldb " 10886 xe_check_libs=" -ldb "
11708 cat > conftest.$ac_ext <<EOF 10887 cat > conftest.$ac_ext <<EOF
11709 #line 11710 "configure" 10888 #line 10889 "configure"
11710 #include "confdefs.h" 10889 #include "confdefs.h"
11711 /* Override any gcc2 internal prototype to avoid an error. */ 10890 /* Override any gcc2 internal prototype to avoid an error. */
11712 /* We use char because int might match the return type of a gcc2 10891 /* We use char because int might match the return type of a gcc2
11713 builtin and then its argument prototype would still apply. */ 10892 builtin and then its argument prototype would still apply. */
11714 char $dbfunc(); 10893 char $dbfunc();
11715 10894
11716 int main() { 10895 int main() {
11717 $dbfunc() 10896 $dbfunc()
11718 ; return 0; } 10897 ; return 0; }
11719 EOF 10898 EOF
11720 if { (eval echo configure:11721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10899 if { (eval echo configure:10900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11721 rm -rf conftest* 10900 rm -rf conftest*
11722 eval "ac_cv_lib_$ac_lib_var=yes" 10901 eval "ac_cv_lib_$ac_lib_var=yes"
11723 else 10902 else
11724 echo "configure: failed program was:" >&5 10903 echo "configure: failed program was:" >&5
11725 cat conftest.$ac_ext >&5 10904 cat conftest.$ac_ext >&5
11779 fi 10958 fi
11780 10959
11781 if test "$with_socks" = "yes"; then 10960 if test "$with_socks" = "yes"; then
11782 10961
11783 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 10962 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
11784 echo "configure:11785: checking for SOCKSinit in -lsocks" >&5 10963 echo "configure:10964: checking for SOCKSinit in -lsocks" >&5
11785 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 10964 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
11786 10965
11787 xe_check_libs=" -lsocks " 10966 xe_check_libs=" -lsocks "
11788 cat > conftest.$ac_ext <<EOF 10967 cat > conftest.$ac_ext <<EOF
11789 #line 11790 "configure" 10968 #line 10969 "configure"
11790 #include "confdefs.h" 10969 #include "confdefs.h"
11791 /* Override any gcc2 internal prototype to avoid an error. */ 10970 /* Override any gcc2 internal prototype to avoid an error. */
11792 /* We use char because int might match the return type of a gcc2 10971 /* We use char because int might match the return type of a gcc2
11793 builtin and then its argument prototype would still apply. */ 10972 builtin and then its argument prototype would still apply. */
11794 char SOCKSinit(); 10973 char SOCKSinit();
11795 10974
11796 int main() { 10975 int main() {
11797 SOCKSinit() 10976 SOCKSinit()
11798 ; return 0; } 10977 ; return 0; }
11799 EOF 10978 EOF
11800 if { (eval echo configure:11801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10979 if { (eval echo configure:10980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11801 rm -rf conftest* 10980 rm -rf conftest*
11802 eval "ac_cv_lib_$ac_lib_var=yes" 10981 eval "ac_cv_lib_$ac_lib_var=yes"
11803 else 10982 else
11804 echo "configure: failed program was:" >&5 10983 echo "configure: failed program was:" >&5
11805 cat conftest.$ac_ext >&5 10984 cat conftest.$ac_ext >&5
11848 } 11027 }
11849 11028
11850 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi 11029 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
11851 fi 11030 fi
11852 11031
11853 test -z "$with_shlib" && test "$opsys $machine" = "cygwin32 intel386" && with_shlib=no
11854
11855 for ac_hdr in dlfcn.h 11032 for ac_hdr in dlfcn.h
11856 do 11033 do
11857 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11034 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11858 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11035 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11859 echo "configure:11860: checking for $ac_hdr" >&5 11036 echo "configure:11037: checking for $ac_hdr" >&5
11860 11037
11861 cat > conftest.$ac_ext <<EOF 11038 cat > conftest.$ac_ext <<EOF
11862 #line 11863 "configure" 11039 #line 11040 "configure"
11863 #include "confdefs.h" 11040 #include "confdefs.h"
11864 #include <$ac_hdr> 11041 #include <$ac_hdr>
11865 EOF 11042 EOF
11866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11043 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11867 { (eval echo configure:11868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11044 { (eval echo configure:11045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11045 ac_err=`grep -v '^ *+' conftest.out`
11869 if test -z "$ac_err"; then 11046 if test -z "$ac_err"; then
11870 rm -rf conftest* 11047 rm -rf conftest*
11871 eval "ac_cv_header_$ac_safe=yes" 11048 eval "ac_cv_header_$ac_safe=yes"
11872 else 11049 else
11873 echo "$ac_err" >&5 11050 echo "$ac_err" >&5
11893 fi 11070 fi
11894 done 11071 done
11895 11072
11896 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11073 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11897 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 11074 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
11898 echo "configure:11899: checking for dlopen in -ldl" >&5 11075 echo "configure:11076: checking for dlopen in -ldl" >&5
11899 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 11076 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11900 11077
11901 xe_check_libs=" -ldl " 11078 xe_check_libs=" -ldl "
11902 cat > conftest.$ac_ext <<EOF 11079 cat > conftest.$ac_ext <<EOF
11903 #line 11904 "configure" 11080 #line 11081 "configure"
11904 #include "confdefs.h" 11081 #include "confdefs.h"
11905 /* Override any gcc2 internal prototype to avoid an error. */ 11082 /* Override any gcc2 internal prototype to avoid an error. */
11906 /* We use char because int might match the return type of a gcc2 11083 /* We use char because int might match the return type of a gcc2
11907 builtin and then its argument prototype would still apply. */ 11084 builtin and then its argument prototype would still apply. */
11908 char dlopen(); 11085 char dlopen();
11909 11086
11910 int main() { 11087 int main() {
11911 dlopen() 11088 dlopen()
11912 ; return 0; } 11089 ; return 0; }
11913 EOF 11090 EOF
11914 if { (eval echo configure:11915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11091 if { (eval echo configure:11092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11915 rm -rf conftest* 11092 rm -rf conftest*
11916 eval "ac_cv_lib_$ac_lib_var=yes" 11093 eval "ac_cv_lib_$ac_lib_var=yes"
11917 else 11094 else
11918 echo "configure: failed program was:" >&5 11095 echo "configure: failed program was:" >&5
11919 cat conftest.$ac_ext >&5 11096 cat conftest.$ac_ext >&5
11938 fi 11115 fi
11939 11116
11940 } 11117 }
11941 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11118 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11942 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6 11119 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
11943 echo "configure:11944: checking for _dlopen in -lc" >&5 11120 echo "configure:11121: checking for _dlopen in -lc" >&5
11944 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'` 11121 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
11945 11122
11946 xe_check_libs=" -lc " 11123 xe_check_libs=" -lc "
11947 cat > conftest.$ac_ext <<EOF 11124 cat > conftest.$ac_ext <<EOF
11948 #line 11949 "configure" 11125 #line 11126 "configure"
11949 #include "confdefs.h" 11126 #include "confdefs.h"
11950 /* Override any gcc2 internal prototype to avoid an error. */ 11127 /* Override any gcc2 internal prototype to avoid an error. */
11951 /* We use char because int might match the return type of a gcc2 11128 /* We use char because int might match the return type of a gcc2
11952 builtin and then its argument prototype would still apply. */ 11129 builtin and then its argument prototype would still apply. */
11953 char _dlopen(); 11130 char _dlopen();
11954 11131
11955 int main() { 11132 int main() {
11956 _dlopen() 11133 _dlopen()
11957 ; return 0; } 11134 ; return 0; }
11958 EOF 11135 EOF
11959 if { (eval echo configure:11960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11136 if { (eval echo configure:11137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11960 rm -rf conftest* 11137 rm -rf conftest*
11961 eval "ac_cv_lib_$ac_lib_var=yes" 11138 eval "ac_cv_lib_$ac_lib_var=yes"
11962 else 11139 else
11963 echo "configure: failed program was:" >&5 11140 echo "configure: failed program was:" >&5
11964 cat conftest.$ac_ext >&5 11141 cat conftest.$ac_ext >&5
11983 fi 11160 fi
11984 11161
11985 } 11162 }
11986 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11163 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11987 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 11164 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
11988 echo "configure:11989: checking for dlopen in -lc" >&5 11165 echo "configure:11166: checking for dlopen in -lc" >&5
11989 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'` 11166 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
11990 11167
11991 xe_check_libs=" -lc " 11168 xe_check_libs=" -lc "
11992 cat > conftest.$ac_ext <<EOF 11169 cat > conftest.$ac_ext <<EOF
11993 #line 11994 "configure" 11170 #line 11171 "configure"
11994 #include "confdefs.h" 11171 #include "confdefs.h"
11995 /* Override any gcc2 internal prototype to avoid an error. */ 11172 /* Override any gcc2 internal prototype to avoid an error. */
11996 /* We use char because int might match the return type of a gcc2 11173 /* We use char because int might match the return type of a gcc2
11997 builtin and then its argument prototype would still apply. */ 11174 builtin and then its argument prototype would still apply. */
11998 char dlopen(); 11175 char dlopen();
11999 11176
12000 int main() { 11177 int main() {
12001 dlopen() 11178 dlopen()
12002 ; return 0; } 11179 ; return 0; }
12003 EOF 11180 EOF
12004 if { (eval echo configure:12005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11181 if { (eval echo configure:11182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12005 rm -rf conftest* 11182 rm -rf conftest*
12006 eval "ac_cv_lib_$ac_lib_var=yes" 11183 eval "ac_cv_lib_$ac_lib_var=yes"
12007 else 11184 else
12008 echo "configure: failed program was:" >&5 11185 echo "configure: failed program was:" >&5
12009 cat conftest.$ac_ext >&5 11186 cat conftest.$ac_ext >&5
12028 fi 11205 fi
12029 11206
12030 } 11207 }
12031 test -z "$with_shlib" && { 11208 test -z "$with_shlib" && {
12032 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 11209 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
12033 echo "configure:12034: checking for shl_load in -ldld" >&5 11210 echo "configure:11211: checking for shl_load in -ldld" >&5
12034 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 11211 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
12035 11212
12036 xe_check_libs=" -ldld " 11213 xe_check_libs=" -ldld "
12037 cat > conftest.$ac_ext <<EOF 11214 cat > conftest.$ac_ext <<EOF
12038 #line 12039 "configure" 11215 #line 11216 "configure"
12039 #include "confdefs.h" 11216 #include "confdefs.h"
12040 /* Override any gcc2 internal prototype to avoid an error. */ 11217 /* Override any gcc2 internal prototype to avoid an error. */
12041 /* We use char because int might match the return type of a gcc2 11218 /* We use char because int might match the return type of a gcc2
12042 builtin and then its argument prototype would still apply. */ 11219 builtin and then its argument prototype would still apply. */
12043 char shl_load(); 11220 char shl_load();
12044 11221
12045 int main() { 11222 int main() {
12046 shl_load() 11223 shl_load()
12047 ; return 0; } 11224 ; return 0; }
12048 EOF 11225 EOF
12049 if { (eval echo configure:12050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11226 if { (eval echo configure:11227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12050 rm -rf conftest* 11227 rm -rf conftest*
12051 eval "ac_cv_lib_$ac_lib_var=yes" 11228 eval "ac_cv_lib_$ac_lib_var=yes"
12052 else 11229 else
12053 echo "configure: failed program was:" >&5 11230 echo "configure: failed program was:" >&5
12054 cat conftest.$ac_ext >&5 11231 cat conftest.$ac_ext >&5
12073 fi 11250 fi
12074 11251
12075 } 11252 }
12076 test -z "$with_shlib" && { 11253 test -z "$with_shlib" && {
12077 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 11254 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
12078 echo "configure:12079: checking for dld_init in -ldld" >&5 11255 echo "configure:11256: checking for dld_init in -ldld" >&5
12079 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` 11256 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
12080 11257
12081 xe_check_libs=" -ldld " 11258 xe_check_libs=" -ldld "
12082 cat > conftest.$ac_ext <<EOF 11259 cat > conftest.$ac_ext <<EOF
12083 #line 12084 "configure" 11260 #line 11261 "configure"
12084 #include "confdefs.h" 11261 #include "confdefs.h"
12085 /* Override any gcc2 internal prototype to avoid an error. */ 11262 /* Override any gcc2 internal prototype to avoid an error. */
12086 /* We use char because int might match the return type of a gcc2 11263 /* We use char because int might match the return type of a gcc2
12087 builtin and then its argument prototype would still apply. */ 11264 builtin and then its argument prototype would still apply. */
12088 char dld_init(); 11265 char dld_init();
12089 11266
12090 int main() { 11267 int main() {
12091 dld_init() 11268 dld_init()
12092 ; return 0; } 11269 ; return 0; }
12093 EOF 11270 EOF
12094 if { (eval echo configure:12095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11271 if { (eval echo configure:11272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12095 rm -rf conftest* 11272 rm -rf conftest*
12096 eval "ac_cv_lib_$ac_lib_var=yes" 11273 eval "ac_cv_lib_$ac_lib_var=yes"
12097 else 11274 else
12098 echo "configure: failed program was:" >&5 11275 echo "configure: failed program was:" >&5
12099 cat conftest.$ac_ext >&5 11276 cat conftest.$ac_ext >&5
12139 dll_lflags="-shared" 11316 dll_lflags="-shared"
12140 dll_cflags="-r" 11317 dll_cflags="-r"
12141 dll_oflags="-o " 11318 dll_oflags="-o "
12142 11319
12143 echo $ac_n "checking how to build a shared library""... $ac_c" 1>&6 11320 echo $ac_n "checking how to build a shared library""... $ac_c" 1>&6
12144 echo "configure:12145: checking how to build a shared library" >&5 11321 echo "configure:11322: checking how to build a shared library" >&5
12145 case `uname -rs` in 11322 case `uname -rs` in
12146 UNIX_SV*|UNIX_System_V*) 11323 UNIX_SV*|UNIX_System_V*)
12147 dll_lflags="-G" 11324 dll_lflags="-G"
12148 dll_cflags=-Kpic 11325 dll_cflags=-Kpic
12149 dll_ld="ld" 11326 dll_ld="ld"
12230 11407
12231 11408
12232 for ac_func in dlerror 11409 for ac_func in dlerror
12233 do 11410 do
12234 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12235 echo "configure:12236: checking for $ac_func" >&5 11412 echo "configure:11413: checking for $ac_func" >&5
12236 11413
12237 cat > conftest.$ac_ext <<EOF 11414 cat > conftest.$ac_ext <<EOF
12238 #line 12239 "configure" 11415 #line 11416 "configure"
12239 #include "confdefs.h" 11416 #include "confdefs.h"
12240 /* System header to define __stub macros and hopefully few prototypes, 11417 /* System header to define __stub macros and hopefully few prototypes,
12241 which can conflict with char $ac_func(); below. */ 11418 which can conflict with char $ac_func(); below. */
12242 #include <assert.h> 11419 #include <assert.h>
12243 /* Override any gcc2 internal prototype to avoid an error. */ 11420 /* Override any gcc2 internal prototype to avoid an error. */
12256 $ac_func(); 11433 $ac_func();
12257 #endif 11434 #endif
12258 11435
12259 ; return 0; } 11436 ; return 0; }
12260 EOF 11437 EOF
12261 if { (eval echo configure:12262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11438 if { (eval echo configure:11439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12262 rm -rf conftest* 11439 rm -rf conftest*
12263 eval "ac_cv_func_$ac_func=yes" 11440 eval "ac_cv_func_$ac_func=yes"
12264 else 11441 else
12265 echo "configure: failed program was:" >&5 11442 echo "configure: failed program was:" >&5
12266 cat conftest.$ac_ext >&5 11443 cat conftest.$ac_ext >&5
12292 *) ;; 11469 *) ;;
12293 esac 11470 esac
12294 fi 11471 fi
12295 11472
12296 cat > conftest.$ac_ext <<EOF 11473 cat > conftest.$ac_ext <<EOF
12297 #line 12298 "configure" 11474 #line 11475 "configure"
12298 #include "confdefs.h" 11475 #include "confdefs.h"
12299 int main(int c,char *v[]){return 0;} 11476 int main(int c,char *v[]){return 0;}
12300 EOF 11477 EOF
12301 if { (eval echo configure:12302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 11478 if { (eval echo configure:11479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
12302 then 11479 then
12303 : 11480 :
12304 else 11481 else
12305 conftest_rc="$?"
12306 echo "configure: failed program was:" >&5 11482 echo "configure: failed program was:" >&5
12307 cat conftest.$ac_ext >&5 11483 cat conftest.$ac_ext >&5
12308 rm -fr conftest* 11484 rm -fr conftest*
12309 11485
12310 echo "" 11486 echo ""
12437 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then 11613 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then
12438 echo "creating src/gdbinit"; echo "" 11614 echo "creating src/gdbinit"; echo ""
12439 echo "source $srcdir/src/gdbinit" > src/gdbinit 11615 echo "source $srcdir/src/gdbinit" > src/gdbinit
12440 fi 11616 fi
12441 11617
12442 if test "$__SUNPRO_C" = "yes"; then 11618 if test "$__sunpro_c" = "yes"; then
12443 echo "creating .sbinit"; echo "" 11619 echo "creating .sbinit"; echo ""
12444 ( echo "# For use with Sun WorkShop's Source browser." 11620 ( echo "# For use with Sun WorkShop's Source browser."
12445 echo "# See sbquery(1) and sbinit(4) for more information" 11621 echo "# See sbquery(1) and sbinit(4) for more information"
12446 for dir in $MAKE_SUBDIR; do echo "import $dir"; done 11622 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
12447 ) > .sbinit 11623 ) > .sbinit
12550 done 11726 done
12551 11727
12552 11728
12553 11729
12554 11730
12555 DOCDIR=$docdir
12556 while true; do
12557 case "$DOCDIR" in
12558 *\$* ) eval "DOCDIR=$DOCDIR" ;;
12559 *) break ;;
12560 esac
12561 done
12562
12563
12564
12565
12566 ARCHLIBDIR=$archlibdir 11731 ARCHLIBDIR=$archlibdir
12567 while true; do 11732 while true; do
12568 case "$ARCHLIBDIR" in 11733 case "$ARCHLIBDIR" in
12569 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;; 11734 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
12570 *) break ;; 11735 *) break ;;
12615 T="" 11780 T=""
12616 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done 11781 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12617 ac_configure_args="$T" 11782 ac_configure_args="$T"
12618 11783
12619 { test "$extra_verbose" = "yes" && cat << EOF 11784 { test "$extra_verbose" = "yes" && cat << EOF
12620 Defining EMACS_CONFIGURATION = "$configuration" 11785 Defining EMACS_CONFIGURATION = "$canonical"
12621 EOF 11786 EOF
12622 cat >> confdefs.h <<EOF 11787 cat >> confdefs.h <<EOF
12623 #define EMACS_CONFIGURATION "$configuration" 11788 #define EMACS_CONFIGURATION "$canonical"
12624 EOF 11789 EOF
12625 } 11790 }
12626 11791
12627 { test "$extra_verbose" = "yes" && cat << EOF 11792 { test "$extra_verbose" = "yes" && cat << EOF
12628 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args" 11793 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
12824 fi 11989 fi
12825 echo "" 11990 echo ""
12826 echo "$0 $quoted_arguments" 11991 echo "$0 $quoted_arguments"
12827 ) > Installation 11992 ) > Installation
12828 11993
12829 if test ! -z ${emacs_beta_version} ; then 11994 xemacs_betaname=""
12830 if test -z "${emacs_is_beta}" ; then 11995 test ! -z "${emacs_beta_version}" && xemacs_betaname="-b${emacs_beta_version}"
12831 xemacs_betaname=".${emacs_beta_version}"
12832 else
12833 xemacs_betaname="-b${emacs_beta_version}"
12834 fi
12835 else
12836 xemacs_betaname=""
12837 fi
12838 11996
12839 ( 11997 (
12840 echo " 11998 echo "
12841 11999
12842 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'. 12000 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
12875 if test "$with_xpm" = yes; then 12033 if test "$with_xpm" = yes; then
12876 echo " Compiling in support for XPM images." 12034 echo " Compiling in support for XPM images."
12877 elif test "$with_x11" = yes; then 12035 elif test "$with_x11" = yes; then
12878 echo " --------------------------------------------------------------------" 12036 echo " --------------------------------------------------------------------"
12879 echo " WARNING: Compiling without XPM support." 12037 echo " WARNING: Compiling without XPM support."
12880 if test "$xpm_problem" != ""; then 12038 echo " WARNING: You should strongly considering installing XPM."
12881 echo " Reason: $xpm_problem"
12882 fi
12883 echo " WARNING: You should strongly consider installing XPM."
12884 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal." 12039 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
12885 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
12886 echo " --------------------------------------------------------------------" 12040 echo " --------------------------------------------------------------------"
12887 fi 12041 fi
12888 if test "$with_png" = yes; then
12889 echo " Compiling in support for PNG image handling."
12890 elif test "$window_system" != "none"; then
12891 echo " --------------------------------------------------------------------"
12892 echo " WARNING: Compiling without PNG image support."
12893 if test "$png_problem" != ""; then
12894 echo " Reason: $png_problem"
12895 fi
12896 echo " WARNING: You should strongly consider installing the PNG libraries."
12897 echo " WARNING: Otherwise certain images and glyphs may not display."
12898 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
12899 echo " --------------------------------------------------------------------"
12900 fi
12901 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling."
12902 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling."
12903 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling."
12904 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers." 12042 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
12043 test "$with_gif" = yes && echo " Compiling in support for GIF image conversion."
12044 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image conversion."
12045 test "$with_png" = yes && echo " Compiling in support for PNG image conversion."
12046 test "$with_tiff" = yes && echo " Compiling in support for TIFF image conversion."
12905 case "$with_sound" in 12047 case "$with_sound" in
12906 nas ) echo " Compiling in network sound (NAS) support." ;; 12048 nas ) echo " Compiling in network sound (NAS) support." ;;
12907 native ) echo " Compiling in native sound support." ;; 12049 native ) echo " Compiling in native sound support." ;;
12908 both ) echo " Compiling in both network and native sound support." ;; 12050 both ) echo " Compiling in both network and native sound support." ;;
12909 esac 12051 esac
12911 12053
12912 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB." 12054 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
12913 test "$with_database_dbm" = yes && echo " Compiling in support for DBM." 12055 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
12914 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM." 12056 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM."
12915 12057
12916 test "$with_ldap" = yes && echo " Compiling in support for LDAP." 12058 test "$with_umich_ldap" = yes && echo " Compiling in support for LDAP (UMich libs)."
12059 test "$with_ns_ldap" = yes && echo " Compiling in support for LDAP (Netscape SDK)."
12060 test "$with_ldap" = yes -a "$with_umich_ldap" = no -a "$with_ns_ldap" = no && echo " Compiling in support for LDAP (Generic)."
12917 12061
12918 test "$with_ncurses" = yes && echo " Compiling in support for ncurses." 12062 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
12919 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)." 12063 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
12920 12064
12921 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support." 12065 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
12949 motif ) echo " Using Motif scrollbars." ;; 12093 motif ) echo " Using Motif scrollbars." ;;
12950 athena ) echo " Using Athena scrollbars." ;; 12094 athena ) echo " Using Athena scrollbars." ;;
12951 athena3d ) echo " Using Athena-3d scrollbars." ;; 12095 athena3d ) echo " Using Athena-3d scrollbars." ;;
12952 esac 12096 esac
12953 case "$with_dialogs" in 12097 case "$with_dialogs" in
12954 motif ) 12098 motif ) echo " Using Motif dialog boxes." ;;
12955 echo " Using Motif dialog boxes."
12956 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
12957 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
12958 echo " We recommend using the Athena dialog boxes instead."
12959 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
12960 echo " Read the PROBLEMS file for more information."
12961 fi; fi
12962 ;;
12963 athena ) echo " Using Athena dialog boxes." ;; 12099 athena ) echo " Using Athena dialog boxes." ;;
12964 athena3d ) echo " Using Athena-3d dialog boxes." ;; 12100 athena3d ) echo " Using Athena-3d dialog boxes." ;;
12965 esac 12101 esac
12966 test "$with_shlib" = "yes" && echo " Compiling in DLL support." 12102 test "$with_shlib" = "yes" && echo " Compiling in DLL support."
12967 test "$with_clash_detection" = yes && \ 12103 test "$with_clash_detection" = yes && \
13050 case "\$ac_option" in 12186 case "\$ac_option" in
13051 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12187 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13052 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 12188 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13053 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 12189 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13054 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 12190 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13055 echo "$CONFIG_STATUS generated by autoconf version 2.13" 12191 echo "$CONFIG_STATUS generated by autoconf version 2.12"
13056 exit 0 ;; 12192 exit 0 ;;
13057 -help | --help | --hel | --he | --h) 12193 -help | --help | --hel | --he | --h)
13058 echo "\$ac_cs_usage"; exit 0 ;; 12194 echo "\$ac_cs_usage"; exit 0 ;;
13059 *) echo "\$ac_cs_usage"; exit 1 ;; 12195 *) echo "\$ac_cs_usage"; exit 1 ;;
13060 esac 12196 esac
13070 # Protect against being on the right side of a sed subst in config.status. 12206 # Protect against being on the right side of a sed subst in config.status.
13071 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 12207 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13072 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 12208 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13073 $ac_vpsub 12209 $ac_vpsub
13074 $extrasub 12210 $extrasub
13075 s%@SHELL@%$SHELL%g
13076 s%@CFLAGS@%$CFLAGS%g 12211 s%@CFLAGS@%$CFLAGS%g
13077 s%@CPPFLAGS@%$CPPFLAGS%g 12212 s%@CPPFLAGS@%$CPPFLAGS%g
13078 s%@CXXFLAGS@%$CXXFLAGS%g 12213 s%@CXXFLAGS@%$CXXFLAGS%g
13079 s%@FFLAGS@%$FFLAGS%g
13080 s%@DEFS@%$DEFS%g 12214 s%@DEFS@%$DEFS%g
13081 s%@LDFLAGS@%$LDFLAGS%g 12215 s%@LDFLAGS@%$LDFLAGS%g
13082 s%@LIBS@%$LIBS%g 12216 s%@LIBS@%$LIBS%g
13083 s%@exec_prefix@%$exec_prefix%g 12217 s%@exec_prefix@%$exec_prefix%g
13084 s%@prefix@%$prefix%g 12218 s%@prefix@%$prefix%g
13104 s%@start_files@%$start_files%g 12238 s%@start_files@%$start_files%g
13105 s%@ld@%$ld%g 12239 s%@ld@%$ld%g
13106 s%@lib_gcc@%$lib_gcc%g 12240 s%@lib_gcc@%$lib_gcc%g
13107 s%@RANLIB@%$RANLIB%g 12241 s%@RANLIB@%$RANLIB%g
13108 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 12242 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13109 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13110 s%@INSTALL_DATA@%$INSTALL_DATA%g 12243 s%@INSTALL_DATA@%$INSTALL_DATA%g
13111 s%@YACC@%$YACC%g 12244 s%@YACC@%$YACC%g
13112 s%@SET_MAKE@%$SET_MAKE%g 12245 s%@SET_MAKE@%$SET_MAKE%g
13113 s%@X_CFLAGS@%$X_CFLAGS%g 12246 s%@X_CFLAGS@%$X_CFLAGS%g
13114 s%@X_PRE_LIBS@%$X_PRE_LIBS%g 12247 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13115 s%@X_LIBS@%$X_LIBS%g 12248 s%@X_LIBS@%$X_LIBS%g
13116 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g 12249 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
13117 s%@install_pp@%$install_pp%g 12250 s%@install_pp@%$install_pp%g
13118 s%@exe_suffix@%$exe_suffix%g
13119 s%@libs_xauth@%$libs_xauth%g 12251 s%@libs_xauth@%$libs_xauth%g
13120 s%@dnd_objs@%$dnd_objs%g 12252 s%@dnd_objs@%$dnd_objs%g
13121 s%@lwlib_objs@%$lwlib_objs%g 12253 s%@lwlib_objs@%$lwlib_objs%g
13122 s%@ALLOCA@%$ALLOCA%g 12254 s%@ALLOCA@%$ALLOCA%g
13123 s%@dll_ld@%$dll_ld%g 12255 s%@dll_ld@%$dll_ld%g
13152 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g 12284 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
13153 s%@ETCDIR@%$ETCDIR%g 12285 s%@ETCDIR@%$ETCDIR%g
13154 s%@lockdir@%$lockdir%g 12286 s%@lockdir@%$lockdir%g
13155 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g 12287 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g
13156 s%@LOCKDIR@%$LOCKDIR%g 12288 s%@LOCKDIR@%$LOCKDIR%g
13157 s%@docdir@%$docdir%g
13158 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
13159 s%@DOCDIR@%$DOCDIR%g
13160 s%@archlibdir@%$archlibdir%g 12289 s%@archlibdir@%$archlibdir%g
13161 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g 12290 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
13162 s%@ARCHLIBDIR@%$ARCHLIBDIR%g 12291 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
12292 s%@docdir@%$docdir%g
13163 s%@bitmapdir@%$bitmapdir%g 12293 s%@bitmapdir@%$bitmapdir%g
13164 s%@extra_objs@%$extra_objs%g 12294 s%@extra_objs@%$extra_objs%g
13165 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g 12295 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
13166 s%@machfile@%$machfile%g 12296 s%@machfile@%$machfile%g
13167 s%@opsysfile@%$opsysfile%g 12297 s%@opsysfile@%$opsysfile%g