====================================================================== flex-2.5.3 for HUMAN68K X6_03 ====================================================================== Free Software Foundationのflex-2.5.3をHUMAN68Kに移植しました。 o 保証 正しく動作するよう意識して移植していますが動作保証はいたしません。 o 著作権 全ての変更箇所についての著作権は放棄します。 新規書き下ろし部分につ いての著作権は私が所有します。 o 再配布 GPLにしたがいます。 o 問い合わせ flex-2.5.3 for HUMAN68Kについての問い合わせはWILLs宛てにお願いしま す。 決してFree Software Foundationに問い合わせるような事はしないで 下さい。 ういるす / WILLs / 岡部 勝幸 hgc02147@niftyserve.or.jp RMN00081@うさぎ倶楽部 WILLS@めんたいネット SUME0008@すめネット WILLs@Network-SCoT WILLs@YASTY-Serve ---------------------------------------------------------------------- diff -u2rN flex-2.5.3/Makefile.in flex-2.5.3x03/Makefile.in --- flex-2.5.3/Makefile.in Sat Apr 22 03:53:20 1995 +++ flex-2.5.3x03/Makefile.in Tue Jun 18 18:49:54 1996 @@ -31,9 +31,10 @@ prefix = @prefix@ exec_prefix = @exec_prefix@ -bindir = $(exec_prefix)/bin -libdir = $(exec_prefix)/lib -includedir = $(prefix)/include +exec_suffix = @exec_suffix@ +bindir = @bindir@ +libdir = @libdir@ +includedir = @includedir@ manext = 1 -mandir = $(prefix)/man/man$(manext) +mandir = @mandir@/man$(manext) # You can define these to be "lex" and "libl.a" if you want to replace @@ -92,7 +93,7 @@ -all: $(FLEX) +all: $(FLEX)$(exec_suffix) -$(FLEX): .bootstrap $(OBJECTS) $(FLEXLIB) +$(FLEX)$(exec_suffix): .bootstrap $(OBJECTS) $(FLEXLIB) $(CC) $(CFLAGS) -o $(FLEX) $(LDFLAGS) $(OBJECTS) $(FLEXLIB) $(LIBS) @@ -142,5 +143,5 @@ test: check -check: $(FLEX) +check: $(FLEX)$(exec_suffix) $(FLEX_EXEC) $(FLEX_FLAGS) $(COMPRESSION) $(srcdir)/scan.l \ | sed s,\"$(srcdir)/scan.l\",\"scan.l\", \ @@ -166,10 +167,11 @@ cd $(srcdir) && nroff -man flex.1 >$(FLEX).man -install: $(FLEX) $(FLEXLIB) installdirs install.$(INSTALLMAN) - $(INSTALL_PROGRAM) $(FLEX) $(bindir)/$(FLEX) - @rm -f $(bindir)/$(FLEX)++ - cd $(bindir) && $(LN_S) $(FLEX) $(FLEX)++ +install: $(FLEX)$(exec_suffix) $(FLEXLIB) installdirs install.$(INSTALLMAN) + $(INSTALL_PROGRAM) $(FLEX)$(exec_suffix) $(bindir)/$(FLEX)$(exec_suffix) + @rm -f $(bindir)/$(FLEX)++$(exec_suffix) + cd $(bindir) && $(LN_S) $(FLEX)$(exec_suffix) $(FLEX)++$(exec_suffix) $(INSTALL_DATA) $(FLEXLIB) $(libdir)/$(FLEXLIB) -cd $(libdir) && $(RANLIB) $(FLEXLIB) + @rm -f $(includedir)/FlexLexer.h $(INSTALL_DATA) $(srcdir)/FlexLexer.h $(includedir)/FlexLexer.h @@ -189,5 +191,5 @@ uninstall: - rm -f $(bindir)/$(FLEX) $(bindir)/$(FLEX)++ + rm -f $(bindir)/$(FLEX)$(exec_suffix) $(bindir)/$(FLEX)++$(exec_suffix) rm -f $(libdir)/$(FLEXLIB) rm -f $(includedir)/FlexLexer.h @@ -210,9 +212,9 @@ clean: mostlyclean - rm -f flex parse.c parse.h *.o alloca.c *.lint lex.yy.c lex.yy.cc \ + rm -f flex$(exec_suffix) parse.c parse.h *.o alloca.c *.lint lex.yy.c lex.yy.cc \ $(FLEXLIB) config.log config.cache distclean: clean - rm -f .bootstrap $(FLEX) scan.c tags TAGS Makefile config.status \ + rm -f .bootstrap $(FLEX)$(exec_suffix) scan.c tags TAGS Makefile config.status \ config.h @@ -222,5 +224,5 @@ rm -f $(FLEX).man skel.c flex*.tar.gz flex*.tar.Z -dist: $(FLEX) $(DISTFILES) parse.c parse.h $(srcdir)/$(FLEX).man +dist: $(FLEX)$(exec_suffix) $(DISTFILES) parse.c parse.h $(srcdir)/$(FLEX).man $(MAKE) DIST_NAME=flex-`sed &2 @@ -280,17 +394,18 @@ fi -trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15 +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 # File descriptor usage: -# 0 unused; standard input +# 0 standard input # 1 file creation # 2 errors and warnings -# 3 unused; some systems may open it to /dev/tty -# 4 checking for... messages and results +# 3 some systems may open it to /dev/tty +# 4 used on the Kubota Titan +# 6 checking for... messages and results # 5 compiler messages saved in config.log if test "$silent" = yes; then - exec 4>/dev/null + exec 6>nul else - exec 4>&1 + exec 6>&1 fi exec 5>./config.log @@ -382,10 +497,10 @@ # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} $CFLAGS $CPPFLAGS conftest.$ac_ext -c 1>&5 2>&5' -ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5' +ac_compile='${CC-gcc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='( ${CC-gcc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>conftest.msg 2>&1; ac_state=$?; cat conftest.msg 1>&5; exit $ac_state )' -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then +if (echo "testing\c"; echo 1,2,3) | grep c >nul; then # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then + if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >nul; then ac_n= ac_c=' ' ac_t=' ' @@ -397,13 +512,14 @@ fi +: ${LIBS=-lsignal} -echo $ac_n "checking whether ln -s works""... $ac_c" 1>&4 -if eval "test \"`echo '${'ac_cv_prog_LN_S'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&4 +echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 else rm -f conftestdata -if ln -s X conftestdata 2>/dev/null +if ln -s X conftestdata 2>nul then rm -f conftestdata @@ -415,7 +531,7 @@ LN_S="$ac_cv_prog_LN_S" if test "$ac_cv_prog_LN_S" = "ln -s"; then - echo "$ac_t""yes" 1>&4 + echo "$ac_t""yes" 1>&6 else - echo "$ac_t""no" 1>&4 + echo "$ac_t""no" 1>&6 fi @@ -424,15 +540,15 @@ # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&4 -if eval "test \"`echo '${'ac_cv_prog_YACC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&4 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$YACC"; then ac_cv_prog_YACC="$YACC" # Let the user override the test. else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS};" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then + if test -f $ac_dir/$ac_word -o -f $ac_dir/${ac_word}.x; then ac_cv_prog_YACC="$ac_prog" break @@ -444,7 +560,7 @@ YACC="$ac_cv_prog_YACC" if test -n "$YACC"; then - echo "$ac_t""$YACC" 1>&4 + echo "$ac_t""$YACC" 1>&6 else - echo "$ac_t""no" 1>&4 + echo "$ac_t""no" 1>&6 fi @@ -455,15 +571,15 @@ # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&4 -if eval "test \"`echo '${'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&4 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS};" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then + if test -f $ac_dir/$ac_word -o -f $ac_dir/${ac_word}.x; then ac_cv_prog_CC="gcc" break @@ -471,18 +587,66 @@ done IFS="$ac_save_ifs" - test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then - echo "$ac_t""$CC" 1>&4 + echo "$ac_t""$CC" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS};" + ac_prog_rejected=no + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word -o -f $ac_dir/${ac_word}.x; then + if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + break + fi + done + IFS="$ac_save_ifs" +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# -gt 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + set dummy "$ac_dir/$ac_word" "$@" + shift + ac_cv_prog_CC="$@" + fi +fi +fi +fi +CC="$ac_cv_prog_CC" +if test -n "$CC"; then + echo "$ac_t""$CC" 1>&6 else - echo "$ac_t""no" 1>&4 + echo "$ac_t""no" 1>&6 fi + test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } +fi -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&4 -if eval "test \"`echo '${'ac_cv_prog_gcc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&4 +echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.c <&5 | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-gcc} -E conftest.c'; { (eval echo configure:658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >nul 2>&1; then ac_cv_prog_gcc=yes else @@ -497,14 +661,15 @@ fi fi -echo "$ac_t""$ac_cv_prog_gcc" 1>&4 + +echo "$ac_t""$ac_cv_prog_gcc" 1>&6 if test $ac_cv_prog_gcc = yes; then GCC=yes if test "${CFLAGS+set}" != set; then - echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&4 -if eval "test \"`echo '${'ac_cv_prog_gcc_g'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&4 + echo $ac_n "checking whether ${CC-gcc} accepts -g""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 else echo 'void f(){}' > conftest.c -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then +if test -z "`${CC-gcc} -g -c conftest.c 2>&1`"; then ac_cv_prog_gcc_g=yes else @@ -514,5 +679,6 @@ fi - echo "$ac_t""$ac_cv_prog_gcc_g" 1>&4 + +echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6 if test $ac_cv_prog_gcc_g = yes; then CFLAGS="-g -O" @@ -528,15 +694,15 @@ # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&4 -if eval "test \"`echo '${'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&4 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS};" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then + if test -f $ac_dir/$ac_word -o -f $ac_dir/${ac_word}.x; then ac_cv_prog_RANLIB="ranlib" break @@ -549,7 +715,7 @@ RANLIB="$ac_cv_prog_RANLIB" if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&4 + echo "$ac_t""$RANLIB" 1>&6 else - echo "$ac_t""no" 1>&4 + echo "$ac_t""no" 1>&6 fi @@ -583,13 +749,14 @@ # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4 +echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 if test -z "$INSTALL"; then -if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&4 +if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS};" for ac_dir in $PATH; do - case "$ac_dir" in - ''|.|/etc|/usr/sbin|/usr/etc|/sbin|/usr/afsws/bin|/usr/ucb) ;; + # Account for people who put trailing slashes in PATH elements. + case "$ac_dir/" in + /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. @@ -597,5 +764,5 @@ if test -f $ac_dir/$ac_prog; then if test $ac_prog = install && - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then + grep dspmsg $ac_dir/$ac_prog >nul 2>&1; then # AIX install. It has an incompatible calling convention. # OSF/1 installbsd also uses dspmsg, but is usable. @@ -605,4 +772,7 @@ break 2 fi + elif test -f $ac_dir/${ac_prog}.x; then + ac_cv_path_install="$ac_dir/$ac_prog -c" + break 2 fi done @@ -611,10 +781,17 @@ done IFS="$ac_save_ifs" - # As a last resort, use the slow shell script. - test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh" + fi - INSTALL="$ac_cv_path_install" + if test "${ac_cv_path_install+set}" = set; then + INSTALL="$ac_cv_path_install" + else + # As a last resort, use the slow shell script. We don't cache a + # path for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the path is relative. + INSTALL="$ac_install_sh" + fi fi -echo "$ac_t""$INSTALL" 1>&4 +echo "$ac_t""$INSTALL" 1>&6 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. @@ -624,8 +801,8 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' -echo $ac_n "checking whether ${MAKE-make} sets \$MAKE""... $ac_c" 1>&4 +echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 set dummy ${MAKE-make}; ac_make=$2 -if eval "test \"`echo '${'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&4 +if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftestmake <<\EOF @@ -634,5 +811,5 @@ EOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` +eval `${MAKE-make} -f conftestmake 2>nul | grep temp=` if test -n "$ac_maketemp"; then eval ac_cv_prog_make_${ac_make}_set=yes @@ -643,17 +820,17 @@ fi if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then - echo "$ac_t""yes" 1>&4 + echo "$ac_t""yes" 1>&6 SET_MAKE= else - echo "$ac_t""no" 1>&4 + echo "$ac_t""no" 1>&6 SET_MAKE="MAKE=${MAKE-make}" fi -echo $ac_n "checking for working const""... $ac_c" 1>&4 -if eval "test \"`echo '${'ac_cv_c_const'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&4 +echo $ac_n "checking for working const""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_const=yes @@ -715,5 +892,6 @@ fi -echo "$ac_t""$ac_cv_c_const" 1>&4 + +echo "$ac_t""$ac_cv_c_const" 1>&6 if test $ac_cv_c_const = no; then cat >> confdefs.h <<\EOF @@ -723,5 +901,5 @@ fi -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4 +echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then @@ -729,19 +907,20 @@ fi if test -z "$CPP"; then -if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&4 +if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 else # This must be in double quotes, not single quotes, because CPP may get - # substituted into the Makefile and "${CC-cc}" will confuse make. - CPP="${CC-cc} -E" + # substituted into the Makefile and "${CC-gcc}" will confuse make. + CPP="${CC-gcc} -E" # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext < Syntax Error EOF -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +ac_try="$ac_cpp conftest.$ac_ext >nul 2>conftest.out" +{ (eval echo configure:925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then @@ -750,12 +929,13 @@ echo "$ac_err" >&5 rm -rf conftest* - CPP="${CC-cc} -E -traditional-cpp" + CPP="${CC-gcc} -E -traditional-cpp" cat > conftest.$ac_ext < Syntax Error EOF -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +ac_try="$ac_cpp conftest.$ac_ext >nul 2>conftest.out" +{ (eval echo configure:940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then @@ -771,23 +951,25 @@ ac_cv_prog_CPP="$CPP" fi + CPP="$ac_cv_prog_CPP" +else + ac_cv_prog_CPP="$CPP" fi -CPP="$ac_cv_prog_CPP" -echo "$ac_t""$CPP" 1>&4 +echo "$ac_t""$CPP" 1>&6 # If we cannot run a trivial program, we must be cross compiling. -echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4 -if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&4 +echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then - ac_cv_cross=yes + ac_cv_c_cross=yes else cat > conftest.$ac_ext </dev/null; then +{ (eval echo configure:973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } +if test -x conftest && (./conftest; exit) 2>nul; then ac_cv_c_cross=no else @@ -797,13 +979,14 @@ rm -fr conftest* fi + +echo "$ac_t""$ac_cv_c_cross" 1>&6 cross_compiling=$ac_cv_c_cross -echo "$ac_t""$ac_cv_c_cross" 1>&4 -echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&4 -if eval "test \"`echo '${'ac_cv_header_stdc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&4 +echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -812,5 +995,6 @@ #include EOF -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +ac_try="$ac_cpp conftest.$ac_ext >nul 2>conftest.out" +{ (eval echo configure:999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then @@ -827,10 +1011,10 @@ # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "memchr" >/dev/null 2>&1; then + egrep "memchr" >nul 2>&1; then : else @@ -845,10 +1029,10 @@ # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "free" >/dev/null 2>&1; then + egrep "free" >nul 2>&1; then : else @@ -863,8 +1047,8 @@ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then - ac_cv_header_stdc=no + : else cat > conftest.$ac_ext < @@ -877,6 +1061,6 @@ EOF -eval $ac_link -if test -s conftest && (./conftest; exit) 2>/dev/null; then +{ (eval echo configure:1064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } +if test -x conftest && (./conftest; exit) 2>nul; then : else @@ -887,5 +1071,6 @@ fi fi -echo "$ac_t""$ac_cv_header_stdc" 1>&4 + +echo "$ac_t""$ac_cv_header_stdc" 1>&6 if test $ac_cv_header_stdc = yes; then cat >> confdefs.h <<\EOF @@ -895,10 +1080,10 @@ fi -echo $ac_n "checking for size_t""... $ac_c" 1>&4 -if eval "test \"`echo '${'ac_cv_type_size_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&4 +echo $ac_n "checking for size_t""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -908,5 +1093,5 @@ EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "size_t" >/dev/null 2>&1; then + egrep "size_t" >nul 2>&1; then rm -rf conftest* ac_cv_type_size_t=yes @@ -918,5 +1103,5 @@ fi -echo "$ac_t""$ac_cv_type_size_t" 1>&4 +echo "$ac_t""$ac_cv_type_size_t" 1>&6 if test $ac_cv_type_size_t = no; then cat >> confdefs.h <<\EOF @@ -926,10 +1111,10 @@ fi -echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&4 -if eval "test \"`echo '${'ac_cv_header_stdc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&4 +echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -938,5 +1123,6 @@ #include EOF -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +ac_try="$ac_cpp conftest.$ac_ext >nul 2>conftest.out" +{ (eval echo configure:1127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then @@ -953,10 +1139,10 @@ # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "memchr" >/dev/null 2>&1; then + egrep "memchr" >nul 2>&1; then : else @@ -971,10 +1157,10 @@ # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "free" >/dev/null 2>&1; then + egrep "free" >nul 2>&1; then : else @@ -989,8 +1175,8 @@ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then - ac_cv_header_stdc=no + : else cat > conftest.$ac_ext < @@ -1003,6 +1189,6 @@ EOF -eval $ac_link -if test -s conftest && (./conftest; exit) 2>/dev/null; then +{ (eval echo configure:1192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } +if test -x conftest && (./conftest; exit) 2>nul; then : else @@ -1013,5 +1199,6 @@ fi fi -echo "$ac_t""$ac_cv_header_stdc" 1>&4 + +echo "$ac_t""$ac_cv_header_stdc" 1>&6 if test $ac_cv_header_stdc = yes; then cat >> confdefs.h <<\EOF @@ -1024,14 +1211,15 @@ do ac_safe=`echo "$ac_hdr" | tr './\055' '___'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4 -if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&4 +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +ac_try="$ac_cpp conftest.$ac_ext >nul 2>conftest.out" +{ (eval echo configure:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then @@ -1046,6 +1234,6 @@ fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&4 - ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'` + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` cat >> confdefs.h <&4 + echo "$ac_t""no" 1>&6 fi done @@ -1062,10 +1250,10 @@ # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! -echo $ac_n "checking for working alloca.h""... $ac_c" 1>&4 -if eval "test \"`echo '${'ac_cv_header_alloca_h'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&4 +echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -1075,5 +1263,5 @@ ; return 0; } EOF -if eval $ac_link; then +if { (eval echo configure:1266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && awk '/^Not found :/ { exit 1 }' conftest.msg >nul 2>&1; then rm -rf conftest* ac_cv_header_alloca_h=yes @@ -1085,5 +1273,6 @@ fi -echo "$ac_t""$ac_cv_header_alloca_h" 1>&4 + +echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 if test $ac_cv_header_alloca_h = yes; then cat >> confdefs.h <<\EOF @@ -1093,10 +1282,10 @@ fi -echo $ac_n "checking for alloca""... $ac_c" 1>&4 -if eval "test \"`echo '${'ac_cv_func_alloca'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&4 +echo $ac_n "checking for alloca""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && awk '/^Not found :/ { exit 1 }' conftest.msg >nul 2>&1; then rm -rf conftest* ac_cv_func_alloca=yes @@ -1132,5 +1321,6 @@ fi -echo "$ac_t""$ac_cv_func_alloca" 1>&4 + +echo "$ac_t""$ac_cv_func_alloca" 1>&6 if test $ac_cv_func_alloca = yes; then cat >> confdefs.h <<\EOF @@ -1151,10 +1341,10 @@ -echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&4 -if eval "test \"`echo '${'ac_cv_os_cray'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&4 +echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5 | - egrep "webecray" >/dev/null 2>&1; then + egrep "webecray" >nul 2>&1; then rm -rf conftest* ac_cv_os_cray=yes @@ -1176,102 +1366,22 @@ fi -echo "$ac_t""$ac_cv_os_cray" 1>&4 -if test $ac_cv_os_cray = yes; then -echo $ac_n "checking for _getb67""... $ac_c" 1>&4 -if eval "test \"`echo '${'ac_cv_func__getb67'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&4 -else - cat > conftest.$ac_ext < /* Arbitrary system header to define __stub macros. */ -/* Override any gcc2 internal prototype to avoid an error. */ -char _getb67(); - -int main() { return 0; } -int t() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub__getb67) || defined (__stub____getb67) -choke me -#else -_getb67(); -#endif - -; return 0; } -EOF -if eval $ac_link; then - rm -rf conftest* - eval "ac_cv_func__getb67=yes" -else - rm -rf conftest* - eval "ac_cv_func__getb67=no" -fi -rm -f conftest* - -fi -if eval "test \"`echo '$ac_cv_func_'_getb67`\" = yes"; then - echo "$ac_t""yes" 1>&4 - cat >> confdefs.h <<\EOF -#define CRAY_STACKSEG_END _getb67 -EOF - -else - echo "$ac_t""no" 1>&4 -echo $ac_n "checking for GETB67""... $ac_c" 1>&4 -if eval "test \"`echo '${'ac_cv_func_GETB67'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&4 -else - cat > conftest.$ac_ext < /* Arbitrary system header to define __stub macros. */ -/* Override any gcc2 internal prototype to avoid an error. */ -char GETB67(); - -int main() { return 0; } -int t() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_GETB67) || defined (__stub___GETB67) -choke me -#else -GETB67(); -#endif - -; return 0; } -EOF -if eval $ac_link; then - rm -rf conftest* - eval "ac_cv_func_GETB67=yes" -else - rm -rf conftest* - eval "ac_cv_func_GETB67=no" -fi -rm -f conftest* - -fi -if eval "test \"`echo '$ac_cv_func_'GETB67`\" = yes"; then - echo "$ac_t""yes" 1>&4 - cat >> confdefs.h <<\EOF -#define CRAY_STACKSEG_END GETB67 -EOF -else - echo "$ac_t""no" 1>&4 -echo $ac_n "checking for getb67""... $ac_c" 1>&4 -if eval "test \"`echo '${'ac_cv_func_getb67'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&4 +echo "$ac_t""$ac_cv_os_cray" 1>&6 +if test $ac_cv_os_cray = yes; then +for ac_func in _getb67 GETB67 getb67; do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* Arbitrary system header to define __stub macros. */ +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func(); below. */ +#include /* Override any gcc2 internal prototype to avoid an error. */ -char getb67(); +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); int main() { return 0; } @@ -1281,41 +1391,39 @@ to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ -#if defined (__stub_getb67) || defined (__stub___getb67) +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else -getb67(); +$ac_func(); #endif ; return 0; } EOF -if eval $ac_link; then +if { (eval echo configure:1402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && awk '/^Not found :/ { exit 1 }' conftest.msg >nul 2>&1; then rm -rf conftest* - eval "ac_cv_func_getb67=yes" + eval "ac_cv_func_$ac_func=yes" else rm -rf conftest* - eval "ac_cv_func_getb67=no" + eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi -if eval "test \"`echo '$ac_cv_func_'getb67`\" = yes"; then - echo "$ac_t""yes" 1>&4 - cat >> confdefs.h <<\EOF -#define CRAY_STACKSEG_END getb67 +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <&4 -fi - -fi - + echo "$ac_t""no" 1>&6 fi +done fi -echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&4 -if eval "test \"`echo '${'ac_cv_c_stack_direction'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&4 +echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then @@ -1323,5 +1431,5 @@ else cat > conftest.$ac_ext </dev/null; then +{ (eval echo configure:1453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } +if test -x conftest && (./conftest; exit) 2>nul; then ac_cv_c_stack_direction=1 else @@ -1351,5 +1459,6 @@ rm -fr conftest* fi -echo "$ac_t""$ac_cv_c_stack_direction" 1>&4 + +echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 cat >> confdefs.h <&6 +ac_lib_var=`echo hdi'_'strtoll | tr './+\055' '__p_'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lhdi $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && awk '/^Not found :/ { exit 1 }' conftest.msg >nul 2>&1; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_lib=HAVE_LIB`echo hdi | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi + + echo $ac_n "checking for -lhmem""... $ac_c" 1>&6 +ac_lib_var=`echo hmem'_'hmemset | tr './+\055' '__p_'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lhmem $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && awk '/^Not found :/ { exit 1 }' conftest.msg >nul 2>&1; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_lib=HAVE_LIB`echo hmem | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi + + CFLAGS="$CFLAGS -cc1-stack=262144" + ;; +*) + exec_suffix= + ;; +esac + + trap '' 1 2 15 -if test -w $cache_file; then -echo "updating cache $cache_file" -cat > $cache_file <<\EOF +cat > confcache <<\EOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure @@ -1375,18 +1581,27 @@ # what configure does when it calls configure scripts in # subdirectories, so they share the cache. -# Giving --cache-file=/dev/null disables caching, for debugging configure. +# Giving --cache-file=nul disables caching, for debugging configure. # config.status only pays attention to the cache file if you give it the # --recheck option to rerun configure. # EOF -# Ultrix sh set writes to stderr and can't be redirected directly. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. (set) 2>&1 | - sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \ - >> $cache_file + sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \ + >> confcache +if cmp -s $cache_file confcache; then + : else -echo "not updating unwritable cache $cache_file" + if test -w $cache_file; then + echo "updating cache $cache_file" + cat confcache > $cache_file + else + echo "not updating unwritable cache $cache_file" + fi fi +rm -f confcache -trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15 +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 test "x$prefix" = xNONE && prefix=$ac_default_prefix @@ -1411,9 +1626,9 @@ rm -f $CONFIG_STATUS cat > $CONFIG_STATUS </dev/null | sed 1q`: +# on host `(hostname || uname -n) 2>nul | sed 1q`: # # $0 $ac_configure_args @@ -1430,5 +1645,5 @@ exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.1" + echo "$CONFIG_STATUS generated by autoconf version 2.10" exit 0 ;; -help | --help | --hel | --he | --h) @@ -1441,9 +1656,11 @@ ac_given_INSTALL="$INSTALL" -trap 'rm -fr Makefile config.h:conf.in conftest*; exit 1' 1 2 15 +trap 'rm -fr `echo "Makefile config.h:conf.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 +EOF +cat >> $CONFIG_STATUS < conftest.subs <<\CEOF +# Protect against being on the right side of a sed subst in config.status. +sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; + s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF $ac_vpsub $extrasub @@ -1457,4 +1674,16 @@ s%@prefix@%$prefix%g s%@program_transform_name@%$program_transform_name%g +s%@bindir@%$bindir%g +s%@sbindir@%$sbindir%g +s%@libexecdir@%$libexecdir%g +s%@datadir@%$datadir%g +s%@sysconfdir@%$sysconfdir%g +s%@sharedstatedir@%$sharedstatedir%g +s%@localstatedir@%$localstatedir%g +s%@libdir@%$libdir%g +s%@includedir@%$includedir%g +s%@oldincludedir@%$oldincludedir%g +s%@infodir@%$infodir%g +s%@mandir@%$mandir%g s%@LN_S@%$LN_S%g s%@YACC@%$YACC%g @@ -1466,4 +1695,5 @@ s%@CPP@%$CPP%g s%@ALLOCA@%$ALLOCA%g +s%@exec_suffix@%$exec_suffix%g CEOF @@ -1489,5 +1719,5 @@ # The file is in a subdirectory. test ! -d "$ac_dir" && mkdir "$ac_dir" - ac_dir_suffix="/$ac_dir" + ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" # A "../" for each directory in $ac_dir_suffix. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` @@ -1501,4 +1731,5 @@ else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; + "A-Za-z:/*") srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; *) # Relative path. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" @@ -1564,5 +1795,5 @@ # Transform confdefs.h into a sed script conftest.vals that substitutes # the proper values into config.h.in to produce config.h. And first: -# Protect against being on the right side of a sed subst in config.status. +# Protect against being on the right side of a sed subst in config.status. # Protect against being in an unquoted here document in config.status. rm -f conftest.vals @@ -1570,5 +1801,5 @@ s/[\\&%]/\\&/g s%[\\$`]%\\&%g -s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp s%ac_d%ac_u%gp s%ac_u%ac_e%gp @@ -1614,8 +1845,14 @@ cat conftest.in >> conftest.h rm -f conftest.in - if cmp -s $ac_file conftest.h 2>/dev/null; then + if cmp -s $ac_file conftest.h 2>nul; then echo "$ac_file is unchanged" rm -f conftest.h else + # Remove last slash and all that follows it. Not all systems have dirname. + ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` + if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then + # The file is in a subdirectory. + test ! -d "$ac_dir" && mkdir "$ac_dir" + fi rm -f $ac_file mv conftest.h $ac_file @@ -1629,4 +1866,8 @@ chmod +x $CONFIG_STATUS rm -fr confdefs* $ac_clean_files -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS +ac_states=0 +test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || ac_states=1 +exec 6>&- +exec 5>&- +exit $ac_states diff -u2rN flex-2.5.3/configure.in flex-2.5.3x03/configure.in --- flex-2.5.3/configure.in Fri Apr 21 05:09:02 1995 +++ flex-2.5.3x03/configure.in Mon Jun 17 22:55:38 1996 @@ -21,4 +21,17 @@ esac +case "$KSH_VERSION" in +*X6*) + exec_suffix=.x + AC_CHECK_LIB(hdi, strtoll) + AC_CHECK_LIB(hmem, hmemset) + CFLAGS="$CFLAGS -cc1-stack=262144" + ;; +*) + exec_suffix= + ;; +esac +AC_SUBST(exec_suffix) + AC_OUTPUT(Makefile, [test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h]) diff -u2rN flex-2.5.3/main.c flex-2.5.3x03/main.c --- flex-2.5.3/main.c Sun May 26 12:42:56 1996 +++ flex-2.5.3x03/main.c Mon Jun 17 22:52:28 1996 @@ -39,5 +39,9 @@ #include "version.h" +#ifdef __human68k__ +static char flex_version[] = FLEX_VERSION " (X6_02)"; +#else static char flex_version[] = FLEX_VERSION; +#endif @@ -610,4 +614,16 @@ program_name = argv[0]; + +#ifdef __human68k__ + { + extern char *_toslash (); + char *p; + _toslash( program_name ); + p = strrchr( program_name, '/'); + p = strrchr( ( p != NULL ? p : program_name ),'.'); + if ( p != NULL && ! stricmp( p, ".x" ) ) + *p = '\0'; + } +#endif if ( program_name[0] != '\0' &&