From 0f170fd30c19f25d1159e9e4b97d8eb9ef5b0f79 Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Sun, 4 Jan 2009 13:51:38 +0000 Subject: [PATCH] Compile for host as well --- Src/C64.h | 2 + Src/C64_SDL.i | 6 +- Src/Display.h | 2 +- Src/Display_SDL.i | 2 +- Src/Makefile | 136 +++++++++++++++++++++++++++++++ Src/Makefile.bak | 49 ++++++++++- Src/Prefs.cpp | 8 +- Src/Prefs.h | 2 +- Src/SID_SDL.i | 2 +- Src/sysconfig.h.Host-SDL | 170 +++++++++++++++++++++++++++++++++++++++ 10 files changed, 365 insertions(+), 14 deletions(-) create mode 100644 Src/Makefile create mode 100644 Src/sysconfig.h.Host-SDL diff --git a/Src/C64.h b/Src/C64.h index 0321e7a..05cb921 100644 --- a/Src/C64.h +++ b/Src/C64.h @@ -29,6 +29,8 @@ #ifdef GEKKO #define PREFS_PATH "/apps/frodo/frodorc" +#elif HAVE_SDL +#define PREFS_PATH "/home/ska/.frodorc" #endif // false: Frodo, true: FrodoSC diff --git a/Src/C64_SDL.i b/Src/C64_SDL.i index 73f59d5..da57f9d 100644 --- a/Src/C64_SDL.i +++ b/Src/C64_SDL.i @@ -13,8 +13,10 @@ #if defined(GEKKO) #include #define FONT_PATH "/apps/frodo/FreeMono.ttf" +#define MS_PER_FRAME 30 #else #define FONT_PATH "FreeMono.ttf" +#define MS_PER_FRAME 20 #endif static struct timeval tv_start; @@ -427,8 +429,8 @@ void C64::VBlank(bool draw_frame) static uint64_t lastFrame; uint32_t now = SDL_GetTicks(); - if ( (now - lastFrame) < 30 ) { - SDL_Delay( 30 - (now - lastFrame) ); + if ( (now - lastFrame) < MS_PER_FRAME ) { + SDL_Delay( MS_PER_FRAME - (now - lastFrame) ); } lastFrame = now; } diff --git a/Src/Display.h b/Src/Display.h index 30167a8..57c6f66 100644 --- a/Src/Display.h +++ b/Src/Display.h @@ -39,7 +39,7 @@ const int DISPLAY_X = 0x180; const int DISPLAY_Y = 0x110; #endif -#if defined(GEKKO) +#if defined(HAVE_SDL) const int FULL_DISPLAY_X = 640; const int FULL_DISPLAY_Y = 480; #endif diff --git a/Src/Display_SDL.i b/Src/Display_SDL.i index dec64f9..04a2ebc 100644 --- a/Src/Display_SDL.i +++ b/Src/Display_SDL.i @@ -84,7 +84,7 @@ int init_graphics(void) screen = SDL_CreateRGBSurface(SDL_SWSURFACE, DISPLAY_X, DISPLAY_Y + 17, 8, rmask, gmask, bmask, amask); real_screen = SDL_SetVideoMode(FULL_DISPLAY_X, FULL_DISPLAY_Y, 8, - SDL_DOUBLEBUF | SDL_FULLSCREEN); + SDL_DOUBLEBUF); return 1; } diff --git a/Src/Makefile b/Src/Makefile new file mode 100644 index 0000000..d979e79 --- /dev/null +++ b/Src/Makefile @@ -0,0 +1,136 @@ +# Makefile.in for Frodo (generic Unix/X11) +# Copyright (C) 1995-1997 Christian Bauer + +## Version information +VERSION = 4 +REVISION = 1 + + +CXX = g++ +LIBS = -L/usr/lib -lSDL -lSDL_ttf -lSDL_mixer -lSDL_image +CFLAGS = -O2 -g -fomit-frame-pointer -Wall -Wno-unused -Wno-format -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_SDL -fno-strength-reduce -DREGPARAM="__attribute__((regparm(3)))" -I./ -DFRODO_HPUX_REV=0 -DKBD_LANG=0 + +INSTALL = @INSTALL@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_DATA = @INSTALL_DATA@ +prefix = /usr/local +exec_prefix = ${prefix} +bindir = ${exec_prefix}/bin +libdir = ${exec_prefix}/lib +sysconfdir = ${prefix}/etc + +.SUFFIXES: .o .cpp .h + +## Files +OBJS = main.o Display.o Prefs.o SID.o REU.o IEC.o 1541fs.o \ + 1541d64.o 1541t64.o 1541job.o SAM.o menu.o CmdPipe.o char_to_kc.o +SLOBJS = $(OBJS) C64.o CPUC64.o VIC.o CIA.o CPU1541.o +PCOBJS = $(OBJS) C64_PC.o CPUC64_PC.o VIC.o CIA.o CPU1541_PC.o +PCFLAGS = -DPRECISE_CPU_CYCLES=1 -DPRECISE_CIA_CYCLES=1 -DPC_IS_POINTER=0 +SCOBJS = $(OBJS) C64_SC.o CPUC64_SC.o VIC_SC.o CIA_SC.o CPU1541_SC.o CPU_common.o +SCFLAGS = -DFRODO_SC +SRCS = main.cpp Display.cpp Prefs.cpp SID.cpp REU.cpp IEC.cpp 1541fs.cpp \ + 1541d64.cpp 1541t64.cpp 1541job.cpp SAM.cpp CmdPipe.cpp C64.cpp \ + C64_PC.cpp C64_SC.cpp CPUC64.cpp CPUC64_PC.cpp CPUC64_SC.cpp \ + VIC.cpp VIC_SC.cpp CIA.cpp CIA_SC.cpp CPU1541.cpp CPU1541_PC.cpp \ + CPU1541_SC.cpp CPU_common.cpp + +all: Frodo FrodoPC FrodoSC + +sysconfig.h: sysconfig.h.Host-SDL + cp $< $@ + +Frodo: sysconfig.h $(SLOBJS) + $(CXX) -o Frodo $(SLOBJS) $(LDFLAGS) $(LIBS) + cp Frodo .. + +FrodoPC: $(PCOBJS) + $(CXX) -o FrodoPC $(PCOBJS) $(LDFLAGS) $(LIBS) + cp FrodoPC .. + +FrodoSC: $(SCOBJS) + $(CXX) -o FrodoSC $(SCOBJS) $(LDFLAGS) $(LIBS) + cp FrodoSC .. + +clean: + rm -f $(SLOBJS) $(PCOBJS) $(SCOBJS) sysconfig.h + rm -f Frodo FrodoPC FrodoSC + +distclean: clean + rm -rf autom4te.cache + rm -f Makefile sysconfig.h + rm -f config.cache config.log config.status config.h + +depend dep: + makedepend $(CPPFLAGS) -Y. $(SRCS) 2>/dev/null + +.cpp.o: + $(CC) $(INCLUDES) $(CFLAGS) -o $@ -c $*.cpp + +.cpp.s: + $(CC) $(INCLUDES) $(CFLAGS) $(EXTRAFLAGS) -o $@ -S $*.cpp -g0 + +C64_PC.o: C64.cpp C64.h C64_SDL.i CmdPipe.h CPUC64.h CPU1541.h VIC.h SID.h CIA.h REU.h IEC.h 1541job.h Display.h Prefs.h + $(CC) $(INCLUDES) $(CFLAGS) $(PCFLAGS) -o $@ -c $*.cpp + +CPUC64_PC.o: CPUC64.cpp CPUC64.h CPU_emulline.i C64.h VIC.h SID.h CIA.h REU.h IEC.h Display.h Version.h + $(CC) $(INCLUDES) $(CFLAGS) $(PCFLAGS) -o $@ -c $*.cpp + +CPU1541_PC.o: CPU1541.cpp CPU1541.h CPU_emulline.i 1541job.h C64.h CIA.h Display.h + $(CC) $(INCLUDES) $(CFLAGS) $(PCFLAGS) -o $@ -c $*.cpp + +C64_SC.o: C64_SC.cpp C64.h C64_SDL.i CmdPipe.h CPUC64.h CPU1541.h VIC.h SID.h CIA.h REU.h IEC.h 1541job.h Display.h Prefs.h + $(CC) $(INCLUDES) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp + +CPUC64_SC.o: CPUC64_SC.cpp CPUC64.h CPU_emulcycle.i CPU_common.h C64.h VIC.h SID.h CIA.h REU.h IEC.h Display.h Version.h + $(CC) $(INCLUDES) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp + +CPU1541_SC.o: CPU1541_SC.cpp CPU1541.h CPU_emulcycle.i CPU_common.h 1541job.h C64.h CIA.h Display.h + $(CC) $(INCLUDES) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp + +VIC_SC.o: VIC_SC.cpp VIC.h C64.h CPUC64.h Display.h Prefs.h + $(CC) $(INCLUDES) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp + +CIA_SC.o: CIA_SC.cpp CIA.h CPUC64.h CPU1541.h VIC.h Prefs.h + $(CC) $(INCLUDES) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp + +#------------------------------------------------------------------------- +# DO NOT DELETE THIS LINE -- make depend depends on it. + +main.o: sysdeps.h sysconfig.h main.h C64.h Display.h Prefs.h SAM.h +Display.o: sysdeps.h sysconfig.h Display.h main.h Prefs.h Display_SDL.i +Prefs.o: sysdeps.h sysconfig.h Prefs.h Display.h C64.h main.h +SID.o: sysdeps.h sysconfig.h SID.h Prefs.h SID_SDL.i +REU.o: sysdeps.h sysconfig.h REU.h CPUC64.h C64.h Prefs.h +IEC.o: sysdeps.h sysconfig.h IEC.h 1541fs.h 1541d64.h 1541t64.h Prefs.h +IEC.o: Display.h +1541fs.o: sysdeps.h sysconfig.h 1541fs.h IEC.h main.h Prefs.h +1541d64.o: sysdeps.h sysconfig.h 1541d64.h IEC.h Prefs.h +1541t64.o: sysdeps.h sysconfig.h 1541t64.h IEC.h Prefs.h +1541job.o: sysdeps.h sysconfig.h 1541job.h CPU1541.h CIA.h Prefs.h C64.h +SAM.o: sysdeps.h sysconfig.h SAM.h C64.h CPUC64.h CPU1541.h CIA.h Prefs.h +SAM.o: VIC.h SID.h +CmdPipe.o: CmdPipe.h +C64.o: sysdeps.h sysconfig.h C64.h CPUC64.h CPU1541.h CIA.h Prefs.h VIC.h C64_SDL.i +C64.o: SID.h REU.h IEC.h 1541job.h Display.h +C64_PC.o: C64.cpp sysdeps.h sysconfig.h C64.h CPUC64.h CPU1541.h CIA.h +C64_PC.o: Prefs.h VIC.h SID.h REU.h IEC.h 1541job.h Display.h +C64_SC.o: C64.cpp sysdeps.h sysconfig.h C64.h CPUC64.h CPU1541.h CIA.h +C64_SC.o: Prefs.h VIC.h SID.h REU.h IEC.h 1541job.h Display.h +CPUC64.o: sysdeps.h sysconfig.h CPUC64.h C64.h VIC.h SID.h CIA.h Prefs.h +CPUC64.o: REU.h IEC.h Display.h Version.h CPU_emulline.i +CPUC64_PC.o: CPUC64.cpp sysdeps.h sysconfig.h CPUC64.h C64.h VIC.h SID.h +CPUC64_PC.o: CIA.h Prefs.h REU.h IEC.h Display.h Version.h CPU_emulline.i +CPUC64_SC.o: sysdeps.h sysconfig.h CPUC64.h C64.h CPU_common.h VIC.h SID.h +CPUC64_SC.o: CIA.h Prefs.h REU.h IEC.h Display.h Version.h CPU_emulcycle.i +VIC.o: sysdeps.h sysconfig.h VIC.h C64.h CPUC64.h Display.h Prefs.h +VIC_SC.o: sysdeps.h sysconfig.h VIC.h C64.h CPUC64.h Display.h Prefs.h +CIA.o: sysdeps.h sysconfig.h CIA.h Prefs.h CPUC64.h C64.h CPU1541.h VIC.h +CIA_SC.o: sysdeps.h sysconfig.h CIA.h Prefs.h CPUC64.h C64.h CPU1541.h VIC.h +CPU1541.o: sysdeps.h sysconfig.h CPU1541.h CIA.h Prefs.h C64.h 1541job.h +CPU1541.o: Display.h CPU_emulline.i +CPU1541_PC.o: CPU1541.cpp sysdeps.h sysconfig.h CPU1541.h CIA.h Prefs.h C64.h +CPU1541_PC.o: 1541job.h Display.h CPU_emulline.i +CPU1541_SC.o: sysdeps.h sysconfig.h CPU1541.h CIA.h Prefs.h C64.h +CPU1541_SC.o: CPU_common.h 1541job.h Display.h CPU_emulcycle.i +CPU_common.o: sysdeps.h sysconfig.h CPU_common.h diff --git a/Src/Makefile.bak b/Src/Makefile.bak index 00f2d8e..1660ec4 100644 --- a/Src/Makefile.bak +++ b/Src/Makefile.bak @@ -7,7 +7,7 @@ REVISION = 1 CXX = g++ -LIBS = -L/usr/lib -lSDL -lSDL_ttf +LIBS = -L/usr/lib -lSDL -lSDL_ttf -lSDL_mixer -lSDL_image CFLAGS = -O2 -g -fomit-frame-pointer -Wall -Wno-unused -Wno-format -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_SDL -fno-strength-reduce -DREGPARAM="__attribute__((regparm(3)))" -I./ -DFRODO_HPUX_REV=0 -DKBD_LANG=0 INSTALL = @INSTALL@ @@ -23,7 +23,7 @@ sysconfdir = ${prefix}/etc ## Files OBJS = main.o Display.o Prefs.o SID.o REU.o IEC.o 1541fs.o \ - 1541d64.o 1541t64.o 1541job.o SAM.o menu.o CmdPipe.o + 1541d64.o 1541t64.o 1541job.o SAM.o menu.o CmdPipe.o char_to_kc.o SLOBJS = $(OBJS) C64.o CPUC64.o VIC.o CIA.o CPU1541.o PCOBJS = $(OBJS) C64_PC.o CPUC64_PC.o VIC.o CIA.o CPU1541_PC.o PCFLAGS = -DPRECISE_CPU_CYCLES=1 -DPRECISE_CIA_CYCLES=1 -DPC_IS_POINTER=0 @@ -37,7 +37,10 @@ SRCS = main.cpp Display.cpp Prefs.cpp SID.cpp REU.cpp IEC.cpp 1541fs.cpp \ all: Frodo FrodoPC FrodoSC -Frodo: $(SLOBJS) +sysconfig.h: sysconfig.h.Host-SDL + cp $< $@ + +Frodo: sysconfig.h $(SLOBJS) $(CXX) -o Frodo $(SLOBJS) $(LDFLAGS) $(LIBS) cp Frodo .. @@ -50,7 +53,7 @@ FrodoSC: $(SCOBJS) cp FrodoSC .. clean: - rm -f $(SLOBJS) $(PCOBJS) $(SCOBJS) + rm -f $(SLOBJS) $(PCOBJS) $(SCOBJS) sysconfig.h rm -f Frodo FrodoPC FrodoSC distclean: clean @@ -93,3 +96,41 @@ CIA_SC.o: CIA_SC.cpp CIA.h CPUC64.h CPU1541.h VIC.h Prefs.h #------------------------------------------------------------------------- # DO NOT DELETE THIS LINE -- make depend depends on it. + +main.o: sysdeps.h sysconfig.h main.h C64.h Display.h Prefs.h SAM.h +Display.o: sysdeps.h sysconfig.h Display.h main.h Prefs.h +Prefs.o: sysdeps.h sysconfig.h Prefs.h Display.h C64.h main.h +SID.o: sysdeps.h sysconfig.h SID.h Prefs.h SID_SDL.i +REU.o: sysdeps.h sysconfig.h REU.h CPUC64.h C64.h Prefs.h +IEC.o: sysdeps.h sysconfig.h IEC.h 1541fs.h 1541d64.h 1541t64.h Prefs.h +IEC.o: Display.h +1541fs.o: sysdeps.h sysconfig.h 1541fs.h IEC.h main.h Prefs.h +1541d64.o: sysdeps.h sysconfig.h 1541d64.h IEC.h Prefs.h +1541t64.o: sysdeps.h sysconfig.h 1541t64.h IEC.h Prefs.h +1541job.o: sysdeps.h sysconfig.h 1541job.h CPU1541.h CIA.h Prefs.h C64.h +SAM.o: sysdeps.h sysconfig.h SAM.h C64.h CPUC64.h CPU1541.h CIA.h Prefs.h +SAM.o: VIC.h SID.h +CmdPipe.o: CmdPipe.h +C64.o: sysdeps.h sysconfig.h C64.h CPUC64.h CPU1541.h CIA.h Prefs.h VIC.h C64_SDL.i +C64.o: SID.h REU.h IEC.h 1541job.h Display.h +C64_PC.o: C64.cpp sysdeps.h sysconfig.h C64.h CPUC64.h CPU1541.h CIA.h +C64_PC.o: Prefs.h VIC.h SID.h REU.h IEC.h 1541job.h Display.h +C64_SC.o: C64.cpp sysdeps.h sysconfig.h C64.h CPUC64.h CPU1541.h CIA.h +C64_SC.o: Prefs.h VIC.h SID.h REU.h IEC.h 1541job.h Display.h +CPUC64.o: sysdeps.h sysconfig.h CPUC64.h C64.h VIC.h SID.h CIA.h Prefs.h +CPUC64.o: REU.h IEC.h Display.h Version.h CPU_emulline.i +CPUC64_PC.o: CPUC64.cpp sysdeps.h sysconfig.h CPUC64.h C64.h VIC.h SID.h +CPUC64_PC.o: CIA.h Prefs.h REU.h IEC.h Display.h Version.h CPU_emulline.i +CPUC64_SC.o: sysdeps.h sysconfig.h CPUC64.h C64.h CPU_common.h VIC.h SID.h +CPUC64_SC.o: CIA.h Prefs.h REU.h IEC.h Display.h Version.h CPU_emulcycle.i +VIC.o: sysdeps.h sysconfig.h VIC.h C64.h CPUC64.h Display.h Prefs.h +VIC_SC.o: sysdeps.h sysconfig.h VIC.h C64.h CPUC64.h Display.h Prefs.h +CIA.o: sysdeps.h sysconfig.h CIA.h Prefs.h CPUC64.h C64.h CPU1541.h VIC.h +CIA_SC.o: sysdeps.h sysconfig.h CIA.h Prefs.h CPUC64.h C64.h CPU1541.h VIC.h +CPU1541.o: sysdeps.h sysconfig.h CPU1541.h CIA.h Prefs.h C64.h 1541job.h +CPU1541.o: Display.h CPU_emulline.i +CPU1541_PC.o: CPU1541.cpp sysdeps.h sysconfig.h CPU1541.h CIA.h Prefs.h C64.h +CPU1541_PC.o: 1541job.h Display.h CPU_emulline.i +CPU1541_SC.o: sysdeps.h sysconfig.h CPU1541.h CIA.h Prefs.h C64.h +CPU1541_SC.o: CPU_common.h 1541job.h Display.h CPU_emulcycle.i +CPU_common.o: sysdeps.h sysconfig.h CPU_common.h diff --git a/Src/Prefs.cpp b/Src/Prefs.cpp index a1e089d..1665856 100644 --- a/Src/Prefs.cpp +++ b/Src/Prefs.cpp @@ -73,7 +73,7 @@ Prefs::Prefs() SystemKeys = true; ShowLEDs = true; -#ifdef GEKKO +#ifdef HAVE_SDL this->JoystickKeyBinding[0] = 0; this->JoystickKeyBinding[1] = 0; this->JoystickKeyBinding[2] = 0; @@ -136,7 +136,7 @@ bool Prefs::operator==(const Prefs &rhs) const && AlwaysCopy == rhs.AlwaysCopy && SystemKeys == rhs.SystemKeys && ShowLEDs == rhs.ShowLEDs -#ifdef GEKKO +#ifdef HAVE_SDL && this->JoystickKeyBinding[0] == rhs.JoystickKeyBinding[0] && this->JoystickKeyBinding[1] == rhs.JoystickKeyBinding[1] && this->JoystickKeyBinding[2] == rhs.JoystickKeyBinding[2] @@ -308,7 +308,7 @@ void Prefs::Load(char *filename) SystemKeys = !strcmp(value, "TRUE"); else if (!strcmp(keyword, "ShowLEDs")) ShowLEDs = !strcmp(value, "TRUE"); -#if defined(GEKKO) +#if defined(HAVE_SDL) else if (!strcmp(keyword, "JoystickKeyBinding0")) JoystickKeyBinding[0] = atoi(value); else if (!strcmp(keyword, "JoystickKeyBinding1")) @@ -418,7 +418,7 @@ bool Prefs::Save(char *filename) fprintf(file, "AlwaysCopy = %s\n", AlwaysCopy ? "TRUE" : "FALSE"); fprintf(file, "SystemKeys = %s\n", SystemKeys ? "TRUE" : "FALSE"); fprintf(file, "ShowLEDs = %s\n", ShowLEDs ? "TRUE" : "FALSE"); -#if defined(GEKKO) +#if defined(HAVE_SDL) fprintf(file, "JoystickKeyBinding0 = %d\n", JoystickKeyBinding[0]); fprintf(file, "JoystickKeyBinding1 = %d\n", JoystickKeyBinding[1]); fprintf(file, "JoystickKeyBinding2 = %d\n", JoystickKeyBinding[2]); diff --git a/Src/Prefs.h b/Src/Prefs.h index 48f4b10..9e3f497 100644 --- a/Src/Prefs.h +++ b/Src/Prefs.h @@ -115,7 +115,7 @@ private: static HWND hDlg; #endif -#ifdef GEKKO +#ifdef HAVE_SDL int JoystickKeyBinding[5]; int DisplayOption; #endif diff --git a/Src/SID_SDL.i b/Src/SID_SDL.i index 66a23de..12493de 100644 --- a/Src/SID_SDL.i +++ b/Src/SID_SDL.i @@ -73,7 +73,7 @@ void DigitalRenderer::init_sound(void) /* Set the audio format */ this->spec.freq = 44100; - this->spec.format = AUDIO_S16MSB; + this->spec.format = AUDIO_S16SYS; this->spec.channels = 2; /* 1 = mono, 2 = stereo */ this->spec.samples = 512; this->spec.callback = this->fill_audio_helper; diff --git a/Src/sysconfig.h.Host-SDL b/Src/sysconfig.h.Host-SDL new file mode 100644 index 0000000..81efe07 --- /dev/null +++ b/Src/sysconfig.h.Host-SDL @@ -0,0 +1,170 @@ +/* sysconfig.h. Generated automatically by configure. */ +/* sysconfig.h.in. Generated from configure.in by autoheader. */ + +/* Define if you have the header file, and it defines `DIR'. */ +#define HAVE_DIRENT_H 1 + +/* Define if you have the header file. */ +#define HAVE_FCNTL_H 1 + +/* Define if you have the `gettimeofday' function. */ +#define HAVE_GETTIMEOFDAY 1 + +/* Define if you have the header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define if you have the header file. */ +#define HAVE_LINUX_JOYSTICK_H 1 + +/* Define if you have the header file. */ +#define HAVE_MEMORY_H 1 + +/* Define if you have the `mkdir' function. */ +#define HAVE_MKDIR 1 + +/* Define if you have the header file. */ +#define HAVE_NCURSES_H 1 + +/* Define if you have the header file, and it defines `DIR'. */ +/* #undef HAVE_NDIR_H */ + +/* Define if you have the `rmdir' function. */ +#define HAVE_RMDIR 1 + +/* Define if you have the `select' function. */ +#define HAVE_SELECT 1 + +/* Define if you have the `sigaction' function. */ +#define HAVE_SIGACTION 1 + +/* Define if you have the `statfs' function. */ +#define HAVE_STATFS 1 + +/* Define if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define if you have the `strerror' function. */ +#define HAVE_STRERROR 1 + +/* Define if you have the header file. */ +#define HAVE_STRINGS_H 1 + +/* Define if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define if you have the `strstr' function. */ +#define HAVE_STRSTR 1 + +/* Define if `st_blocks' is member of `struct stat'. */ +#define HAVE_STRUCT_STAT_ST_BLOCKS 1 + +/* Define if your `struct stat' has `st_blocks'. Deprecated, use + `HAVE_STRUCT_STAT_ST_BLOCKS' instead. */ +#define HAVE_ST_BLOCKS 1 + +/* Define if you have the header file, and it defines `DIR'. */ +/* #undef HAVE_SYS_DIR_H */ + +/* Define if you have the header file. */ +#define HAVE_SYS_MOUNT_H 1 + +/* Define if you have the header file, and it defines `DIR'. */ +/* #undef HAVE_SYS_NDIR_H */ + +/* Define if you have the header file. */ +#define HAVE_SYS_PARAM_H 1 + +/* Define if you have the header file. */ +#define HAVE_SYS_SELECT_H 1 + +/* Define if you have the header file. */ +#define HAVE_SYS_STATFS_H 1 + +/* Define if you have the header file. */ +#define HAVE_SYS_STATVFS_H 1 + +/* Define if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define if you have the header file. */ +#define HAVE_SYS_TIME_H 1 + +/* Define if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define if you have the header file. */ +#define HAVE_SYS_VFS_H 1 + +/* Define if you have the header file. */ +#define HAVE_UNISTD_H 1 + +/* Define if you have the `usleep' function. */ +#define HAVE_USLEEP 1 + +/* Define if you have the header file. */ +#define HAVE_UTIME_H 1 + +/* Define if `utime(file, NULL)' sets file's timestamp to the present. */ +#define HAVE_UTIME_NULL 1 + +/* Define if you have the header file. */ +#define HAVE_VALUES_H 1 + +/* Define as the return type of signal handlers (`int' or `void'). */ +#define RETSIGTYPE void + +/* The size of a `char', as computed by sizeof. */ +#define SIZEOF_CHAR 1 + +/* The size of a `int', as computed by sizeof. */ +#define SIZEOF_INT 4 + +/* The size of a `long', as computed by sizeof. */ +#define SIZEOF_LONG 4 + +/* The size of a `long long', as computed by sizeof. */ +#define SIZEOF_LONG_LONG 8 + +/* The size of a `short', as computed by sizeof. */ +#define SIZEOF_SHORT 2 + +/* Define if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Define if you can safely include both and . */ +#define TIME_WITH_SYS_TIME 1 + +/* Define if your declares `struct tm'. */ +/* #undef TM_IN_SYS_TIME */ + +/* Define if the X Window System is missing or not being used. */ +/* #undef X_DISPLAY_MISSING */ + +/* Define if on AIX 3. + System headers sometimes define this. + We just want to avoid a redefinition error message. */ +#ifndef _ALL_SOURCE +/* # undef _ALL_SOURCE */ +#endif + +/* Define if you need to in order for stat and other things to work. */ +/* #undef _POSIX_SOURCE */ + +/* Define to empty if `const' does not conform to ANSI C. */ +/* #undef const */ + +/* Define as `__inline' if that's what the C compiler calls it, or to nothing + if it is not supported. */ +/* #undef inline */ + +/* Define to `int' if does not define. */ +/* #undef mode_t */ + +/* Define to `long' if does not define. */ +/* #undef off_t */ + +/* Define to `int' if does not define. */ +/* #undef pid_t */