From: etheisen Date: Sat, 16 Mar 1996 04:20:13 +0000 (+0000) Subject: Allow standard GNU build with openbsd. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=22bc7e6f2094f83d5b47472c4323b657468efd08;p=openbsd Allow standard GNU build with openbsd. --- diff --git a/gnu/lib/libg++/config.guess b/gnu/lib/libg++/config.guess index 2ff0eba28ac..985cae0ee93 100644 --- a/gnu/lib/libg++/config.guess +++ b/gnu/lib/libg++/config.guess @@ -65,6 +65,9 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in amiga:NetBSD:*:*) echo m68k-cbm-netbsd${UNAME_RELEASE} exit 0 ;; + amiga:OpenBSD:*:*) + echo m68k-cbm-openbsd${UNAME_RELEASE} + exit 0 ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit 0;; @@ -108,6 +111,15 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in mac68k:NetBSD:*:*) echo m68k-apple-netbsd${UNAME_RELEASE} exit 0 ;; + atari*:OpenBSD:*:*) + echo m68k-atari-openbsd${UNAME_RELEASE} + exit 0 ;; + sun3*:OpenBSD:*:*) + echo m68k-sun-openbsd${UNAME_RELEASE} + exit 0 ;; + mac68k:OpenBSD:*:*) + echo m68k-apple-openbsd${UNAME_RELEASE} + exit 0 ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit 0 ;; @@ -303,6 +315,9 @@ EOF hp3[0-9][05]:NetBSD:*:*) echo m68k-hp-netbsd${UNAME_RELEASE} exit 0 ;; + hp3[0-9][05]:OpenBSD:*:*) + echo m68k-hp-openbsd${UNAME_RELEASE} + exit 0 ;; i[34]86:BSD/386:*:* | *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit 0 ;; @@ -312,6 +327,9 @@ EOF *:NetBSD:*:*) echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` exit 0 ;; + *:OpenBSD:*:*) + echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + exit 0 ;; *:GNU:*:*) echo `echo ${UNAME_MACHINE}|sed -e 's,/.*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit 0 ;; diff --git a/gnu/lib/libg++/config.sub b/gnu/lib/libg++/config.sub index d731da06f7b..a1da2a9f0c2 100644 --- a/gnu/lib/libg++/config.sub +++ b/gnu/lib/libg++/config.sub @@ -461,6 +461,10 @@ case $basic_machine in basic_machine=i386-unknown # CYGNUS LOCAL os=-netbsd ;; + openbsd386) + basic_machine=i386-unknown # CYGNUS LOCAL + os=-openbsd + ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos @@ -809,7 +813,7 @@ case $os in | -amigados* | -msdos* | -moss* | -newsos* | -unicos* | -aos* \ | -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \ | -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \ - | -hiux* | -386bsd* | -netbsd* | -freebsd* | -riscix* | -lites* \ + | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* | -lites* \ | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta | -udi | -eabi*) ;; diff --git a/gnu/lib/libg++/configure.in b/gnu/lib/libg++/configure.in index 5f665354b67..3032d10cc2b 100644 --- a/gnu/lib/libg++/configure.in +++ b/gnu/lib/libg++/configure.in @@ -446,6 +446,9 @@ case "${target}" in m68k-*-netbsd*) noconfigdirs="$noconfigdirs gdb" ;; + m68k-*-openbsd*) + noconfigdirs="$noconfigdirs gdb" + ;; m68k-apollo-*) noconfigdirs="$noconfigdirs ld binutils gprof" ;; diff --git a/gnu/lib/libg++/etc/Makefile.in b/gnu/lib/libg++/etc/Makefile.in index 699ada6ae9a..add43804f7d 100644 --- a/gnu/lib/libg++/etc/Makefile.in +++ b/gnu/lib/libg++/etc/Makefile.in @@ -43,8 +43,8 @@ DVIFILES = configure.dvi standards.dvi cfg-paper.dvi all: -install: $(srcdir)/configure.man - $(INSTALL_DATA) $(srcdir)/configure.man $(man1dir)/configure.1 +install: $(srcdir)/configure.1 + $(INSTALL_DATA) $(srcdir)/configure.1 $(man1dir)/configure.1 uninstall: cd $(infodir) && rm -f configure.info* standards.info* cfg-paper.info* diff --git a/gnu/lib/libg++/etc/configure.1 b/gnu/lib/libg++/etc/configure.1 new file mode 100644 index 00000000000..0761854dc43 --- /dev/null +++ b/gnu/lib/libg++/etc/configure.1 @@ -0,0 +1,166 @@ +.\" -*- nroff -*- +.\" Copyright (c) 1991, 1992 Cygnus Support +.\" written by K. Richard Pixley +.TH configure 1 "2 February 1993" "cygnus support" "Cygnus Support" +.de BP +.sp +.ti \-.2i +\(** +.. + +.SH NAME +configure \(em\& prepare source code to be built + +.SH SYNOPSIS +configure HOST [--target=TARGET] [--srcdir=DIR] [--rm] + [--site=SITE] [--prefix=DIR] [--exec_prefix=DIR] + [--program_prefix=DIR] [--tmpdir=DIR] + [--with-PACKAGE[=YES/NO]] [--without-PACKAGE] + [--enable-FEATURE[=YES/NO]] [--disable-FEATURE] + [--norecursion] [--nfp] [-s] [-v] [-V | --version] [--help] + +.SH DESCRIPTION +.I configure +is a program used to prepare souce code to be built. It does this by +generating Makefiles and .gdbinit files, creating symlinks, recursing +in subdirectories, and some other miscellaneous file editing. + +.SH OPTIONS +.I configure +accepts the following options: + +.TP +.I \--target=TARGET +Requests that the sources be configured to target the +.I TARGET +machine. If no target is specified explicitly, the target is assumed +to be the same as the host. + +.TP +.I \--srcdir=DIR +tells configure to find the source in +.I DIR. +Object code is always built in the current directory, +.I `.'. + +.TP +.I \--rm +asks configure to remove a configuration rather than create one. + +.TP +.I \--site=SITE +asks configure to use any site-specific Makefile fragments for +.I SITE +when building Makefiles. + +.TP +.I \--prefix=DIR +sets the location in which to install files to +.I DIR. +The default is "/usr/local". + +.TP +.I \--exec_prefix=DIR +sets the root directory for host-dependent files to +.I DIR. +The default location is the value of +.I prefix. + +.TP +.I \--program_prefix=DIR +configures the source to install programs which have the same names as +common Unix programs, such as "make", in +.I DIR. +Also applies to programs which might be used for cross-compilation. + +.TP +.I \--tmpdir=DIR +sets the directory in which configure creates temporary files to +.I DIR. + +.TP +.I \--with-PACKAGE[=YES/NO] +sets a flag for the build to recognize that +.I PACKAGE +is explicitly present or not present. If +.I \=YES/NO +is nonexistent, the default is +.I YES. +.I \--without-PACKAGE +is equivalent to +.IR \--with-PACKAGE=no . + +.TP +.I \--enable-FEATURE[=YES/NO] +sets a flag for the build to recognize that +.I FEATURE +should be included or not included. If +.I \=YES/NO +is nonexistent, the default is +.I YES. +.I \--disable-FEATURE +is equivalent to +.IR --enable-FEATURE=no . + +.TP +.I \--norecursion +asks that only the current directory be configured. Normally +.I configure +recurs on subdirectories. + +.TP +.I \-nfp +Notifies +.I configure +that all of the specified hosts have +.I no floating point +units. + +.TP +.I \-s +used internally by configure to supress status messages on +subdirectory recursions. Override with +.I \-v + +.TP +.I \-v +verbose output. Asks that configure print status lines for each +directory configured. Normally, only the status lines for the current +directory are printed. + +.TP +.I \--version +.I \-V +prints +.I configure +version number. + +.TP +.I \-help +displays a brief usage summary. + + +.SH FILES +configure.in for each directory's individual needs +.br +Makefile.in Makefile template +.br +config.sub for parsing configuration names +.br +config.guess for guessing HOST when not specified +.br +config.status non-recursively rebuilds current directory + +.SH FILES +.ta \w'gmon.sum 'u +a.out the namelist and text space. +.br +gmon.out dynamic call graph and profile. +.br +gmon.sum summarized dynamic call graph and profile. + +.SH "SEE ALSO" +.RB "`\|" configure "\|'" +entry in +.B +info. diff --git a/gnu/lib/libg++/etc/configure.man b/gnu/lib/libg++/etc/configure.man deleted file mode 100644 index 0761854dc43..00000000000 --- a/gnu/lib/libg++/etc/configure.man +++ /dev/null @@ -1,166 +0,0 @@ -.\" -*- nroff -*- -.\" Copyright (c) 1991, 1992 Cygnus Support -.\" written by K. Richard Pixley -.TH configure 1 "2 February 1993" "cygnus support" "Cygnus Support" -.de BP -.sp -.ti \-.2i -\(** -.. - -.SH NAME -configure \(em\& prepare source code to be built - -.SH SYNOPSIS -configure HOST [--target=TARGET] [--srcdir=DIR] [--rm] - [--site=SITE] [--prefix=DIR] [--exec_prefix=DIR] - [--program_prefix=DIR] [--tmpdir=DIR] - [--with-PACKAGE[=YES/NO]] [--without-PACKAGE] - [--enable-FEATURE[=YES/NO]] [--disable-FEATURE] - [--norecursion] [--nfp] [-s] [-v] [-V | --version] [--help] - -.SH DESCRIPTION -.I configure -is a program used to prepare souce code to be built. It does this by -generating Makefiles and .gdbinit files, creating symlinks, recursing -in subdirectories, and some other miscellaneous file editing. - -.SH OPTIONS -.I configure -accepts the following options: - -.TP -.I \--target=TARGET -Requests that the sources be configured to target the -.I TARGET -machine. If no target is specified explicitly, the target is assumed -to be the same as the host. - -.TP -.I \--srcdir=DIR -tells configure to find the source in -.I DIR. -Object code is always built in the current directory, -.I `.'. - -.TP -.I \--rm -asks configure to remove a configuration rather than create one. - -.TP -.I \--site=SITE -asks configure to use any site-specific Makefile fragments for -.I SITE -when building Makefiles. - -.TP -.I \--prefix=DIR -sets the location in which to install files to -.I DIR. -The default is "/usr/local". - -.TP -.I \--exec_prefix=DIR -sets the root directory for host-dependent files to -.I DIR. -The default location is the value of -.I prefix. - -.TP -.I \--program_prefix=DIR -configures the source to install programs which have the same names as -common Unix programs, such as "make", in -.I DIR. -Also applies to programs which might be used for cross-compilation. - -.TP -.I \--tmpdir=DIR -sets the directory in which configure creates temporary files to -.I DIR. - -.TP -.I \--with-PACKAGE[=YES/NO] -sets a flag for the build to recognize that -.I PACKAGE -is explicitly present or not present. If -.I \=YES/NO -is nonexistent, the default is -.I YES. -.I \--without-PACKAGE -is equivalent to -.IR \--with-PACKAGE=no . - -.TP -.I \--enable-FEATURE[=YES/NO] -sets a flag for the build to recognize that -.I FEATURE -should be included or not included. If -.I \=YES/NO -is nonexistent, the default is -.I YES. -.I \--disable-FEATURE -is equivalent to -.IR --enable-FEATURE=no . - -.TP -.I \--norecursion -asks that only the current directory be configured. Normally -.I configure -recurs on subdirectories. - -.TP -.I \-nfp -Notifies -.I configure -that all of the specified hosts have -.I no floating point -units. - -.TP -.I \-s -used internally by configure to supress status messages on -subdirectory recursions. Override with -.I \-v - -.TP -.I \-v -verbose output. Asks that configure print status lines for each -directory configured. Normally, only the status lines for the current -directory are printed. - -.TP -.I \--version -.I \-V -prints -.I configure -version number. - -.TP -.I \-help -displays a brief usage summary. - - -.SH FILES -configure.in for each directory's individual needs -.br -Makefile.in Makefile template -.br -config.sub for parsing configuration names -.br -config.guess for guessing HOST when not specified -.br -config.status non-recursively rebuilds current directory - -.SH FILES -.ta \w'gmon.sum 'u -a.out the namelist and text space. -.br -gmon.out dynamic call graph and profile. -.br -gmon.sum summarized dynamic call graph and profile. - -.SH "SEE ALSO" -.RB "`\|" configure "\|'" -entry in -.B -info. diff --git a/gnu/lib/libg++/libg++/src/CursesW.h b/gnu/lib/libg++/libg++/src/CursesW.h index 5bff08df258..b2564699c46 100644 --- a/gnu/lib/libg++/libg++/src/CursesW.h +++ b/gnu/lib/libg++/libg++/src/CursesW.h @@ -25,7 +25,7 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include <_G_config.h> -#if defined(__bsdi__) || defined(__NetBSD__) || defined(__FreeBSD__) +#if defined(__bsdi__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) #define _begx begx #define _begy begy #define _maxx maxx