xdr-build-ours-entirely-20020926
[openafs.git] / src / cf / osconf.m4
1
2 AC_DEFUN(OPENAFS_OSCONF, [
3
4 dnl defaults, override in case below as needed
5 DBG="-g"
6 OPTMZ="-O2"
7 XCFLAGS="-O2"
8 SHLIB_SUFFIX="so"
9 CC="cc"
10 MT_CC="cc"
11 XLIBS="${LIB_AFSDB}"
12
13 dnl standard programs
14 AC_PROG_RANLIB
15 AC_CHECK_PROGS(AS, as, [${am_missing_run}as])
16 AC_CHECK_PROGS(AR, ar, [${am_missing_run}ar])
17 AC_CHECK_PROGS(MV, mv, [${am_missing_run}mv])
18 AC_CHECK_PROGS(RM, rm, [${am_missing_run}rm])
19 AC_CHECK_PROGS(LD, ld, [${am_missing_run}ld])
20 AC_CHECK_PROGS(CP, cp, [${am_missing_run}cp])
21 AC_CHECK_PROGS(STRIP, strip, [${am_missing_run}strip])
22 AC_CHECK_PROGS(LORDER, lorder, [${am_missing_run}lorder])
23
24 case $AFS_SYSNAME in
25         alpha_dux40)
26                 LEX="lex"
27                 CSTATIC="-non_shared"
28                 DBG="-g3"
29                 LWP_OPTMZ="-O2"
30                 MT_CFLAGS='-D_REENTRANT=1 -pthread -DAFS_PTHREAD_ENV ${XCFLAGS}'
31                 MT_LIBS="-pthread -lpthread -lmach -lexc -lc"
32                 TXLIBS="-lcurses"
33                 XCFLAGS="-D_NO_PROTO -DOSF"
34                 SHLIB_LINKER="${CC} -all -shared -expect_unresolved \"*\""
35                 ;;
36
37         alpha_dux50)
38                 LEX="flex -l"
39                 DBG="-g3"
40                 CSTATIC="-non_shared"
41                 LWP_OPTMZ="-O2"
42                 MT_CFLAGS='-D_REENTRANT=1 -pthread -DAFS_PTHREAD_ENV ${XCFLAGS}'
43                 MT_LIBS="-pthread -lpthread -lmach -lexc -lc"
44                 TXLIBS="-lcurses"
45                 XCFLAGS="-D_NO_PROTO -DOSF"
46                 SHLIB_LINKER="${CC} -all -shared -expect_unresolved \"*\""
47                 ;;
48
49         alpha_linux_22)
50                 LEX="flex -l"
51                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
52                 MT_LIBS="-lpthread"
53                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
54                 SHLIB_LDFLAGS="-shared -Xlinker -x"
55                 TXLIBS="/usr/lib/libncurses.so"
56                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
57                 YACC="bison -y"
58                 SHLIB_LINKER="${MT_CC} -shared"
59                 ;;
60
61         alpha_linux_24)
62                 LEX="flex -l"
63                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
64                 MT_LIBS="-lpthread"
65                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
66                 SHLIB_LDFLAGS="-shared -Xlinker -x"
67                 TXLIBS="/usr/lib/libncurses.so"
68                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
69                 YACC="bison -y"
70                 SHLIB_LINKER="${MT_CC} -shared"
71                 ;;
72
73         hp_ux102)
74                 AS="/usr/ccs/bin/as"
75                 CC="/opt/ansic/bin/cc -Ae"
76                 DBM="/lib/libndbm.a"
77                 LD="/bin/ld"
78                 LEX="/opt/langtools/bin/lex"
79                 LWP_OPTMZ="-O"
80                 MT_CC="/opt/ansic/bin/cc -Ae"
81                 MT_CFLAGS='-D_POSIX_C_SOURCE=199506L -DAFS_PTHREAD_ENV ${XCFLAGS}'
82                 MT_LIBS="-L/opt/dce/lib -ldce"
83                 MV="/bin/mv"
84                 OPTMZ="-O"
85                 PAM_CFLAGS="+DA1.0 +z -Wl,+k"
86                 PAM_LIBS="/usr/lib/libpam.1"
87                 RANLIB="/usr/bin/ranlib"
88                 RM="/bin/rm"
89                 SHLIB_LDFLAGS="-b -Bsymbolic"
90                 SHLIB_SUFFIX="sl"
91                 TXLIBS="/usr/lib/libHcurses.a"
92                 VFSCK_CFLAGS="-D_FILE64"
93                 XCFLAGS0="-ldld -lc -Wp,-H200000 -Wl,-a,archive -DAUTH_DBM_LOG +z -Wl,+k -D_LARGEFILE64_SOURCE"
94                 XCFLAGS64="${XCFLAGS0} +DA2.0W"
95                 XCFLAGS="${XCFLAGS0} +DA1.0"
96                 YACC="/opt/langtools/bin/yacc"
97                 SHLIB_LINKER="ld -b"
98                 ;;
99
100         hp_ux110)
101                 AR="/usr/bin/ar"
102                 AS="/usr/ccs/bin/as"
103                 CC="/opt/ansic/bin/cc"
104                 DBM="/lib/libndbm.a"
105                 LD="/bin/ld   "
106                 LEX="/opt/langtools/bin/lex"
107                 LWP_OPTMZ="-O"
108                 MT_CC="$CC"
109                 MT_CFLAGS='-D_POSIX_C_SOURCE=199506L -DAFS_PTHREAD_ENV ${XCFLAGS}'
110                 MT_LIBS="-lpthread"
111                 MV="/bin/mv"
112                 OPTMZ="-O"
113                 PAM_CFLAGS="+DA1.0 +z -Wl,+k"
114                 PAM_LIBS="/usr/lib/libpam.1"
115                 RANLIB="/usr/bin/ranlib"
116                 RM="/bin/rm"
117                 SHLIB_LDFLAGS="-b -Bsymbolic"
118                 SHLIB_SUFFIX="sl"
119                 TXLIBS="/usr/lib/libHcurses.a"
120                 VFSCK_CFLAGS="-I/usr/old/usr/include -D_FILE64"
121                 XCFLAGS0="-ldld -lc -Wp,-H200000 -Wl,-a,archive -DAUTH_DBM_LOG +z -Wl,+k -D_LARGEFILE64_SOURCE"
122                 XCFLAGS64="${XCFLAGS0} +DA2.0W"
123                 XCFLAGS="${XCFLAGS0} +DA1.0"
124                 XLIBELFA="-lelf"
125                 #XLIBS="${LIB_AFSDB} -lnsl"
126                 XLIBS="${LIB_AFSDB}"
127                 YACC="/opt/langtools/bin/yacc"
128                 SHLIB_LINKER="ld -b"
129                 ;;
130
131         i386_fbsd_4*)
132                 LEX="flex -l"
133                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
134                 MT_LIBS="-pthread"
135                 #MT_CFLAGS='-DAFS_PTHREAD_ENV -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads ${XCFLAGS}'
136                 #MT_LIBS="-L/usr/local/lib -llthread -llgcc_r"
137                 PAM_CFLAGS="-O2 -pipe -fPIC"
138                 SHLIB_LDFLAGS="-shared -Xlinker -x"
139                 TXLIBS="/usr/lib/libncurses.so"
140                 XCFLAGS="-O2 -pipe"
141                 XLIBS="${LIB_AFSDB} -lcompat"
142                 YACC="byacc"
143                 ;;
144
145         *nbsd15|*nbsd16)
146                 LEX="flex -l"
147                 MT_CFLAGS='${XCFLAGS}'
148                 MT_LIBS=""
149                 PAM_CFLAGS="-O2 -pipe -fPIC"
150                 SHLIB_LDFLAGS="-shared -Xlinker -x"
151                 TXLIBS="/usr/lib/libcurses.so"
152                 XCFLAGS="-O2 -pipe"
153                 XLIBS="${LIB_AFSDB} -lcompat"
154                 YACC="bison -y"
155                 ;;
156
157         ia64_linux24)
158                 LEX="flex -l"
159                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
160                 MT_LIBS="-lpthread"
161                 PAM_CFLAGS="-g -O2 -Dlinux -DLINUX_PAM -fPIC"
162                 SHLIB_LDFLAGS="-shared -Xlinker -x"
163                 TXLIBS="/usr/lib/libncurses.so"
164                 XCFLAGS="-g -O2 -D_LARGEFILE64_SOURCE -G0"
165                 SHLIB_LINKER="${MT_CC} -shared"
166                 ;;
167
168         i386_linux22)
169                 CC="gcc -pipe"
170                 MT_CC="gcc -pipe"
171                 LEX="flex -l"
172                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
173                 MT_LIBS="-lpthread"
174                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
175                 SHLIB_LDFLAGS="-shared -Xlinker -x"
176                 TXLIBS="/usr/lib/libncurses.so"
177                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
178                 YACC="bison -y"
179                 SHLIB_LINKER="${MT_CC} -shared"
180                 ;;
181
182         i386_linux24)
183                 CC="gcc -pipe"
184                 MT_CC="gcc -pipe"
185                 LEX="flex -l"
186                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
187                 MT_LIBS="-lpthread"
188                 PAM_CFLAGS="-g -O2 -Dlinux -DLINUX_PAM -fPIC"
189                 SHLIB_LDFLAGS="-shared -Xlinker -x"
190                 TXLIBS="/usr/lib/libncurses.so"
191                 XCFLAGS="-g -O2 -D_LARGEFILE64_SOURCE"
192                 SHLIB_LINKER="${MT_CC} -shared"
193                 ;;
194
195         *_obsd*)
196                 LEX="flex -l"
197                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
198                 MT_LIBS="-pthread"
199                 PAM_CFLAGS="-O2 -pipe -fpic"
200                 SHLIB_CFLAGS="-fpic"
201                 SHLIB_LDFLAGS="-shared -Xlinker -x"
202                 TXLIBS="/usr/lib/libcurses.a"
203                 XCFLAGS="-O2"
204                 XLIBS="${LIB_AFSDB} -lcompat"
205                 YACC="yacc"
206                 ;;
207
208         parisc_linux24)
209                 LEX="flex -l"
210                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
211                 MT_LIBS="-lpthread"
212                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
213                 SHLIB_LDFLAGS="-shared -Xlinker -x"
214                 TXLIBS="/usr/lib/libncurses.so"
215                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
216                 YACC="bison -y"
217                 SHLIB_LINKER="${MT_CC} -shared"
218                 ;;
219
220         ppc_darwin_12)
221                 LEX="lex -l"
222                 LWP_OPTMZ="-g"
223                 OPTMZ="-g"
224                 REGEX_OBJ="regex.o"
225                 XCFLAGS="-traditional-cpp"
226                 ;;
227
228         ppc_darwin_13)
229                 LEX="lex -l"
230                 LWP_OPTMZ="-O2"
231                 REGEX_OBJ="regex.o"
232                 XCFLAGS="-no-cpp-precomp"
233                 ;;
234
235         ppc_darwin_14)
236                 LEX="lex -l"
237                 LWP_OPTMZ="-O2"
238                 REGEX_OBJ="regex.o"
239                 XCFLAGS="-no-cpp-precomp"
240                 ;;
241
242         ppc_darwin_60)
243                 LEX="lex -l"
244                 LWP_OPTMZ="-O2"
245                 REGEX_OBJ="regex.o"
246                 XCFLAGS="-no-cpp-precomp"
247                 TXLIBS="-lncurses"
248                 ;;
249
250         ppc_linux22)
251                 INSTALL="install"
252                 LEX="flex -l"
253                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
254                 MT_LIBS="-lpthread"
255                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
256                 SHLIB_LDFLAGS="-shared -Xlinker -x"
257                 TXLIBS="/usr/lib/libncurses.so"
258                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
259                 YACC="bison -y"
260                 SHLIB_LINKER="${MT_CC} -shared"
261                 ;;
262
263         ppc_linux24)
264                 LEX="flex -l"
265                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
266                 MT_LIBS="-lpthread"
267                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
268                 SHLIB_LDFLAGS="-shared -Xlinker -x"
269                 TXLIBS="/usr/lib/libncurses.so"
270                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
271                 YACC="bison -y"
272                 SHLIB_LINKER="${MT_CC} -shared"
273                 ;;
274
275         rs_aix42)
276                 DBG=""
277                 LEX="lex"
278                 LIBSYS_AIX_EXP="afsl.exp"
279                 LWP_OPTMZ="-O"
280                 MT_CC="xlc_r"
281                 MT_CFLAGS='-DAFS_PTHREAD_ENV ${XCFLAGS}'
282                 MT_LIBS="-lpthreads"
283                 OPTMZ="-O"
284                 SHLIB_SUFFIX="o"
285                 TXLIBS="-lcurses"
286                 XCFLAGS="-K -D_NO_PROTO -D_NONSTD_TYPES -D_MBI=void"
287                 XLIBS="${LIB_AFSDB} -ldl"
288                 SHLIB_LINKER="${MT_CC} -bM:SRE -berok"
289                 ;;
290
291         rs_aix51)
292                 DBG=""
293                 LEX="lex"
294                 LIBSYS_AIX_EXP="afsl.exp"
295                 LWP_OPTMZ="-O"
296                 MT_CC="xlc_r"
297                 MT_CFLAGS='-DAFS_PTHREAD_ENV ${XCFLAGS}'
298                 MT_LIBS="-lpthreads"
299                 OPTMZ="-O"
300                 SHLIB_SUFFIX="o"
301                 TXLIBS="-lcurses"
302                 XCFLAGS="-K -D_NO_PROTO -D_NONSTD_TYPES -D_MBI=void"
303                 XLIBS="${LIB_AFSDB} -ldl"
304                 ;;
305
306         s390_linux22)
307                 CC="gcc"
308                 LD="gcc"
309                 LEX="flex -l"
310                 MT_CC="$CC"
311                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
312                 MT_LIBS="-lpthread"
313                 OPTMZ="-O"
314                 PAM_CFLAGS="-O -Dlinux -DLINUX_PAM -fPIC"
315                 SHLIB_LDFLAGS="-shared -Xlinker -x"
316                 TXLIBS="/usr/lib/libncurses.so"
317                 XCFLAGS="-O -g -D_LARGEFILE64_SOURCE"
318                 YACC="bison -y"
319                 SHLIB_LINKER="${MT_CC} -shared"
320                 ;;
321
322         s390_linux24)
323                 CC="gcc"
324                 LD="gcc"
325                 LEX="flex -l"
326                 MT_CC="$CC"
327                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
328                 MT_LIBS="-lpthread"
329                 OPTMZ="-O"
330                 PAM_CFLAGS="-O -Dlinux -DLINUX_PAM -fPIC"
331                 SHLIB_LDFLAGS="-shared -Xlinker -x"
332                 TXLIBS="/usr/lib/libncurses.so"
333                 XCFLAGS="-O -g -D_LARGEFILE64_SOURCE"
334                 YACC="bison -y"
335                 SHLIB_LINKER="${MT_CC} -shared"
336                 ;;
337
338         sgi_62)
339                 FSINCLUDES="-I/usr/include/sys/fs"
340                 LEX="lex"
341                 LWP_OPTMZ="-O"
342                 MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}'
343                 MT_LIBS="-lpthread"
344                 OPTMZ="-O"
345                 TXLIBS="-lcurses"
346                 XCFLAGS64="-64 -mips3"
347                 XCFLAGS="-o32"
348                 XLDFLAGS64="-64"
349                 XLDFLAGS="-o32"
350                 SHLIB_LINKER="${CC} -shared"
351                 ;;
352
353         sgi_63)
354                 FSINCLUDES="-I/usr/include/sys/fs"
355                 LEX="lex"
356                 LWP_OPTMZ="-O"
357                 MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}'
358                 MT_LIBS="-lpthread"
359                 OPTMZ="-O"
360                 TXLIBS="-lcurses"
361                 XCFLAGS64="-D_BSD_COMPAT -64 -mips3"
362                 XCFLAGS="-D_OLD_TERMIOS -D_BSD_COMPAT -o32"
363                 XLDFLAGS64="-64"
364                 XLDFLAGS="-o32"
365                 SHLIB_LINKER="${CC} -shared"
366                 ;;
367
368         sgi_64)
369                 FSINCLUDES="-I/usr/include/sys/fs"
370                 LEX="lex"
371                 LWP_OPTMZ="-O"
372                 MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}'
373                 MT_LIBS="-lpthread"
374                 OPTMZ="-O"
375                 TXLIBS="-lcurses"
376                 XCFLAGS64="-D_BSD_COMPAT -64 -mips3"
377                 XCFLAGS="-D_OLD_TERMIOS -D_BSD_COMPAT -n32 -woff 1009,1110,1116,1164,1171,1177,1183,1185,1204,1233,1515,1516,1548,1169,1174,1177,1196,1498,1506,1552"
378                 XLDFLAGS64="-64"
379                 XLDFLAGS="-n32"
380                 SHLIB_LINKER="${CC} -shared"
381                 ;;
382
383         sgi_65)
384                 CC="/usr/bin/cc"
385                 FSINCLUDES="-I/usr/include/sys/fs"
386                 LD="/usr/bin/ld"
387                 LEX="lex"
388                 MT_CC="/usr/bin/cc"
389                 MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}'
390                 MT_LIBS="-lpthread"
391                 OPTMZ="-O"
392                 TXLIBS="-lcurses"
393                 XCFLAGS64="-64 -mips3"
394                 XCFLAGS="-n32 -mips3 -woff 1009,1110,1116,1164,1171,1177,1183,1185,1204,1233,1515,1516,1548,1169,1174,1177,1196,1498,1506,1552"
395                 XLDFLAGS64="-64 -mips3"
396                 XLDFLAGS="-n32 -mips3"
397                 SHLIB_LINKER="${CC} -shared"
398                 ;;
399
400         sparc64_linux22)
401                 LEX="flex -l"
402                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
403                 MT_LIBS="-lpthread"
404                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
405                 SHLIB_LDFLAGS="-shared -Xlinker -x"
406                 TXLIBS="/usr/lib/libncurses.so"
407                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
408                 YACC="bison -y"
409                 SHLIB_LINKER="${MT_CC} -shared"
410                 ;;
411
412         sparc64_linux24)
413                 LEX="flex -l"
414                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
415                 MT_LIBS="-lpthread"
416                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
417                 SHLIB_LDFLAGS="-shared -Xlinker -x"
418                 TXLIBS="/usr/lib/libncurses.so"
419                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
420                 YACC="bison -y"
421                 SHLIB_LINKER="${MT_CC} -shared"
422                 ;;
423
424         sparc_linux22)
425                 LEX="flex -l"
426                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
427                 MT_LIBS="-lpthread"
428                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
429                 SHLIB_LDFLAGS="-shared -Xlinker -x"
430                 TXLIBS="/usr/lib/libncurses.so"
431                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
432                 YACC="bison -y"
433                 SHLIB_LINKER="${MT_CC} -shared"
434                 ;;
435
436         sun4_413)
437                 CC="gcc"
438                 LEX="lex"
439                 LWP_OPTMZ="-O"
440                 OPTMZ="-O"
441                 SHLIB_CFLAGS="-PIC"
442                 TXLIBS="-lcurses -ltermcap"
443                 XCFLAGS=""
444                 XLIBELFA="-lelf"
445                 XLIBKVM="-lkvm"
446                 XLIBS="${LIB_AFSDB}"
447                 LD="ld"
448                 ;;
449
450         sun4x_55)
451                 CC="/opt/SUNWspro/bin/cc"
452                 LEX="lex"
453                 LWP_OPTMZ="-g"
454                 MT_CC="/opt/SUNWspro/bin/cc"
455                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
456                 MT_LIBS="-lpthread -lsocket"
457                 OPTMZ="-O"
458                 SHLIB_CFLAGS="-KPIC"
459                 TXLIBS="-lcurses"
460                 XCFLAGS="-dy -Bdynamic"
461                 XLIBELFA="-lelf"
462                 XLIBKVM="-lkvm"
463                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
464                 LD="/usr/ccs/bin/ld"
465                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
466                 ;;
467
468         sun4x_56)
469                 CC="/opt/SUNWspro/bin/cc"
470                 LEX="lex"
471                 LWP_OPTMZ="-g"
472                 MT_CC="/opt/SUNWspro/bin/cc"
473                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
474                 MT_LIBS="-lpthread -lsocket"
475                 OPTMZ="-O"
476                 PAM_CFLAGS="-KPIC"
477                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
478                 SHLIB_CFLAGS="-KPIC"
479                 SHLIB_LDFLAGS="-G -Bsymbolic"
480                 TXLIBS="-L/usr/ccs/lib -lcurses"
481                 XCFLAGS="-dy -Bdynamic"
482                 XLIBELFA="-lelf"
483                 LD="/usr/ccs/bin/ld"
484                 XLIBKVM="-lkvm"
485                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
486                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
487                 ;;
488
489         sun4x_57)
490                 CC="/opt/SUNWspro/bin/cc"
491                 LEX="lex"
492                 LD="/usr/ccs/bin/ld"
493                 LWP_OPTMZ="-g"
494                 MT_CC="/opt/SUNWspro/bin/cc"
495                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
496                 MT_LIBS="-lpthread -lsocket"
497                 OPTMZ="-O"
498                 PAM_CFLAGS="-KPIC"
499                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
500                 SHLIB_CFLAGS="-KPIC"
501                 SHLIB_LDFLAGS="-G -Bsymbolic"
502                 TXLIBS="-lcurses"
503                 XCFLAGS64='${XCFLAGS} -xarch=v9'
504                 XCFLAGS="-dy -Bdynamic"
505                 XLIBELFA="-lelf"
506                 XLIBKVM="-lkvm"
507                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
508                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
509                 ;;
510
511         sun4x_58)
512                 CC="/opt/SUNWspro/bin/cc"
513                 LEX="lex"
514                 LD="/usr/ccs/bin/ld"
515                 LWP_OPTMZ="-g"
516                 MT_CC="/opt/SUNWspro/bin/cc"
517                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
518                 MT_LIBS="-lpthread -lsocket"
519                 OPTMZ="-O"
520                 PAM_CFLAGS="-KPIC"
521                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
522                 SHLIB_CFLAGS="-KPIC"
523                 SHLIB_LDFLAGS="-G -Bsymbolic"
524                 TXLIBS="-lcurses"
525                 XCFLAGS64='${XCFLAGS} -xarch=v9'
526                 XCFLAGS="-dy -Bdynamic"
527                 XLIBELFA="-lelf"
528                 XLIBKVM="-lkvm"
529                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
530                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
531                 ;;
532
533         sun4x_59)
534                 CC="/opt/SUNWspro/bin/cc"
535                 LEX="lex"
536                 LWP_OPTMZ="-g"
537                 LD="/usr/ccs/bin/ld"
538                 MT_CC="/opt/SUNWspro/bin/cc"
539                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
540                 MT_LIBS="-lpthread -lsocket"
541                 OPTMZ="-O"
542                 PAM_CFLAGS="-KPIC"
543                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
544                 SHLIB_CFLAGS="-KPIC"
545                 SHLIB_LDFLAGS="-G -Bsymbolic"
546                 TXLIBS="-lcurses"
547                 XCFLAGS64='${XCFLAGS} -xarch=v9'
548                 XCFLAGS="-dy -Bdynamic"
549                 XLIBELFA="-lelf"
550                 XLIBKVM="-lkvm"
551                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
552                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
553                 ;;
554
555         sunx86_57)
556                 CC="/opt/SUNWspro/bin/cc"
557                 LEX="lex"
558                 LWP_OPTMZ="-g"
559                 LD="/usr/ccs/bin/ld"
560                 MT_CC="/opt/SUNWspro/bin/cc"
561                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
562                 MT_LIBS="-lpthread -lsocket"
563                 OPTMZ="-O"
564                 PAM_CFLAGS="-KPIC"
565                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
566                 SHLIB_CFLAGS="-KPIC"
567                 SHLIB_LDFLAGS="-G -Bsymbolic"
568                 TXLIBS="-lcurses"
569                 XCFLAGS64='${XCFLAGS} -xarch=v9'
570                 XCFLAGS="-dy -Bdynamic"
571                 XLIBELFA="-lelf"
572                 XLIBKVM="-lkvm"
573                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
574                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
575                 ;;
576
577
578         sunx86_58)
579                 CC="/opt/SUNWspro/bin/cc"
580                 LEX="lex"
581                 LWP_OPTMZ="-g"
582                 LD="/usr/ccs/bin/ld"
583                 MT_CC="/opt/SUNWspro/bin/cc"
584                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
585                 MT_LIBS="-lpthread -lsocket"
586                 OPTMZ="-O"
587                 PAM_CFLAGS="-KPIC"
588                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
589                 SHLIB_CFLAGS="-KPIC"
590                 SHLIB_LDFLAGS="-G -Bsymbolic"
591                 TXLIBS="-lcurses"
592                 XCFLAGS64='${XCFLAGS} -xarch=v9'
593                 XCFLAGS="-dy -Bdynamic"
594                 XLIBELFA="-lelf"
595                 XLIBKVM="-lkvm"
596                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
597                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
598                 ;;
599
600
601 esac
602
603 #
604 # Special build targets
605 #
606 case $AFS_SYSNAME in
607         sgi_6*)
608                 XFS_SIZE_CHECK="xfs_size_check"
609                 install_XFS_SIZE_CHECK='$(DESTDIR)${afssrvsbindir}/xfs_size_check'
610                 dest_XFS_SIZE_CHECK='$(DEST)/root.server/usr/afs/bin/xfs_size_check'
611         
612                 AC_SUBST(XFS_SIZE_CHECK)
613                 AC_SUBST(install_XFS_SIZE_CHECK)
614                 AC_SUBST(dest_XFS_SIZE_CHECK)
615         ;;
616         
617         sun4x_*|sunx86_*)
618                 FS_CONV_SOL26="fs_conv_sol26"
619                 install_FS_CONV_SOL26='$(DESTDIR)${afssrvsbindir}/fs_conv_sol26'
620                 dest_FS_CONV_SOL26='$(DEST)/root.server/usr/afs/bin/fs_conv_sol26'
621
622                 AC_SUBST(FS_CONV_SOL26)
623                 AC_SUBST(install_FS_CONV_SOL26)
624                 AC_SUBST(dest_FS_CONV_SOL26)
625         ;;
626
627         alpha_dux*)
628                 FS_CONV_OSF40D="fs_conv_dux40D"
629                 install_FS_CONV_OSF40D='$(DESTDIR)${afssrvsbindir}/fs_conv_dux40D'
630                 dest_FS_CONV_OSF40D='$(DEST)/root.server/usr/afs/bin/fs_conv_dux40D'
631
632                 AC_SUBST(FS_CONV_OSF40D)
633                 AC_SUBST(install_FS_CONV_OSF40D)
634                 AC_SUBST(dest_FS_CONV_OSF40D)
635         ;;
636 esac
637
638
639 AC_SUBST(AR)
640 AC_SUBST(AS)
641 AC_SUBST(CP)
642 AC_SUBST(DBG)
643 AC_SUBST(FSINCLUDES)
644 AC_SUBST(LD)
645 AC_SUBST(LEX)
646 AC_SUBST(LWP_OPTMZ)
647 AC_SUBST(MT_CC)
648 AC_SUBST(MT_CFLAGS)
649 AC_SUBST(MT_LIBS)
650 AC_SUBST(MV)
651 AC_SUBST(OPTMZ)
652 AC_SUBST(PAM_CFLAGS)
653 AC_SUBST(PAM_LIBS)
654 AC_SUBST(RANLIB)
655 AC_SUBST(REGEX_OBJ)
656 AC_SUBST(RM)
657 AC_SUBST(SHLIB_CFLAGS)
658 AC_SUBST(SHLIB_LDFLAGS)
659 AC_SUBST(SHLIB_LINKER)
660 AC_SUBST(SHLIB_SUFFIX)
661 AC_SUBST(TXLIBS)
662 AC_SUBST(VFSCK_CFLAGS)
663 AC_SUBST(XCFLAGS)
664 AC_SUBST(XCFLAGS64)
665 AC_SUBST(XLDFLAGS)
666 AC_SUBST(XLDFLAGS64)
667 AC_SUBST(XLIBELFA)
668 AC_SUBST(XLIBKVM)
669 AC_SUBST(XLIBS)
670 AC_SUBST(YACC)
671
672
673 ])