1 # $NetBSD: defs.AIX.mk,v 1.11 2004/06/18 11:22:41 kristerw Exp $
3 # Variable definitions for the AIX operating system.
6 BASENAME?= /usr/bin/basename
9 CHOWN?= /usr/sbin/chown
10 CHGRP?= /usr/bin/chgrp
13 CPP?= ${LOCALBASE}/bin/cpp
17 DIRNAME?= /usr/bin/dirname
18 ECHO?= echo # Shell builtin
20 .if exists(${LOCALBASE}/bin/egrep)
21 EGREP?= ${LOCALBASE}/bin/egrep
23 EGREP?= /usr/bin/grep -E
26 FALSE?= false # Shell builtin
27 FETCH_CMD?= ${LOCALBASE}/bin/ftp
28 .if exists(${LOCALBASE}/bin/fgrep)
29 FGREP?= ${LOCALBASE}/bin/fgrep
31 FGREP?= /usr/bin/grep -F
33 FILE_CMD?= /usr/bin/file
35 GMAKE?= ${LOCALBASE}/bin/gmake
36 .if exists(${LOCALBASE}/bin/grep)
37 GREP?= ${LOCALBASE}/bin/grep
46 GUNZIP_CMD?= ${LOCALBASE}/bin/gunzip -f
47 GZCAT?= ${LOCALBASE}/bin/zcat
49 GZIP_CMD?= ${LOCALBASE}/bin/gzip -nf ${GZIP}
51 HOSTNAME_CMD?= /bin/hostname
53 #.if ${INSTALL} == "install"
54 INSTALL= ${LOCALBASE}/bin/install-sh
56 LDCONFIG?= /sbin/ldconfig
60 MAIL_CMD?= /usr/bin/mailx
62 MTREE?= ${LOCALBASE}/sbin/mtree
65 PATCH?= ${LOCALBASE}/bin/gpatch
66 .if exists(${LOCALBASE}/bin/pax)
67 PAX?= ${LOCALBASE}/bin/pax
71 PERL5?= ${LOCALBASE}/bin/perl
74 PWD_CMD?= /bin/pwd # needs to print physical path
77 # XXX: default from bsd.pkg.defaults.mk. Verify/corerct for this platform
78 # and remove this comment.
80 .if exists(${LOCALBASE}/bin/nbsed)
81 SED?= ${LOCALBASE}/bin/nbsed
87 SHLOCK= /usr/bin/shlock
89 # AIX strip fails too easily. Use a wrapper script instead
90 .if exists(${LOCALBASE}/bin/strip)
91 STRIP?= ${LOCALBASE}/bin/strip
95 .if exists(${LOCALBASE}/bin/tar)
96 TAR?= ${LOCALBASE}/bin/tar
101 TEST?= test # Shell builtin
102 TOUCH?= /usr/bin/touch
104 TRUE?= true # Shell builtin
105 TSORT?= /usr/bin/tsort
106 TYPE?= type # Shell builtin
108 XARGS?= /usr/bin/xargs
110 .if exists(/usr/sbin/user)
111 USERADD?= /usr/sbin/useradd
112 GROUPADD?= /usr/sbin/groupadd
114 USERADD?= ${LOCALBASE}/sbin/useradd
115 GROUPADD?= ${LOCALBASE}/sbin/groupadd
116 _USER_DEPENDS= user>=20000313:../../sysutils/user
117 DEPENDS+= ${USE_USERADD:D${_USER_DEPENDS}}
118 DEPENDS+= ${USE_GROUPADD:D${_USER_DEPENDS}}
121 CPP_PRECOMP_FLAGS?= # unset
123 EXPORT_SYMBOLS_LDFLAGS?=-Wl,-E # add symbols to the dynamic symbol table
124 MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type
125 NOLOGIN?= /sbin/nologin
126 PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
127 ROOT_CMD?= ${SU} - root -c
130 ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
131 ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
132 ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m`
134 # imake installs manpages in weird places
135 # these values from /usr/X11R6/lib/X11/config/NetBSD.cf
136 IMAKE_MAN_SOURCE_PATH= man/cat
138 IMAKE_LIBMAN_SUFFIX= 3
139 IMAKE_FILEMAN_SUFFIX= 5
140 IMAKE_MAN_DIR= ${IMAKE_MAN_SOURCE_PATH}1
141 IMAKE_LIBMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}3
142 IMAKE_FILEMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}5
143 IMAKE_MANNEWSUFFIX= 0
145 _DO_SHLIB_CHECKS= no # fixup PLIST for shared libs/run ldconfig
146 # doesn't work on AIX b/c no ldd.
147 _IMAKE_MAKE= ${MAKE} # program which gets invoked by imake
148 .if exists(/usr/include/netinet6)
149 _OPSYS_HAS_INET6= yes # IPv6 is standard
151 _OPSYS_HAS_INET6= no # IPv6 is not standard
153 _OPSYS_HAS_JAVA= no # Java is not standard
154 _OPSYS_HAS_MANZ= yes # MANZ controls gzipping of man pages
155 _OPSYS_HAS_OSSAUDIO= no # libossaudio is available
156 _OPSYS_PERL_REQD= # no base version of perl required
157 _OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads
158 _OPSYS_SHLIB_TYPE= aixlib # type of shared lib
159 _PATCH_CAN_BACKUP= yes # native patch(1) can make backups
160 _PATCH_BACKUP_ARG?= -b -V simple -z # switch to patch(1) for backup suffix
161 _PREFORMATTED_MAN_DIR= cat # directory where catman pages are
162 _USE_GNU_GETTEXT= no # Don't use GNU gettext
163 _USE_RPATH= yes # add rpath to LDFLAGS
165 # flags passed to the linker to extract all symbols from static archives.
167 _OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
168 _OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
170 # for programs which use dlopen()
171 # not necessary since 1.6 (shared libs are linked against libgcc_pic)
172 .if !empty(OS_VERSION:M1.5*)
173 LINK_ALL_LIBGCC_HACK= -Wl,--whole-archive -lgcc -Wl,--no-whole-archive
176 .if !defined(DEBUG_FLAGS)
177 _STRIPFLAG_CC?= -s # cc(1) option to strip
178 _STRIPFLAG_INSTALL?= -s # install(1) option to strip
181 DEFAULT_SERIAL_DEVICE?= /dev/tty0
182 SERIAL_DEVICES?= /dev/tty0 \
185 # check for maximum command line length and set it in configure's environment,
186 # to avoid a test required by the libtool script that takes forever.
187 # FIXME: Adjust to work on this system and enable the lines below.
188 #.if defined(GNU_CONFIGURE) && defined(USE_LIBTOOL)
189 #_OPSYS_MAX_CMDLEN!= /sbin/sysctl -n kern.argmax
190 #CONFIGURE_ENV+= lt_cv_sys_max_cmd_len=${_OPSYS_MAX_CMDLEN}
193 # If games are to be installed setgid, then SETGIDGAME is set to 'yes'
194 # (it defaults to 'no' as per bsd.pkg.defaults.mk).
195 # Set the group and mode to meaningful values in that case (defaults to
196 # BINOWN, BINGRP and BINMODE as per bsd.pkg.defaults.mk).
197 # FIXME: Adjust to work on this system and enable the lines below.
198 #.if !(empty(SETGIDGAME:M[yY][eE][sS]))