public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
* Compilation problems on SuSE Linux 8.2
@ 2003-05-10 18:26 Bernhard Bialas
  2003-05-28 12:23 ` Johan Gill
  2003-06-02 16:22 ` Bart Oldeman
  0 siblings, 2 replies; 5+ messages in thread
From: Bernhard Bialas @ 2003-05-10 18:26 UTC (permalink / raw)
  To: linux-msdos

Hello,
on the a.m distribution I am not able to compile dosemu 1.1.4.15.
When I start configure I get (after some work) the following message:
-------------------------------------------------------------------------------------------
Sorry, a.out system detected, but we do no longer support it.
------------------------------------------------------------------------------------------

Something must be wrong there, because I have:
- Linux kernel 2.4.20
- glibc 2.3.2
- compiler gcc 3.3
The distribution is approx. 6 weeks old.
What can I do to solve the problem?

Thank you in advance
Bernhard Bialas

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Compilation problems on SuSE Linux 8.2
  2003-05-10 18:26 Compilation problems on SuSE Linux 8.2 Bernhard Bialas
@ 2003-05-28 12:23 ` Johan Gill
  2003-06-02  9:55   ` Johan Gill
  2003-06-02 16:22 ` Bart Oldeman
  1 sibling, 1 reply; 5+ messages in thread
From: Johan Gill @ 2003-05-28 12:23 UTC (permalink / raw)
  To: linux-msdos

On Sat, May 10, 2003 at 08:26:07PM +0200, Bernhard Bialas wrote:
> Hello,
> on the a.m distribution I am not able to compile dosemu 1.1.4.15.
> When I start configure I get (after some work) the following message:
> -------------------------------------------------------------------------------------------
> Sorry, a.out system detected, but we do no longer support it.
> ------------------------------------------------------------------------------------------
> 
> Something must be wrong there, because I have:
> - Linux kernel 2.4.20
> - glibc 2.3.2
> - compiler gcc 3.3
> The distribution is approx. 6 weeks old.
> What can I do to solve the problem?
> 
> Thank you in advance
> Bernhard Bialas

I get this too. I believe that gcc 3.3 is the problem although I don't know how yet.
-- 
Johan Gill, johane@lysator.liu.se


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Compilation problems on SuSE Linux 8.2
  2003-05-28 12:23 ` Johan Gill
@ 2003-06-02  9:55   ` Johan Gill
  0 siblings, 0 replies; 5+ messages in thread
From: Johan Gill @ 2003-06-02  9:55 UTC (permalink / raw)
  To: linux-msdos

It seems the configure script pukes on my autodetected config
i686-pc-linux-gnu. It actually believes it is an a.out system!


-- 
Johan Gill, johane@lysator.liu.se


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Compilation problems on SuSE Linux 8.2
  2003-05-10 18:26 Compilation problems on SuSE Linux 8.2 Bernhard Bialas
  2003-05-28 12:23 ` Johan Gill
@ 2003-06-02 16:22 ` Bart Oldeman
  2003-06-02 21:10   ` Bernhard Bialas
  1 sibling, 1 reply; 5+ messages in thread
From: Bart Oldeman @ 2003-06-02 16:22 UTC (permalink / raw)
  To: Bernhard Bialas; +Cc: linux-msdos

On Sat, 10 May 2003, Bernhard Bialas wrote:

> on the a.m distribution I am not able to compile dosemu 1.1.4.15.
> When I start configure I get (after some work) the following message:
> -------------------------------------------------------------------------------------------
> Sorry, a.out system detected, but we do no longer support it.
> ------------------------------------------------------------------------------------------
>
> Something must be wrong there, because I have:
> - Linux kernel 2.4.20
> - glibc 2.3.2
> - compiler gcc 3.3
> The distribution is approx. 6 weeks old.
> What can I do to solve the problem?

please try this patch -- there are a few other changes (related to
be able to build outside the source tree), but that shouldn't hurt.

Bart

--- dosemu-1.1.4.15/configure.ac	Tue Apr 15 23:11:02 2003
+++ dosemu-1.1.4.16/configure.ac	Thu May 15 20:34:13 2003
@@ -1,12 +1,13 @@
 dnl Process this file with autoconf to produce a configure script.
