remove OSF1 support
This commit is contained in:
@@ -178,7 +178,6 @@ AB_MAKEFILES = \
|
||||
Makefile.aix \
|
||||
Makefile.hpux \
|
||||
Makefile.sunos \
|
||||
Makefile.osf1 \
|
||||
Makefile.linux \
|
||||
Makefile.freebsd \
|
||||
Makefile.netbsd \
|
||||
|
||||
@@ -101,7 +101,6 @@ static int write_os_params(
|
||||
static int write_aix_stuff(File makeFile, AbmfLibs libs);
|
||||
static int write_hpux_stuff(File makeFile, AbmfLibs libs);
|
||||
static int write_sunos_params(File makeFile, AbmfLibs libs);
|
||||
static int write_osf1_stuff(File makeFile, AbmfLibs libs);
|
||||
static int write_lnx_params(File makeFile, AbmfLibs libs);
|
||||
static int write_fbsd_params(File makeFile, AbmfLibs libs);
|
||||
static int write_nbsd_params(File makeFile, AbmfLibs libs);
|
||||
@@ -110,7 +109,6 @@ static int write_obsd_params(File makeFile, AbmfLibs libs);
|
||||
static int determine_aix_libs(AbmfLibs libs, ABObj project);
|
||||
static int determine_hpux_libs(AbmfLibs libs, ABObj project);
|
||||
static int determine_sunos_libs(AbmfLibs libs, ABObj project);
|
||||
static int determine_osf1_libs(AbmfLibs libs, ABObj project);
|
||||
static int determine_lnx_libs(AbmfLibs libs, ABObj project);
|
||||
static int determine_fbsd_libs(AbmfLibs libs, ABObj project);
|
||||
static int determine_nbsd_libs(AbmfLibs libs, ABObj project);
|
||||
@@ -226,9 +224,6 @@ determine_libs(AbmfLibs libs, ABObj project, AB_OS_TYPE osType)
|
||||
case AB_OS_SUNOS:
|
||||
return_value = determine_sunos_libs(libs, project);
|
||||
break;
|
||||
case AB_OS_OSF1:
|
||||
return_value = determine_osf1_libs(libs, project);
|
||||
break;
|
||||
case AB_OS_LNX:
|
||||
return_value = determine_lnx_libs(libs, project);
|
||||
break;
|
||||
@@ -270,12 +265,6 @@ determine_sunos_libs(AbmfLibs libs, ABObj project)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
determine_osf1_libs(AbmfLibs libs, ABObj project)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
determine_lnx_libs(AbmfLibs libs, ABObj project)
|
||||
{
|
||||
@@ -495,10 +484,6 @@ write_os_params(
|
||||
return_value = write_sunos_params(makeFile, libs);
|
||||
break;
|
||||
|
||||
case AB_OS_OSF1:
|
||||
return_value = write_osf1_stuff(makeFile, libs);
|
||||
break;
|
||||
|
||||
case AB_OS_LNX:
|
||||
return_value = write_lnx_params(makeFile, libs);
|
||||
break;
|
||||
@@ -657,50 +642,6 @@ write_sunos_params(File makeFile, AbmfLibs libs)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
write_osf1_stuff(File makeFile, AbmfLibs libs)
|
||||
{
|
||||
STRING osName = util_os_type_to_string(AB_OS_OSF1);
|
||||
|
||||
abio_printf(makeFile,
|
||||
"###########################################################################\n"
|
||||
"# These are the %s-dependent configuration parameters that must be\n"
|
||||
"# set in order for any application to build.\n"
|
||||
"###########################################################################\n",
|
||||
osName);
|
||||
|
||||
abio_puts(makeFile, "\n");
|
||||
abio_puts(makeFile,
|
||||
" RM = rm -f\n"
|
||||
" INCLUDES = -I/usr/dt/include -I/X11/include\n"
|
||||
"\n"
|
||||
" STD_DEFINES = -DDEC\n"
|
||||
" ANSI_DEFINES =\n"
|
||||
"\n"
|
||||
" CDEBUGFLAGS = -g\n"
|
||||
" COPTFLAGS = -O2\n"
|
||||
" SYS_LIBRARIES = -ldnet_stub -lm\n"
|
||||
" CDE_LIBPATH = /usr/dt/lib\n"
|
||||
" CDE_LDFLAGS = -L$(CDE_LIBPATH)\n"
|
||||
" ALLX_LIBPATH = /X11/lib\n"
|
||||
" ALLX_LDFLAGS = -L$(ALLX_LIBPATH)\n"
|
||||
" EXTRA_LOAD_FLAGS = -Wl,-rpath,$(CDE_LIBPATH):$(ALLX_LIBPATH)\n"
|
||||
);
|
||||
|
||||
write_local_libraries(makeFile, libs, AB_OS_OSF1);
|
||||
|
||||
abio_puts(makeFile,
|
||||
"\n"
|
||||
" CFLAGS = $(CDEBUGFLAGS) $(INCLUDES) $(STD_DEFINES)"
|
||||
" $(ANSI_DEFINES)\n"
|
||||
" LDLIBS = $(SYS_LIBRARIES)\n"
|
||||
" LDOPTIONS = $(CDE_LDFLAGS) $(ALLX_LDFLAGS) $(EXTRA_LOAD_FLAGS)\n"
|
||||
"\n"
|
||||
);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
write_lnx_params(File makeFile, AbmfLibs libs)
|
||||
{
|
||||
@@ -1219,7 +1160,7 @@ write_targets(
|
||||
"scour:\n"
|
||||
" $(RM) $(CLEAN_FILES) $(TARGETS.h.merged) $(TARGETS.c.merged) \\\n"
|
||||
" Makefile Makefile.aix Makefile.hpux Makefile.sunos \\\n"
|
||||
" Makefile.osf1 Makefile.linux \\\n"
|
||||
" Makefile.linux \\\n"
|
||||
" Makefile.freebsd Makefile.netbsd Makefile.openbsd\n"
|
||||
);
|
||||
|
||||
|
||||
@@ -279,13 +279,13 @@ printf_setval(GenCodeInfo genCodeInfo, ABObj obj, ...)
|
||||
{
|
||||
int return_value = 0;
|
||||
File codeFile = genCodeInfo->code_file;
|
||||
#if defined(__osf__) || defined(linux) || defined(CSRG_BASED)
|
||||
/* OSF/1 define va_list in <va_list.h> as structure of char ** and int
|
||||
#if defined(linux) || defined(CSRG_BASED)
|
||||
/* Define va_list in <va_list.h> as structure of char ** and int
|
||||
* Sun define va_list as void * */
|
||||
va_list paramList = { 0, 0 };
|
||||
#else
|
||||
va_list paramList = NULL;
|
||||
#endif /* __osf__ */
|
||||
#endif /* linux */
|
||||
STRING resName = NULL;
|
||||
void *resValue = NULL;
|
||||
STRING objCName = NULL;
|
||||
|
||||
@@ -225,7 +225,7 @@ extern "C" {
|
||||
#endif
|
||||
#if defined(__hpux) || (defined(sun) && OSMAJORVERSION >= 5 && OSMINORVERSION >= 4 && OSMINORVERSION <=10 )
|
||||
extern int putenv(const char *string);
|
||||
#elif !(defined(__osf__) || defined(__aix) || defined(__NetBSD__))
|
||||
#elif !(defined(__aix) || defined(__NetBSD__))
|
||||
extern int putenv(char *string);
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
@@ -250,7 +250,6 @@ util_get_os_type(void)
|
||||
int aixIndex = -1;
|
||||
int hpIndex = -1;
|
||||
int sunIndex = -1;
|
||||
int osf1Index = -1;
|
||||
int lnxIndex = -1;
|
||||
int fbsdIndex = -1;
|
||||
int nbsdIndex = -1;
|
||||
@@ -268,7 +267,6 @@ util_get_os_type(void)
|
||||
aixIndex = util_strcasestr(sysInfo.sysname, "aix");
|
||||
hpIndex = util_strcasestr(sysInfo.sysname, "hp");
|
||||
sunIndex = util_strcasestr(sysInfo.sysname, "sun");
|
||||
osf1Index = util_strcasestr(sysInfo.sysname, "osf1");
|
||||
lnxIndex = util_strcasestr(sysInfo.sysname, "linux");
|
||||
fbsdIndex = util_strcasestr(sysInfo.sysname, "freebsd");
|
||||
nbsdIndex = util_strcasestr(sysInfo.sysname, "netbsd");
|
||||
@@ -277,53 +275,47 @@ util_get_os_type(void)
|
||||
if (aixIndex < 0) aixIndex = INT_MAX;
|
||||
if (hpIndex < 0) hpIndex = INT_MAX;
|
||||
if (sunIndex < 0) sunIndex = INT_MAX;
|
||||
if (osf1Index < 0) osf1Index = INT_MAX;
|
||||
if (lnxIndex < 0) lnxIndex = INT_MAX;
|
||||
if (fbsdIndex < 0) fbsdIndex = INT_MAX;
|
||||
if (nbsdIndex < 0) nbsdIndex = INT_MAX;
|
||||
if (obsdIndex < 0) obsdIndex = INT_MAX;
|
||||
|
||||
#define IS_MATCH(a,b,c,d,e,f,g,h) \
|
||||
#define IS_MATCH(a,b,c,d,e,f,g) \
|
||||
(((a) < (b)) && ((a) < (c)) && ((a) < (d)) && ((a) < (e)) && ((a) < (f)) && \
|
||||
((a) < (g)) && ((a) < (h)))
|
||||
((a) < (g)))
|
||||
|
||||
if (IS_MATCH(aixIndex, hpIndex, sunIndex, osf1Index,
|
||||
lnxIndex, fbsdIndex, nbsdIndex, obsdIndex))
|
||||
if (IS_MATCH(aixIndex, hpIndex, sunIndex, lnxIndex, fbsdIndex, nbsdIndex,
|
||||
obsdIndex))
|
||||
{
|
||||
return AB_OS_AIX;
|
||||
}
|
||||
if (IS_MATCH(hpIndex, aixIndex, sunIndex, osf1Index,
|
||||
lnxIndex, fbsdIndex, nbsdIndex, obsdIndex))
|
||||
if (IS_MATCH(hpIndex, aixIndex, sunIndex, lnxIndex, fbsdIndex, nbsdIndex,
|
||||
obsdIndex))
|
||||
{
|
||||
return AB_OS_HPUX;
|
||||
}
|
||||
if (IS_MATCH(sunIndex, aixIndex, hpIndex, osf1Index,
|
||||
lnxIndex, fbsdIndex, nbsdIndex, obsdIndex))
|
||||
if (IS_MATCH(sunIndex, aixIndex, hpIndex, lnxIndex, fbsdIndex, nbsdIndex,
|
||||
obsdIndex))
|
||||
{
|
||||
return AB_OS_SUNOS;
|
||||
}
|
||||
if (IS_MATCH(osf1Index, aixIndex, hpIndex, sunIndex,
|
||||
lnxIndex, fbsdIndex, nbsdIndex, obsdIndex))
|
||||
{
|
||||
return AB_OS_OSF1;
|
||||
}
|
||||
if (IS_MATCH(lnxIndex, aixIndex, hpIndex, sunIndex, osf1Index,
|
||||
fbsdIndex, nbsdIndex, obsdIndex))
|
||||
if (IS_MATCH(lnxIndex, aixIndex, hpIndex, sunIndex, fbsdIndex, nbsdIndex,
|
||||
obsdIndex))
|
||||
{
|
||||
return AB_OS_LNX;
|
||||
}
|
||||
if (IS_MATCH(fbsdIndex, aixIndex, hpIndex, sunIndex, osf1Index,
|
||||
lnxIndex, nbsdIndex, obsdIndex))
|
||||
if (IS_MATCH(fbsdIndex, aixIndex, hpIndex, sunIndex, lnxIndex, nbsdIndex,
|
||||
obsdIndex))
|
||||
{
|
||||
return AB_OS_FBSD;
|
||||
}
|
||||
if (IS_MATCH(nbsdIndex, aixIndex, hpIndex, sunIndex, osf1Index,
|
||||
lnxIndex, fbsdIndex, obsdIndex))
|
||||
if (IS_MATCH(nbsdIndex, aixIndex, hpIndex, sunIndex, lnxIndex, fbsdIndex,
|
||||
obsdIndex))
|
||||
{
|
||||
return AB_OS_NBSD;
|
||||
}
|
||||
if (IS_MATCH(obsdIndex, aixIndex, hpIndex, sunIndex, osf1Index,
|
||||
lnxIndex, fbsdIndex, nbsdIndex))
|
||||
if (IS_MATCH(obsdIndex, aixIndex, hpIndex, sunIndex, lnxIndex, fbsdIndex,
|
||||
nbsdIndex))
|
||||
{
|
||||
return AB_OS_OBSD;
|
||||
}
|
||||
|
||||
@@ -81,7 +81,6 @@ typedef enum
|
||||
AB_OS_HPUX,
|
||||
AB_OS_AIX,
|
||||
AB_OS_SUNOS,
|
||||
AB_OS_OSF1,
|
||||
AB_OS_LNX,
|
||||
AB_OS_FBSD,
|
||||
AB_OS_NBSD,
|
||||
|
||||
@@ -854,7 +854,6 @@ util_os_type_to_ident(AB_OS_TYPE osType)
|
||||
case AB_OS_AIX: typeString = "aix"; break;
|
||||
case AB_OS_HPUX: typeString = "hpux"; break;
|
||||
case AB_OS_SUNOS: typeString = "sunos"; break;
|
||||
case AB_OS_OSF1: typeString = "osf1"; break;
|
||||
case AB_OS_LNX: typeString = "linux"; break;
|
||||
case AB_OS_FBSD: typeString = "freebsd"; break;
|
||||
case AB_OS_NBSD: typeString = "netbsd"; break;
|
||||
@@ -878,7 +877,6 @@ util_os_type_to_string(AB_OS_TYPE osType)
|
||||
case AB_OS_AIX: nameString = "AIX"; break;
|
||||
case AB_OS_HPUX: nameString = "HP-UX"; break;
|
||||
case AB_OS_SUNOS: nameString = "SunOS"; break;
|
||||
case AB_OS_OSF1: nameString = "OSF/1"; break;
|
||||
case AB_OS_LNX: nameString = "Linux"; break;
|
||||
case AB_OS_FBSD: nameString = "FreeBSD"; break;
|
||||
case AB_OS_NBSD: nameString = "NetBSD"; break;
|
||||
|
||||
Reference in New Issue
Block a user