-AC_INIT([DOSEMU],[`cat VERSION`],[http://sourceforge.net/tracker/?atid=457447&group_id=49784&func=browse],dosemu)
+AC_INIT([DOSEMU], [],
+[http://sourceforge.net/tracker/?atid=457447&group_id=49784&func=browse],dosemu)
 AC_CONFIG_SRCDIR(src/base/misc/dosio.c)
 AC_PREREQ(2.57)

 # first check if we are called from default-configure and if not,
 # execute that to parse compiletime settings
 if test -z "$DOSEMU_DEFAULT_CONFIGURE" ; then
-  exec ./default-configure "$@"
+  exec $srcdir/default-configure "$@"
 fi

 AC_CONFIG_HEADER(src/include/config.h)
@@ -132,29 +133,15 @@

 dnl Do ELF if possible

- if ! $CC -v 2>&1|grep specs >/dev/null 2>&1; then
-   AC_MSG_WARN(Your GCC installation is incomplete: specs file is missing.)
-   AC_MSG_WARN(We assume your GCC compiles for ELF.)
-   AC_MSG_WARN( )
-   ELF="ELF=1"
- else
-   if grep __ELF__ `$CC -v 2>&1|head -n1|cut -d' ' -f4` /dev/null 1>/dev/null 2>&1; then
-    ELF="ELF=1"
-   else
-     if test "$CONFIG_HOST" = "linux"; then
-      echo "------------------------------------------------------------"
-      echo "Sorry, a.out system detected, but we do no longer support it"
-      echo "------------------------------------------------------------"
-      exit 1
-     else
-      # DON'T CHANGE THIS: this makes libdosemu start high enough to be safe.
-      # should be okay at...0x20000000 for .5 GB mark.
-      LIBSTART="LIBSTART = 0x20000000"
-     fi
-   fi
- fi
- AC_SUBST(LIBSTART)
- AC_SUBST(ELF)
+if ! echo -e '#ifdef __ELF__\n#define foo bar\n#endif\nfoo' \
+   | gcc -E - | grep bar > /dev/null; then
+  if test "$CONFIG_HOST" = "linux"; then
+    echo "------------------------------------------------------------"
+    echo "Sorry, a.out system detected, but we do no longer support it"
+    echo "------------------------------------------------------------"
+    exit 1
+  fi
+fi

 dnl Check for static and then also use it for tests

@@ -235,11 +222,11 @@
   AC_CHECK_LIB(slang, SLsmg_write_nwchars,
     AC_MSG_WARN([Rejecting system S-Lang with UTF-8 support. It is incompatible with DOSEMU. Using supplied S-Lang.])
     buggy_slang=yes
-    ./mkpluginhooks enable slang yes,
+    $srcdir/mkpluginhooks enable slang yes,
    AC_CHECK_LIB(slang, SLtt_get_terminfo,
                 LIBS="$LIBS -lslang -lm -ldl";LDFLAGS="$LDFLAGS $SLANGLIB",
                 [AC_MSG_WARN([No S-Lang library found. Using supplied S-Lang.])]
-		./mkpluginhooks enable slang yes,
+		$srcdir/mkpluginhooks enable slang yes,
    -lm -ldl), -lm -ldl)
 )

@@ -297,7 +284,7 @@
                  [#include <X11/Xlib.h>]))
 fi

-PACKAGE_VERSION=`cat VERSION`
+PACKAGE_VERSION=`cat ${srcdir}/VERSION`
 VV=$PACKAGE_VERSION
 VERSION=${VV%%.*}
 VV=${VV#*.}
@@ -354,16 +341,16 @@
 AC_SUBST(DEBUGGER)

 dnl try to hook in available plug-ins
-if test -x ./mkpluginhooks; then
-  ./mkpluginhooks
-  if test -f ./plugin_libdirs; then
-    PLUGINSUBDIRS=`cat ./plugin_libdirs`
+if test -x $srcdir/mkpluginhooks; then
+  TOP=$srcdir $srcdir/mkpluginhooks
+  if test -f plugin_libdirs; then
+    PLUGINSUBDIRS=`cat plugin_libdirs`
     AC_MSG_NOTICE(Including plugins: $PLUGINSUBDIRS...);
-    if test -f ./plugin_incdirs; then
+    if test -f plugin_incdirs; then
       cd src
       for i in `cat ../plugin_incdirs`; do
-        for j in $i/*; do
-          ln -sf ../../$j plugin/include/`basename $j`
+        for j in $srcdir/src/$i/*; do
+          ln -sf $j plugin/include/`basename $j`
         done
       done
       cd ..
@@ -388,6 +375,15 @@
    AC_MSG_NOTICE(Compiling without debug info...);
   fi

+ AC_ARG_ENABLE(debug,
+               [  --enable-debug          compile with debug info],
+               [debug="yes"],[debug="no"])
+  if test "$debug" = "yes"; then
+   AC_MSG_NOTICE(Compiling with debug info...);
+  else
+   AC_MSG_NOTICE(Compiling without debug info...);
+  fi
+
 dnl Compile with ASPI support
  AC_ARG_ENABLE(aspi,
                [  --enable-aspi           do compile with ASPI support],
@@ -425,11 +421,11 @@

 dnl Now CFLAGS and INCLUDES

-INCDIR="-I\${SRCPATH}/plugin/include -I\${SRCPATH}/include ${SLANGINC}"
+INCDIR="-I\${abs_top_builddir}/src/include -I\${abs_top_builddir}/src/plugin/include -I\${top_srcdir}/src/include ${SLANGINC}"
 AC_SUBST(INCDIR)

 CFLAGS="-Wall -Wstrict-prototypes -Wmissing-declarations -Wnested-externs"
-if test "$dodebug" = "yes"; then
+if test "$dodebug" = "yes" -o "$debug" = "yes"; then
   CFLAGS="$CFLAGS -gstabs+"
   AC_DEFINE(_DEBUG)
   OPT="-O"
@@ -579,6 +575,17 @@

 AC_CONFIG_FILES([Makefile.conf])

+AC_CONFIG_COMMANDS([Makefile],
+[ if ! test -f configure.ac; then
+    mkdir -p `(cd $srcdir; find . -type d)`
+    mkdir -p src/lib
+    for i in `(cd $srcdir; find . -name Makefile)`; do
+      echo  ln -sf $srcdir/$i $i
+      ln -sf $srcdir/$i $i
+    done
+  fi
+])
+
 dnl autoheader stuff
 AH_TOP([
 /*
@@ -788,7 +795,5 @@
   AC_MSG_WARN(Compiling without X support.)
   AC_MSG_WARN(Install the X development libraries if you want support for X.)
 fi
-echo ""
-echo "Configure finished. Do 'make' to compile Dosemu."
 echo ""

--- dosemu-1.1.4.15/configure	Tue Apr 15 23:11:02 2003
+++ dosemu-1.1.4.16/configure	Thu May 15 20:34:35 2003
@@ -1,8 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.57 for DOSEMU `cat VERSION`.
-#
-# Report bugs to <http://sourceforge.net/tracker/?atid=457447&group_id=49784&func=browse>.
+# Generated by GNU Autoconf 2.57.
 #
 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
 # Free Software Foundation, Inc.
@@ -266,12 +264,13 @@
 : ${ac_max_here_lines=38}

 # Identity of this package.
-PACKAGE_NAME='DOSEMU'
-PACKAGE_TARNAME='dosemu'
-PACKAGE_VERSION='`cat VERSION`'
-PACKAGE_STRING='DOSEMU `cat VERSION`'
-PACKAGE_BUGREPORT='http://sourceforge.net/tracker/?atid=457447&group_id=49784&func=browse'
+PACKAGE_NAME=
+PACKAGE_TARNAME=
+PACKAGE_VERSION=
+PACKAGE_STRING=
+PACKAGE_BUGREPORT=

+ac_unique_file="DOSEMU"
 ac_unique_file="src/base/misc/dosio.c"
 # Factoring default headers for most tests.
 ac_includes_default="\
@@ -311,7 +310,7 @@
 #endif"

 ac_subdirs_all="$ac_subdirs_all `touch ./plugin_configure; cat ./plugin_configure`"
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LEX LEXLIB LEX_OUTPUT_ROOT lex_ok LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC ALLOCA LIBOBJS docdir x11fontdir syshdimagedir fdtarball CONFIG_HOST LIBSTART ELF USE_SVGALIB USE_PTHREADS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X_SUPPORT X_GRAPHICS USE_MHPDBG DEBUGGER subdirs ASPI_SUPPORT USE_ULTRA USE_SBEMU OPTIONALSUBDIRS REQUIRED PLUGINSUBDIRS INCDIR X86_EMULATOR ASM_PEDANTIC LTLIBOBJS'
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LEX LEXLIB LEX_OUTPUT_ROOT lex_ok LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC ALLOCA LIBOBJS docdir x11fontdir syshdimagedir fdtarball CONFIG_HOST USE_SVGALIB USE_PTHREADS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X_SUPPORT X_GRAPHICS USE_MHPDBG DEBUGGER subdirs ASPI_SUPPORT USE_ULTRA USE_SBEMU OPTIONALSUBDIRS REQUIRED PLUGINSUBDIRS INCDIR X86_EMULATOR ASM_PEDANTIC LTLIBOBJS'
 ac_subst_files=''

 # Initialize some variables set by options.
@@ -780,7 +779,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures DOSEMU `cat VERSION` to adapt to many kinds of systems.
+\`configure' configures this package to adapt to many kinds of systems.

 Usage: $0 [OPTION]... [VAR=VALUE]...

@@ -845,9 +844,7 @@
 fi

 if test -n "$ac_init_help"; then
-  case $ac_init_help in
-     short | recursive ) echo "Configuration of DOSEMU `cat VERSION`:";;
-   esac
+
   cat <<\_ACEOF

 Optional Features:
@@ -861,6 +858,7 @@
   --enable-novidmode      do NOT use the XF86 vidmode extension
   --enable-experimental   enable configuration of EXPERIMENTAL stuff
   --enable-dodebug        do compile for with debug info
+  --enable-debug          compile with debug info
   --enable-aspi           do compile with ASPI support
   --enable-nosbemu        do NOT use SoundBlaster emulator
   --enable-cpuemu         EXPERIMENTAL, compile with optional x86 emulation code
@@ -892,7 +890,6 @@
 Use these variables to override the choices made by `configure' or to help
 it to find libraries and programs with nonstandard names/locations.

-Report bugs to <http://sourceforge.net/tracker/?atid=457447&group_id=49784&func=browse>.
 _ACEOF
 fi

@@ -955,8 +952,6 @@
 test -n "$ac_init_help" && exit 0
 if $ac_init_version; then
   cat <<\_ACEOF
-DOSEMU configure `cat VERSION`
-generated by GNU Autoconf 2.57

 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
 Free Software Foundation, Inc.
@@ -970,7 +965,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.

-It was created by DOSEMU $as_me `cat VERSION`, which was
+It was created by $as_me, which was
 generated by GNU Autoconf 2.57.  Invocation command line was

   $ $0 $@
@@ -1301,18 +1296,10 @@



-
-
-
-
-
-
-
-
 # first check if we are called from default-configure and if not,
 # execute that to parse compiletime settings
 if test -z "$DOSEMU_DEFAULT_CONFIGURE" ; then
-  exec ./default-configure "$@"
+  exec $srcdir/default-configure "$@"
 fi

           ac_config_headers="$ac_config_headers src/include/config.h"
@@ -6217,32 +6204,15 @@



- if ! $CC -v 2>&1|grep specs >/dev/null 2>&1; then
-   { echo "$as_me:$LINENO: WARNING: Your GCC installation is incomplete: specs file is missing." >&5
-echo "$as_me: WARNING: Your GCC installation is incomplete: specs file is missing." >&2;}
-   { echo "$as_me:$LINENO: WARNING: We assume your GCC compiles for ELF." >&5
-echo "$as_me: WARNING: We assume your GCC compiles for ELF." >&2;}
-   { echo "$as_me:$LINENO: WARNING: " >&5
-echo "$as_me: WARNING: " >&2;}
-   ELF="ELF=1"
- else
-   if grep __ELF__ `$CC -v 2>&1|head -n1|cut -d' ' -f4` /dev/null 1>/dev/null 2>&1; then
-    ELF="ELF=1"
-   else
-     if test "$CONFIG_HOST" = "linux"; then
-      echo "------------------------------------------------------------"
-      echo "Sorry, a.out system detected, but we do no longer support it"
-      echo "------------------------------------------------------------"
-      exit 1
-     else
-      # DON'T CHANGE THIS: this makes libdosemu start high enough to be safe.
-      # should be okay at...0x20000000 for .5 GB mark.
-      LIBSTART="LIBSTART = 0x20000000"
-     fi
-   fi
- fi
-
-
+if ! echo -e '#ifdef __ELF__\n#define foo bar\n#endif\nfoo' \
+   | gcc -E - | grep bar > /dev/null; then
+  if test "$CONFIG_HOST" = "linux"; then
+    echo "------------------------------------------------------------"
+    echo "Sorry, a.out system detected, but we do no longer support it"
+    echo "------------------------------------------------------------"
+    exit 1
+  fi
+fi


 LDFLAGS="-Wl,-warn-common"
@@ -6530,7 +6500,7 @@
   { echo "$as_me:$LINENO: WARNING: Rejecting system S-Lang with UTF-8 support. It is incompatible with DOSEMU. Using supplied S-Lang." >&5
 echo "$as_me: WARNING: Rejecting system S-Lang with UTF-8 support. It is incompatible with DOSEMU. Using supplied S-Lang." >&2;}
     buggy_slang=yes
-    ./mkpluginhooks enable slang yes
+    $srcdir/mkpluginhooks enable slang yes
 else
   echo "$as_me:$LINENO: checking for SLtt_get_terminfo in -lslang" >&5
 echo $ECHO_N "checking for SLtt_get_terminfo in -lslang... $ECHO_C" >&6
@@ -6591,7 +6561,7 @@
 else
   { echo "$as_me:$LINENO: WARNING: No S-Lang library found. Using supplied S-Lang." >&5
 echo "$as_me: WARNING: No S-Lang library found. Using supplied S-Lang." >&2;}
-		./mkpluginhooks enable slang yes
+		$srcdir/mkpluginhooks enable slang yes
 fi

 fi
@@ -8141,7 +8111,7 @@
 fi;
 fi

-PACKAGE_VERSION=`cat VERSION`
+PACKAGE_VERSION=`cat ${srcdir}/VERSION`
 VV=$PACKAGE_VERSION
 VERSION=${VV%%.*}
 VV=${VV#*.}
@@ -8229,17 +8199,17 @@
 fi


-if test -x ./mkpluginhooks; then
-  ./mkpluginhooks
-  if test -f ./plugin_libdirs; then
-    PLUGINSUBDIRS=`cat ./plugin_libdirs`
+if test -x $srcdir/mkpluginhooks; then
+  TOP=$srcdir $srcdir/mkpluginhooks
+  if test -f plugin_libdirs; then
+    PLUGINSUBDIRS=`cat plugin_libdirs`
     { echo "$as_me:$LINENO: Including plugins: $PLUGINSUBDIRS..." >&5
 echo "$as_me: Including plugins: $PLUGINSUBDIRS..." >&6;};
-    if test -f ./plugin_incdirs; then
+    if test -f plugin_incdirs; then
       cd src
       for i in `cat ../plugin_incdirs`; do
-        for j in $i/*; do
-          ln -sf ../../$j plugin/include/`basename $j`
+        for j in $srcdir/src/$i/*; do
+          ln -sf $j plugin/include/`basename $j`
         done
       done
       cd ..
@@ -8273,6 +8243,21 @@
 echo "$as_me: Compiling without debug info..." >&6;};
   fi

+ # Check whether --enable-debug or --disable-debug was given.
+if test "${enable_debug+set}" = set; then
+  enableval="$enable_debug"
+  debug="yes"
+else
+  debug="no"
+fi;
+  if test "$debug" = "yes"; then
+   { echo "$as_me:$LINENO: Compiling with debug info..." >&5
+echo "$as_me: Compiling with debug info..." >&6;};
+  else
+   { echo "$as_me:$LINENO: Compiling without debug info..." >&5
+echo "$as_me: Compiling without debug info..." >&6;};
+  fi
+
  # Check whether --enable-aspi or --disable-aspi was given.
 if test "${enable_aspi+set}" = set; then
   enableval="$enable_aspi"
@@ -8387,11 +8372,11 @@



-INCDIR="-I\${SRCPATH}/plugin/include -I\${SRCPATH}/include ${SLANGINC}"
+INCDIR="-I\${abs_top_builddir}/src/include -I\${abs_top_builddir}/src/plugin/include -I\${top_srcdir}/src/include ${SLANGINC}"


 CFLAGS="-Wall -Wstrict-prototypes -Wmissing-declarations -Wnested-externs"
-if test "$dodebug" = "yes"; then
+if test "$dodebug" = "yes" -o "$debug" = "yes"; then
   CFLAGS="$CFLAGS -gstabs+"
   cat >>confdefs.h <<\_ACEOF
 #define _DEBUG 1
@@ -8589,6 +8574,9 @@
           ac_config_files="$ac_config_files Makefile.conf"


+          ac_config_commands="$ac_config_commands Makefile"
+
+



@@ -9044,7 +9032,7 @@
 } >&5
 cat >&5 <<_CSEOF

-This file was extended by DOSEMU $as_me `cat VERSION`, which was
+This file was extended by $as_me, which was
 generated by GNU Autoconf 2.57.  Invocation command line was

   CONFIG_FILES    = $CONFIG_FILES
@@ -9099,12 +9087,15 @@
 Configuration headers:
 $config_headers

+Configuration commands:
+$config_commands
+
 Report bugs to <bug-autoconf@gnu.org>."
 _ACEOF

 cat >>$CONFIG_STATUS <<_ACEOF
 ac_cs_version="\\
-DOSEMU config.status `cat VERSION`
+config.status
 configured by $0, generated by GNU Autoconf 2.57,
   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"

@@ -9208,6 +9199,7 @@
   case "$ac_config_target" in
   # Handling of arguments.
   "Makefile.conf" ) CONFIG_FILES="$CONFIG_FILES Makefile.conf" ;;
+  "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
   "src/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/config.h" ;;
   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
@@ -9222,6 +9214,7 @@
 if $ac_need_defaults; then
   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
+  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 fi

 # Have a temporary directory for convenience.  Make it in the build tree
@@ -9330,8 +9323,6 @@
 s,@syshdimagedir@,$syshdimagedir,;t t
 s,@fdtarball@,$fdtarball,;t t
 s,@CONFIG_HOST@,$CONFIG_HOST,;t t
-s,@LIBSTART@,$LIBSTART,;t t
-s,@ELF@,$ELF,;t t
 s,@USE_SVGALIB@,$USE_SVGALIB,;t t
 s,@USE_PTHREADS@,$USE_PTHREADS,;t t
 s,@X_CFLAGS@,$X_CFLAGS,;t t
@@ -9775,6 +9766,74 @@
   fi
 done
 _ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF
+
+#
+# CONFIG_COMMANDS section.
+#
+for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
+  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
+  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
+  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
+$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+         X"$ac_dest" : 'X\(//\)[^/]' \| \
+         X"$ac_dest" : 'X\(//\)$' \| \
+         X"$ac_dest" : 'X\(/\)' \| \
+         .     : '\(.\)' 2>/dev/null ||
+echo X"$ac_dest" |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+  	  /^X\(\/\/\)$/{ s//\1/; q; }
+  	  /^X\(\/\).*/{ s//\1/; q; }
+  	  s/.*/./; q'`
+  ac_builddir=.
+
+if test "$ac_dir" != .; then
+  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
+  # A "../" for each directory in $ac_dir_suffix.
+  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
+else
+  ac_dir_suffix= ac_top_builddir=
+fi
+
+case $srcdir in
+  .)  # No --srcdir option.  We are building in place.
+    ac_srcdir=.
+    if test -z "$ac_top_builddir"; then
+       ac_top_srcdir=.
+    else
+       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
+    fi ;;
+  [\\/]* | ?:[\\/]* )  # Absolute path.
+    ac_srcdir=$srcdir$ac_dir_suffix;
+    ac_top_srcdir=$srcdir ;;
+  *) # Relative path.
+    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
+    ac_top_srcdir=$ac_top_builddir$srcdir ;;
+esac
+# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
+# absolute.
+ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
+ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
+ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
+ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
+
+
+  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
+echo "$as_me: executing $ac_dest commands" >&6;}
+  case $ac_dest in
+    Makefile )  if ! test -f configure.ac; then
+    mkdir -p `(cd $srcdir; find . -type d)`
+    mkdir -p src/lib
+    for i in `(cd $srcdir; find . -name Makefile)`; do
+      echo  ln -sf $srcdir/$i $i
+      ln -sf $srcdir/$i $i
+    done
+  fi
+ ;;
+  esac
+done
+_ACEOF

 cat >>$CONFIG_STATUS <<\_ACEOF

@@ -9986,7 +10045,5 @@
   { echo "$as_me:$LINENO: WARNING: Install the X development libraries if you want support for X." >&5
 echo "$as_me: WARNING: Install the X development libraries if you want support for X." >&2;}
 fi
-echo ""
-echo "Configure finished. Do 'make' to compile Dosemu."
 echo ""



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Compilation problems on SuSE Linux 8.2
  2003-06-02 16:22 ` Bart Oldeman
@ 2003-06-02 21:10   ` Bernhard Bialas
  0 siblings, 0 replies; 5+ messages in thread
From: Bernhard Bialas @ 2003-06-02 21:10 UTC (permalink / raw)
  To: Bart Oldeman; +Cc: linux-msdos

[-- Attachment #1: Type: text/plain, Size: 1155 bytes --]

> > -------------------------------------------------------------------------
> >------------------ Sorry, a.out system detected, but we do no longer
> > support it.
> > -------------------------------------------------------------------------

> please try this patch -- there are a few other changes (related to
> be able to build outside the source tree), but that shouldn't hurt.
>
> Bart

Hello Bart,
many thanks for the patch. Unfortunately it does not work for me.
I did the following:
- on a fresh dosemu 1.1.4.0 applied the 1.1.4.15 patchset
- copied your patch (dosemu_configure.diff) into the dosemu directory (of 
course with the corrected path  of my dosemu i.e.dosemu-1.1.4 instead of 
dosemu-1.1.4.15)
- with patch -p1 < dosemu_configure.diff applied the patch
Some hunks was rejected (please refer to the attached files.)
The following "make" aborts during te build of the Makefile with the message:

config.status: creating /include/kbd_unicode_config.h 

Makefile.conf:80: *** missing separator. Stop

Maybe there is something wrong with the patch  or I have something overseen?
Thanks in advance for your help.

Best regards
Bernhard



[-- Attachment #2: configure.ac.rej --]
[-- Type: text/x-diff, Size: 3663 bytes --]

***************
*** 132,160 ****
  
  dnl Do ELF if possible
  
-  if ! $CC -v 2>&1|grep specs >/dev/null 2>&1; then
-    AC_MSG_WARN(Your GCC installation is incomplete: specs file is missing.)
-    AC_MSG_WARN(We assume your GCC compiles for ELF.)
-    AC_MSG_WARN( )
-    ELF="ELF=1"
-  else
-    if grep __ELF__ `$CC -v 2>&1|head -n1|cut -d' ' -f4` /dev/null 1>/dev/null 2>&1; then
-     ELF="ELF=1"
-    else
-      if test "$CONFIG_HOST" = "linux"; then
-       echo "------------------------------------------------------------"
-       echo "Sorry, a.out system detected, but we do no longer support it"
-       echo "------------------------------------------------------------"
-       exit 1
-      else
-       # DON'T CHANGE THIS: this makes libdosemu start high enough to be safe.
-       # should be okay at...0x20000000 for .5 GB mark.
-       LIBSTART="LIBSTART = 0x20000000"
-      fi
-    fi
-  fi
-  AC_SUBST(LIBSTART)
-  AC_SUBST(ELF)
  
  dnl Check for static and then also use it for tests
  
--- 133,147 ----
  
  dnl Do ELF if possible
  
+ if ! echo -e '#ifdef __ELF__\n#define foo bar\n#endif\nfoo' \
+    | gcc -E - | grep bar > /dev/null; then
+   if test "$CONFIG_HOST" = "linux"; then
+     echo "------------------------------------------------------------"
+     echo "Sorry, a.out system detected, but we do no longer support it"
+     echo "------------------------------------------------------------"
+     exit 1
+   fi
+ fi
  
  dnl Check for static and then also use it for tests
  
***************
*** 235,245 ****
    AC_CHECK_LIB(slang, SLsmg_write_nwchars,
      AC_MSG_WARN([Rejecting system S-Lang with UTF-8 support. It is incompatible with DOSEMU. Using supplied S-Lang.])
      buggy_slang=yes
-     ./mkpluginhooks enable slang yes,
     AC_CHECK_LIB(slang, SLtt_get_terminfo,
                  LIBS="$LIBS -lslang -lm -ldl";LDFLAGS="$LDFLAGS $SLANGLIB",
                  [AC_MSG_WARN([No S-Lang library found. Using supplied S-Lang.])]
-                ./mkpluginhooks enable slang yes,
     -lm -ldl), -lm -ldl)
  )
  
--- 222,232 ----
    AC_CHECK_LIB(slang, SLsmg_write_nwchars,
      AC_MSG_WARN([Rejecting system S-Lang with UTF-8 support. It is incompatible with DOSEMU. Using supplied S-Lang.])
      buggy_slang=yes
+     $srcdir/mkpluginhooks enable slang yes,
     AC_CHECK_LIB(slang, SLtt_get_terminfo,
                  LIBS="$LIBS -lslang -lm -ldl";LDFLAGS="$LDFLAGS $SLANGLIB",
                  [AC_MSG_WARN([No S-Lang library found. Using supplied S-Lang.])]
+                $srcdir/mkpluginhooks enable slang yes,
     -lm -ldl), -lm -ldl)
  )
  
***************
*** 354,369 ****
  AC_SUBST(DEBUGGER)
  
  dnl try to hook in available plug-ins
- if test -x ./mkpluginhooks; then
-   ./mkpluginhooks
-   if test -f ./plugin_libdirs; then
-     PLUGINSUBDIRS=`cat ./plugin_libdirs`
      AC_MSG_NOTICE(Including plugins: $PLUGINSUBDIRS...);
-     if test -f ./plugin_incdirs; then
        cd src
        for i in `cat ../plugin_incdirs`; do
-         for j in $i/*; do
-           ln -sf ../../$j plugin/include/`basename $j`
          done
        done
        cd ..
--- 341,356 ----
  AC_SUBST(DEBUGGER)
  
  dnl try to hook in available plug-ins
+ if test -x $srcdir/mkpluginhooks; then
+   TOP=$srcdir $srcdir/mkpluginhooks
+   if test -f plugin_libdirs; then
+     PLUGINSUBDIRS=`cat plugin_libdirs`
      AC_MSG_NOTICE(Including plugins: $PLUGINSUBDIRS...);
+     if test -f plugin_incdirs; then
        cd src
        for i in `cat ../plugin_incdirs`; do
+         for j in $srcdir/src/$i/*; do
+           ln -sf $j plugin/include/`basename $j`
          done
        done
        cd ..

[-- Attachment #3: configure.rej --]
[-- Type: text/x-diff, Size: 540 bytes --]

***************
*** 6591,6597 ****
  else
    { echo "$as_me:$LINENO: WARNING: No S-Lang library found. Using supplied S-Lang." >&5
  echo "$as_me: WARNING: No S-Lang library found. Using supplied S-Lang." >&2;}
-                ./mkpluginhooks enable slang yes
  fi
  
  fi
--- 6561,6567 ----
  else
    { echo "$as_me:$LINENO: WARNING: No S-Lang library found. Using supplied S-Lang." >&5
  echo "$as_me: WARNING: No S-Lang library found. Using supplied S-Lang." >&2;}
+                $srcdir/mkpluginhooks enable slang yes
  fi
  
  fi

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-06-02 21:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-10 18:26 Compilation problems on SuSE Linux 8.2 Bernhard Bialas
2003-05-28 12:23 ` Johan Gill
2003-06-02  9:55   ` Johan Gill
2003-06-02 16:22 ` Bart Oldeman
2003-06-02 21:10   ` Bernhard Bialas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox