darwin-x86-and-leopard-20060309
[openafs.git] / src / cf / osconf.m4
1
2 AC_DEFUN([OPENAFS_OSCONF], [
3
4 dnl defaults, override in case below as needed
5 XCFLAGS='${DBG} ${OPTMZ}'
6 SHLIB_SUFFIX="so"
7 CC="cc"
8 CCOBJ="cc"
9 MT_CC="cc"
10 XLIBS="${LIB_AFSDB}"
11
12 dnl debugging and optimization flag defaults
13 dnl Note, these are all the defaults for if debug/optimize turned on, and
14 dnl the arch cases below do not override
15 KERN_DBG=-g
16 KERN_OPTMZ=-O
17 DBG=-g
18 OPTMZ=-O
19 LWP_DBG=-g
20 LWP_OPTMZ=-O
21
22 dnl standard programs
23 AC_PROG_RANLIB
24 AC_CHECK_PROGS(AS, as, [${am_missing_run}as])
25 AC_CHECK_PROGS(AR, ar, [${am_missing_run}ar])
26 AC_CHECK_PROGS(MV, mv, [${am_missing_run}mv])
27 AC_CHECK_PROGS(RM, rm, [${am_missing_run}rm])
28 AC_CHECK_PROGS(LD, ld, [${am_missing_run}ld])
29 AC_CHECK_PROGS(CP, cp, [${am_missing_run}cp])
30 AC_CHECK_PROGS(STRIP, strip, [${am_missing_run}strip])
31 AC_CHECK_PROGS(LORDER, lorder, [${am_missing_run}lorder])
32
33 dnl TODO - need to disable STRIP if we are doing debugging in any user space code
34
35 case $AFS_SYSNAME in
36         alpha_dux40)
37                 LEX="lex"
38                 CSTATIC="-non_shared"
39                 DBG="-g3"
40                 MT_CFLAGS='-D_REENTRANT=1 -pthread -DAFS_PTHREAD_ENV ${XCFLAGS}'
41                 MT_LIBS="-pthread -lpthread -lmach -lexc -lc"
42                 TXLIBS="-lcurses"
43                 XCFLAGS="-D_NO_PROTO -DOSF"
44                 SHLIB_LINKER="${CC} -all -shared -expect_unresolved \"*\""
45                 ;;
46
47         alpha_dux50)
48                 LEX="flex -l"
49                 DBG="-g3"
50                 CSTATIC="-non_shared"
51                 MT_CFLAGS='-D_REENTRANT=1 -pthread -DAFS_PTHREAD_ENV ${XCFLAGS}'
52                 MT_LIBS="-pthread -lpthread -lmach -lexc -lc"
53                 TXLIBS="-lcurses"
54                 XCFLAGS="-D_NO_PROTO -DOSF"
55                 SHLIB_LINKER="${CC} -all -shared -expect_unresolved \"*\""
56                 ;;
57
58         alpha_dux51)
59                 LEX="flex -l"
60                 DBG="-g3"
61                 CSTATIC="-non_shared"
62                 LWP_OPTMZ="-O2"
63                 MT_CFLAGS='-D_REENTRANT=1 -pthread -DAFS_PTHREAD_ENV ${XCFLAGS}'
64                 MT_LIBS="-pthread -lpthread -lmach -lexc -lc"
65                 TXLIBS="-lcurses"
66                 XCFLAGS="-D_NO_PROTO -DOSF"
67                 SHLIB_LINKER="${CC} -all -shared -expect_unresolved \"*\""
68                 ;;
69
70         alpha_linux_22)
71                 KERN_OPTMZ=-O2
72                 LEX="flex -l"
73                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
74                 MT_LIBS="-lpthread"
75                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
76                 SHLIB_CFLAGS="-fPIC"
77                 SHLIB_LDFLAGS="-shared -Xlinker -x"
78                 TXLIBS="-lncurses"
79                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
80                 YACC="bison -y"
81                 SHLIB_LINKER="${MT_CC} -shared"
82                 ;;
83
84         alpha_linux_24)
85                 CCOBJ="${CC} -fPIC"
86                 KERN_OPTMZ=-O2
87                 LEX="flex -l"
88                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
89                 MT_LIBS="-lpthread"
90                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
91                 SHLIB_CFLAGS="-fPIC"
92                 SHLIB_LDFLAGS="-shared -Xlinker -x"
93                 TXLIBS="-lncurses"
94                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
95                 YACC="bison -y"
96                 SHLIB_LINKER="${MT_CC} -shared"
97                 ;;
98
99         alpha_linux_26)
100                 CCOBJ="${CC} -fPIC"
101                 KERN_OPTMZ=-O2
102                 LEX="flex -l"
103                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
104                 MT_LIBS="-lpthread"
105                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
106                 SHLIB_CFLAGS="-fPIC"
107                 SHLIB_LDFLAGS="-shared -Xlinker -x"
108                 TXLIBS="-lncurses"
109                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
110                 YACC="bison -y"
111                 SHLIB_LINKER="${MT_CC} -shared"
112                 ;;
113
114         hp_ux102)
115                 AS="/usr/ccs/bin/as"
116                 CC="/opt/ansic/bin/cc -Ae"
117                 DBM="/lib/libndbm.a"
118                 LD="/bin/ld"
119                 LEX="/opt/langtools/bin/lex"
120                 LWP_OPTMZ="-O"
121                 MT_CC="/opt/ansic/bin/cc -Ae"
122                 MT_CFLAGS='-D_POSIX_C_SOURCE=199506L -DAFS_PTHREAD_ENV ${XCFLAGS}'
123                 MT_LIBS="-L/opt/dce/lib -ldce"
124                 MV="/bin/mv"
125                 OPTMZ="-O"
126                 PAM_CFLAGS="+DA1.0 +z -Wl,+k"
127                 PAM_LIBS="/usr/lib/libpam.1"
128                 RANLIB="/usr/bin/ranlib"
129                 RM="/bin/rm"
130                 SHLIB_LDFLAGS="-b -Bsymbolic"
131                 SHLIB_SUFFIX="sl"
132                 TXLIBS="/usr/lib/libHcurses.a"
133                 VFSCK_CFLAGS="-D_FILE64"
134                 XCFLAGS0="-ldld -lc -Wp,-H200000 -Wl,-a,archive -DAUTH_DBM_LOG +z -Wl,+k -D_LARGEFILE64_SOURCE"
135                 XCFLAGS64="${XCFLAGS0} +DA2.0W"
136                 XCFLAGS="${XCFLAGS0} +DA1.0"
137                 YACC="/opt/langtools/bin/yacc"
138                 SHLIB_LINKER="ld -b"
139                 ;;
140
141         hp_ux11*)
142                 AR="/usr/bin/ar"
143                 AS="/usr/ccs/bin/as"
144                 CC="/opt/ansic/bin/cc"
145                 CCOBJ="/opt/ansic/bin/cc"
146                 DBM="/lib/libndbm.a"
147                 LD="/bin/ld   "
148                 LEX="/opt/langtools/bin/lex"
149                 LWP_OPTMZ="-O"
150                 MT_CC="$CC"
151                 MT_CFLAGS='-D_POSIX_C_SOURCE=199506L -DAFS_PTHREAD_ENV ${XCFLAGS}'
152                 MT_LIBS="-lpthread"
153                 MV="/bin/mv"
154                 OPTMZ="-O"
155                 PAM_CFLAGS="+DA1.0 +z -Wl,+k"
156                 PAM_LIBS="/usr/lib/libpam.1"
157                 RANLIB="/usr/bin/ranlib"
158                 RM="/bin/rm"
159                 SHLIB_LDFLAGS="-b -Bsymbolic"
160                 SHLIB_SUFFIX="sl"
161                 TXLIBS="/usr/lib/libHcurses.a"
162                 VFSCK_CFLAGS="-I/usr/old/usr/include -D_FILE64"
163                 XCFLAGS0="-ldld -lc -Wp,-H200000 -Wl,-a,archive -DAUTH_DBM_LOG +z -Wl,+k -D_LARGEFILE64_SOURCE"
164                 XCFLAGS64="${XCFLAGS0} +DA2.0W"
165                 XCFLAGS="${XCFLAGS0} +DA1.0"
166                 XLIBELFA="-lelf"
167                 #XLIBS="${LIB_AFSDB} -lnsl"
168                 XLIBS="${LIB_AFSDB}"
169                 YACC="/opt/langtools/bin/yacc"
170                 SHLIB_LINKER="ld -b"
171                 ;;
172
173         ia64_hpux*)
174                 AR="/usr/bin/ar"
175                 AS="/usr/ccs/bin/as"
176                 CC="/opt/ansic/bin/cc"
177                 CCOBJ="/opt/ansic/bin/cc"
178                 DBM="/lib/hpux32/libndbm.so"
179                 LD="/bin/ld   "
180                 LEX="/opt/langtools/bin/lex"
181                 LWP_OPTMZ=""
182                 MT_CC="$CC"
183                 MT_CFLAGS='-D_POSIX_C_SOURCE=199506L -DAFS_PTHREAD_ENV ${XCFLAGS}'
184                 MT_LIBS="-lpthread"
185                 MV="/bin/mv"
186                 OPTMZ="-O"
187                 PAM_CFLAGS="-b +z -Wl,+k"
188                 PAM_LIBS="/usr/lib/hpux32/libpam.so"
189                 RANLIB="/usr/bin/ranlib"
190                 RM="/bin/rm"
191                 SHLIB_LDFLAGS="-b -Bsymbolic"
192                 SHLIB_SUFFIX="sl"
193                 TXLIBS="/usr/lib/hpux32/libcurses.so"
194                 VFSCK_CFLAGS="-I/usr/old/usr/include -D_FILE64"
195                 XCFLAGS0="-ldld -lc -Wp,-H200000 -Wl,-a,archive_shared -DAUTH_DBM_LOG +z -Wl,+k -D_LARGEFILE64_SOURCE"
196                 XCFLAGS64="${XCFLAGS0} +DD64"
197                 XCFLAGS="${XCFLAGS0}"
198                 XLIBELFA="-lelf"
199                 #XLIBS="${LIB_AFSDB} -lnsl"
200                 XLIBS="${LIB_AFSDB}"
201                 YACC="/opt/langtools/bin/yacc"
202                 SHLIB_LINKER="ld -b"
203                 ;;
204
205         *fbsd_*)
206                 LEX="flex -l"
207                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
208                 MT_LIBS="-pthread"
209                 PAM_CFLAGS="-O2 -pipe -fPIC"
210                 SHLIB_LDFLAGS="-shared -Xlinker -x"
211                 SHLIB_LINKER="${MT_CC} -shared"
212                 TXLIBS="-lncurses"
213                 XCFLAGS="-O2 -pipe"
214                 YACC="byacc"
215                 ;;
216
217         *nbsd2*|*nbsd3*)
218                 LEX="flex -l"
219                 MT_CFLAGS='${XCFLAGS} -DAFS_PTHREAD_ENV -D_REENTRANT '
220                 MT_LIBS="-lpthread" # XXX -pthread soon
221                 PAM_CFLAGS="-O2 -pipe -fPIC"
222                 SHLIB_LDFLAGS="-shared -Xlinker -x"
223                 SHLIB_LINKER="${MT_CC} -shared"
224                 TXLIBS="/usr/lib/libcurses.so"
225                 XCFLAGS="-O2 -pipe"
226                 YACC="yacc"
227                 ;;
228
229         *nbsd15|*nbsd16)
230                 LEX="flex -l"
231                 MT_CFLAGS='${XCFLAGS}'
232                 MT_LIBS=""
233                 PAM_CFLAGS="-O2 -pipe -fPIC"
234                 SHLIB_LDFLAGS="-shared -Xlinker -x"
235                 SHLIB_LINKER="${MT_CC} -shared"
236                 TXLIBS="/usr/lib/libcurses.so"
237                 XCFLAGS="-O2 -pipe"
238                 YACC="bison -y"
239                 ;;
240
241         ia64_linux24|ia64_linux26)
242                 KERN_OPTMZ=-O2
243                 LEX="flex -l"
244                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
245                 MT_LIBS="-lpthread"
246                 PAM_CFLAGS="-g -O2 -Dlinux -DLINUX_PAM -fPIC"
247                 SHLIB_CFLAGS="-fPIC"
248                 SHLIB_LDFLAGS="-shared -Xlinker -x"
249                 TXLIBS="-lncurses"
250                 XCFLAGS="-g -O2 -D_LARGEFILE64_SOURCE -G0"
251                 SHLIB_LINKER="${MT_CC} -shared"
252                 ;;
253
254         amd64_linux*)
255                 CCOBJ="${CC} -fPIC"
256                 KERN_OPTMZ=-O2
257                 LEX="flex -l"
258                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
259                 MT_LIBS="-lpthread"
260                 PAM_CFLAGS="-g -O2 -Dlinux -DLINUX_PAM -fPIC"
261                 SHLIB_CFLAGS="-fPIC"
262                 SHLIB_LDFLAGS="-shared -Xlinker -x"
263                 TXLIBS="-lncurses"
264                 XCFLAGS="-g -O2 -D_LARGEFILE64_SOURCE"
265                 SHLIB_LINKER="${MT_CC} -shared"
266                 ;;
267
268         ppc64_linux24)
269                 KERN_OPTMZ=-O2
270                 LEX="flex -l"
271                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
272                 MT_LIBS="-lpthread"
273                 PAM_CFLAGS="-g -O2 -Dlinux -DLINUX_PAM -fPIC"
274                 SHLIB_LDFLAGS="-shared -Xlinker -x"
275                 SHLIB_CFLAGS="-fPIC"
276                 TXLIBS="/usr/lib64/libncurses.so"
277                 XCFLAGS="-g -O2 -D_LARGEFILE64_SOURCE"
278                 SHLIB_LINKER="${MT_CC} -shared"
279                 ;;
280
281         ppc64_linux26)
282                 KERN_OPTMZ=-O2
283                 LEX="flex -l"
284                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
285                 MT_LIBS="-lpthread"
286                 PAM_CFLAGS="-g -O2 -Dlinux -DLINUX_PAM -fPIC"
287                 SHLIB_LDFLAGS="-shared -Xlinker -x"
288                 SHLIB_CFLAGS="-fPIC"
289                 TXLIBS="-lncurses"
290                 XCFLAGS="-g -O2 -D_LARGEFILE64_SOURCE -fPIC"
291                 YACC="bison -y"
292                 SHLIB_LINKER="${MT_CC} -shared"
293                 ;;
294
295         i386_umlinux22)
296                 CC="gcc -pipe"
297                 CCOBJ="gcc -pipe"
298                 MT_CC="gcc -pipe"
299                 KERN_OPTMZ=-O2
300                 LEX="flex -l"
301                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
302                 MT_LIBS="-lpthread"
303                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
304                 SHLIB_CFLAGS="-fPIC"
305                 SHLIB_LDFLAGS="-shared -Xlinker -x"
306                 TXLIBS="-lncurses"
307                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
308                 YACC="bison -y"
309                 SHLIB_LINKER="${MT_CC} -shared"
310                 ;;
311
312         i386_linux*)
313                 CC="gcc -pipe"
314                 CCOBJ="gcc -pipe"
315                 MT_CC="gcc -pipe"
316                 KERN_OPTMZ=-O2
317                 LEX="flex -l"
318                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
319                 MT_LIBS="-lpthread"
320                 DBG=-g
321                 KERN_DBG=-g
322                 LWP_DBG=-g
323                 LWP_OPTMZ=-O2
324                 OPTMZ=-O2
325                 PAM_CFLAGS="-g -O2 -Dlinux -DLINUX_PAM -fPIC"
326                 SHLIB_CFLAGS="-fPIC"
327                 SHLIB_LDFLAGS="-shared -Xlinker -x"
328                 TXLIBS="-lncurses"
329                 XCFLAGS="-g -O2 -D_LARGEFILE64_SOURCE"
330                 SHLIB_LINKER="${MT_CC} -shared"
331                 ;;
332
333         i386_umlinux24)
334                 CC="gcc -pipe"
335                 CCOBJ="gcc -pipe"
336                 MT_CC="gcc -pipe"
337                 KERN_OPTMZ=-O2
338                 LEX="flex -l"
339                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
340                 MT_LIBS="-lpthread"
341                 DBG=-g
342                 KERN_DBG=-g
343                 LWP_DBG=-g
344                 LWP_OPTMZ=-O2
345                 OPTMZ=-O2
346                 PAM_CFLAGS="-g -O2 -Dlinux -DLINUX_PAM -fPIC"
347                 SHLIB_CFLAGS="-fPIC"
348                 SHLIB_LDFLAGS="-shared -Xlinker -x"
349                 TXLIBS="-lncurses"
350                 XCFLAGS="-g -O2 -D_LARGEFILE64_SOURCE"
351                 SHLIB_LINKER="${MT_CC} -shared"
352                 ;;
353
354         i386_umlinux26)
355                 CC="gcc -pipe"
356                 CCOBJ="gcc -pipe"
357                 MT_CC="gcc -pipe"
358                 KERN_OPTMZ=-O2
359                 LEX="flex -l"
360                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
361                 MT_LIBS="-lpthread"
362                 DBG=-g
363                 KERN_DBG=-g
364                 LWP_DBG=-g
365                 LWP_OPTMZ=-O2
366                 OPTMZ=-O2
367                 PAM_CFLAGS="-g -O2 -Dlinux -DLINUX_PAM -fPIC"
368                 SHLIB_CFLAGS="-fPIC"
369                 SHLIB_LDFLAGS="-shared -Xlinker -x"
370                 TXLIBS="-lncurses"
371                 XCFLAGS="-g -O2 -D_LARGEFILE64_SOURCE"
372                 SHLIB_LINKER="${MT_CC} -shared"
373                 ;;
374
375         *_obsd*)
376                 KRB5CFLAGS="-I/usr/include/kerberosV"
377                 KRB5LIBS="-lkrb5 -lcrypto"
378                 LEX="flex -l"
379                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
380                 MT_LIBS="-pthread"
381                 PAM_CFLAGS="-O2 -pipe -fpic"
382                 SHLIB_CFLAGS="-fpic"
383                 SHLIB_LDFLAGS="-shared -Xlinker -x"
384                 SHLIB_LINKER="${MT_CC} -shared"
385                 TXLIBS="/usr/lib/libcurses.a"
386                 XCFLAGS="-O2"
387                 YACC="yacc"
388                 ;;
389
390         parisc_linux24)
391                 KERN_OPTMZ=-O2
392                 LEX="flex -l"
393                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
394                 MT_LIBS="-lpthread"
395                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
396                 SHLIB_CFLAGS="-fPIC"
397                 SHLIB_LDFLAGS="-shared -Xlinker -x"
398                 TXLIBS="-lncurses"
399                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
400                 YACC="bison -y"
401                 SHLIB_LINKER="${MT_CC} -shared"
402                 ;;
403
404         ppc_darwin_12)
405                 AFSD_LDFLAGS="-F/System/Library/PrivateFrameworks -framework DiskArbitration"
406                 LEX="lex -l"
407                 REGEX_OBJ="regex.o"
408                 XCFLAGS="-traditional-cpp"
409                 SHLIB_LINKER="${MT_CC} -dynamiclib"
410                 SHLIB_SUFFIX="dylib"
411                 ;;
412
413         ppc_darwin_13)
414                 AFSD_LDFLAGS="-F/System/Library/PrivateFrameworks -framework DiskArbitration"
415                 LEX="lex -l"
416                 LWP_OPTMZ="-O2"
417                 REGEX_OBJ="regex.o"
418                 XCFLAGS="-no-cpp-precomp"
419                 SHLIB_LINKER="${MT_CC} -dynamiclib"
420                 SHLIB_SUFFIX="dylib"
421                 ;;
422
423         ppc_darwin_14)
424                 AFSD_LDFLAGS="-F/System/Library/PrivateFrameworks -framework DiskArbitration"
425                 LEX="lex -l"
426                 LWP_OPTMZ="-O2"
427                 REGEX_OBJ="regex.o"
428                 XCFLAGS="-no-cpp-precomp"
429                 SHLIB_LINKER="${MT_CC} -dynamiclib"
430                 SHLIB_SUFFIX="dylib"
431                 ;;
432
433         ppc_darwin_60)
434                 AFSD_LDFLAGS="-F/System/Library/PrivateFrameworks -framework DiskArbitration"
435                 LEX="lex -l"
436                 LWP_OPTMZ="-O2"
437                 REGEX_OBJ="regex.o"
438                 XCFLAGS="-no-cpp-precomp"
439                 TXLIBS="-lncurses"
440                 SHLIB_LINKER="${MT_CC} -dynamiclib"
441                 SHLIB_SUFFIX="dylib"
442                 ;;
443
444         ppc_darwin_70)
445                 AFSD_LDFLAGS="-F/System/Library/PrivateFrameworks -framework DiskArbitration"
446                 LEX="lex -l"
447                 MT_CFLAGS='-DAFS_PTHREAD_ENV -D_REENTRANT ${XCFLAGS}'
448                 KROOT=
449                 KINCLUDES='-I$(KROOT)/System/Library/Frameworks/Kernel.framework/Headers'
450                 LWP_OPTMZ="-O2"
451                 REGEX_OBJ="regex.o"
452                 XCFLAGS="-no-cpp-precomp"
453                 TXLIBS="-lncurses"
454                 EXTRA_VLIBOBJS="fstab.o"
455                 SHLIB_LINKER="${MT_CC} -dynamiclib"
456                 SHLIB_SUFFIX="dylib"
457                 ;;
458
459         *_darwin_80)
460                 AFSD_LDFLAGS="-F/System/Library/PrivateFrameworks -framework DiskArbitration"
461                 LEX="lex -l"
462                 MT_CFLAGS='-DAFS_PTHREAD_ENV -D_REENTRANT ${XCFLAGS} ${ARCHFLAGS}'
463                 KROOT=
464                 KINCLUDES='-I$(KROOT)/System/Library/Frameworks/Kernel.framework/Headers'
465                 KERN_OPTMZ="-Os"
466                 LWP_OPTMZ="-Os"
467                 OPTMZ="-Os"
468                 REGEX_OBJ="regex.o"
469                 TXLIBS="-lncurses"
470                 EXTRA_VLIBOBJS="fstab.o"
471                 SHLIB_LINKER="${MT_CC} -dynamiclib"
472                 SHLIB_SUFFIX="dylib"
473                 ;;
474
475         *_darwin_90)
476                 AFSD_LDFLAGS="-F/System/Library/PrivateFrameworks -framework DiskArbitration"
477                 LEX="lex -l"
478                 MT_CFLAGS='-DAFS_PTHREAD_ENV -D_REENTRANT ${XCFLAGS} ${ARCHFLAGS}'
479                 KROOT=
480                 KINCLUDES='-I$(KROOT)/System/Library/Frameworks/Kernel.framework/Headers'
481                 LD="cc"
482                 KERN_OPTMZ="-Os"
483                 LWP_OPTMZ="-Os"
484                 OPTMZ="-Os"
485                 REGEX_OBJ="regex.o"
486                 TXLIBS="-lncurses"
487                 EXTRA_VLIBOBJS="fstab.o"
488                 SHLIB_LINKER="${MT_CC} -dynamiclib"
489                 SHLIB_SUFFIX="dylib"
490                 ;;
491
492         ppc_linux*)
493                 KERN_OPTMZ=-O2
494                 LEX="flex -l"
495                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
496                 MT_LIBS="-lpthread"
497                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
498                 SHLIB_CFLAGS="-fPIC"
499                 SHLIB_LDFLAGS="-shared -Xlinker -x"
500                 TXLIBS="-lncurses"
501                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
502                 YACC="bison -y"
503                 SHLIB_LINKER="${MT_CC} -shared"
504                 ;;
505
506         rs_aix42)
507                 DBG=""
508                 LEX="lex"
509                 LIBSYS_AIX_EXP="afsl.exp"
510                 MT_CC="xlc_r"
511                 MT_CFLAGS='-DAFS_PTHREAD_ENV ${XCFLAGS}'
512                 MT_LIBS="-lpthreads"
513                 SHLIB_SUFFIX="o"
514                 TXLIBS="-lcurses"
515                 XCFLAGS="-K -D_NONSTD_TYPES -D_MBI=void"
516                 XLIBS="${LIB_AFSDB} -ldl"
517                 SHLIB_LINKER="${MT_CC} -bM:SRE -berok"
518                 AIX64="#"
519                 ;;
520
521
522         rs_aix51)
523                 DBG=""
524                 LEX="lex"
525                 LIBSYS_AIX_EXP="afsl.exp"
526                 MT_CC="xlc_r"
527                 MT_CFLAGS='-DAFS_PTHREAD_ENV ${XCFLAGS}'
528                 MT_LIBS="-lpthreads"
529                 SHLIB_SUFFIX="o"
530                 TXLIBS="-lcurses"
531                 XCFLAGS="-K -D_NONSTD_TYPES -D_MBI=void"
532                 XLIBS="${LIB_AFSDB} -ldl"
533                 SHLIB_LINKER="${MT_CC} -bM:SRE -berok"
534                 AIX64=""
535                 ;;
536
537         rs_aix52)       
538                 DBG=""
539                 LEX="lex"
540                 LIBSYS_AIX_EXP="afsl.exp"
541                 MT_CC="xlc_r"
542                 MT_CFLAGS='-DAFS_PTHREAD_ENV ${XCFLAGS}'
543                 MT_LIBS="-lpthreads"
544                 SHLIB_SUFFIX="o"
545                 TXLIBS="-lcurses"
546                 XCFLAGS="-K -D_NONSTD_TYPES -D_MBI=void"
547                 XLIBS="${LIB_AFSDB} -ldl"
548                 SHLIB_LINKER="${MT_CC} -bM:SRE -berok"
549                 AIX64=""
550                 ;;
551
552         rs_aix53)       
553                 DBG="-g"
554                 LEX="lex"
555                 LIBSYS_AIX_EXP="afsl.exp"
556                 MT_CC="xlc_r"
557                 MT_CFLAGS='-DAFS_PTHREAD_ENV ${XCFLAGS}'
558                 MT_LIBS="-lpthreads"
559                 SHLIB_SUFFIX="o"
560                 TXLIBS="-lcurses"
561                 XCFLAGS="-K -D_NONSTD_TYPES -D_MBI=void"
562                 XLIBS="${LIB_AFSDB} -ldl"
563                 SHLIB_LINKER="${MT_CC} -bM:SRE -berok"
564                 AIX64=""
565                 ;;
566
567         s390_linux22)
568                 CC="gcc"
569                 CCOBJ="gcc"
570                 LD="ld"
571                 KERN_OPTMZ=-O2
572                 LEX="flex -l"
573                 MT_CC="$CC"
574                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
575                 MT_LIBS="-lpthread"
576                 PAM_CFLAGS="-O -Dlinux -DLINUX_PAM -fPIC"
577                 SHLIB_CFLAGS="-fPIC"
578                 SHLIB_LDFLAGS="-shared -Xlinker -x"
579                 TXLIBS="-lncurses"
580                 XCFLAGS="-O -g -D_LARGEFILE64_SOURCE"
581                 YACC="bison -y"
582                 SHLIB_LINKER="${MT_CC} -shared"
583                 ;;
584
585         s390_linux24|s390_linux26)
586                 CC="gcc"
587                 CCOBJ="gcc"
588                 LD="ld"
589                 KERN_OPTMZ=-O2
590                 LEX="flex -l"
591                 MT_CC="$CC"
592                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
593                 MT_LIBS="-lpthread"
594                 PAM_CFLAGS="-O -Dlinux -DLINUX_PAM -fPIC"
595                 SHLIB_CFLAGS="-fPIC"
596                 SHLIB_LDFLAGS="-shared -Xlinker -x"
597                 TXLIBS="-lncurses"
598                 XCFLAGS="-O -g -D_LARGEFILE64_SOURCE"
599                 YACC="bison -y"
600                 SHLIB_LINKER="${MT_CC} -shared"
601                 ;;
602
603         s390x_linux24|s390x_linux26)
604                 CC="gcc"
605                 CCOBJ="gcc -fPIC"
606                 LD="ld"
607                 KERN_OPTMZ=-O2
608                 LEX="flex -l"
609                 MT_CC="$CC"
610                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
611                 MT_LIBS="-lpthread"
612                 PAM_CFLAGS="-O -Dlinux -DLINUX_PAM -fPIC"
613                 SHLIB_CFLAGS="-fPIC"
614                 SHLIB_LDFLAGS="-shared -Xlinker -x -Xlinker -Bsymbolic"
615                 TXLIBS="-lncurses"
616                 XCFLAGS="-O -g -D_LARGEFILE64_SOURCE -D__s390x__"
617                 YACC="bison -y"
618                 SHLIB_LINKER="${MT_CC} -shared"
619                 ;;
620
621         sgi_62)
622                 PINSTALL_LIBS=-lmld
623                 AFSD_LIBS="/usr/lib/libdwarf.a /usr/lib/libelf.a"
624                 FSINCLUDES="-I/usr/include/sys/fs"
625                 LEX="lex"
626                 MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}'
627                 MT_LIBS="-lpthread"
628                 TXLIBS="-lcurses"
629                 XCFLAGS64="-64 -mips3"
630                 XCFLAGS="-o32"
631                 XLDFLAGS64="-64"
632                 XLDFLAGS="-o32"
633                 SHLIB_LINKER="${CC} -shared"
634                 ;;
635
636         sgi_63)
637                 PINSTALL_LIBS=-lmld
638                 AFSD_LIBS="/usr/lib/libdwarf.a /usr/lib/libelf.a"
639                 FSINCLUDES="-I/usr/include/sys/fs"
640                 LEX="lex"
641                 MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}'
642                 MT_LIBS="-lpthread"
643                 TXLIBS="-lcurses"
644                 XCFLAGS64="-D_BSD_COMPAT -64 -mips3"
645                 XCFLAGS="-D_OLD_TERMIOS -D_BSD_COMPAT -o32"
646                 XLDFLAGS64="-64"
647                 XLDFLAGS="-o32"
648                 SHLIB_LINKER="${CC} -shared"
649                 ;;
650
651         sgi_64)
652                 AFSD_LIBS="/usr/lib32/libdwarf.a /usr/lib32/libelf.a"
653                 FSINCLUDES="-I/usr/include/sys/fs"
654                 LEX="lex"
655                 MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}'
656                 MT_LIBS="-lpthread"
657                 TXLIBS="-lcurses"
658                 XCFLAGS64="-D_BSD_COMPAT -64 -mips3"
659                 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"
660                 XLDFLAGS64="-64"
661                 XLDFLAGS="-n32"
662                 SHLIB_LINKER="${CC} -shared"
663                 ;;
664
665         sgi_65)
666                 AFSD_LIBS="/usr/lib32/libdwarf.a /usr/lib32/libelf.a"
667                 CC="/usr/bin/cc"
668                 CCOBJ="/usr/bin/cc"
669                 FSINCLUDES="-I/usr/include/sys/fs"
670                 LD="/usr/bin/ld"
671                 LEX="lex"
672                 MT_CC="/usr/bin/cc"
673                 MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}'
674                 MT_LIBS="-lpthread"
675                 TXLIBS="-lcurses"
676                 XCFLAGS64="-64 -mips3"
677                 XCFLAGS="-n32 -mips3 -woff 1009,1110,1116,1164,1171,1177,1183,1185,1204,1233,1515,1516,1548,1169,1174,1177,1196,1498,1506,1552"
678                 XLDFLAGS64="-64 -mips3"
679                 XLDFLAGS="-n32 -mips3"
680                 SHLIB_LINKER="${CC} -shared"
681                 ;;
682
683         sparc64_linux*)
684                 KERN_OPTMZ=-O2
685                 LEX="flex -l"
686                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
687                 MT_LIBS="-lpthread"
688                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
689                 SHLIB_CFLAGS="-fPIC"
690                 SHLIB_LDFLAGS="-shared -Xlinker -x"
691                 TXLIBS="-lncurses"
692                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
693                 XCFLAGS64="-O2 -D_LARGEFILE64_SOURCE -m64"
694                 XLDFLAGS64="-m64"
695                 YACC="bison -y"
696                 SHLIB_LINKER="${MT_CC} -shared"
697                 ;;
698
699         sparc_linux22)
700                 KERN_OPTMZ=-O2
701                 LEX="flex -l"
702                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
703                 MT_LIBS="-lpthread"
704                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
705                 SHLIB_LDFLAGS="-shared -Xlinker -x"
706                 TXLIBS="-lncurses"
707                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
708                 YACC="bison -y"
709                 SHLIB_LINKER="${MT_CC} -shared"
710                 ;;
711
712         sun4_413)
713                 CCXPG2="/usr/xpg2bin/cc"
714                 CC="gcc"
715                 CCOBJ="gcc"
716                 LEX="lex"
717                 SHLIB_CFLAGS="-PIC"
718                 TXLIBS="-lcurses -ltermcap"
719                 XCFLAGS=""
720                 XLIBELFA="-lelf"
721                 XLIBKVM="-lkvm"
722                 XLIBS="${LIB_AFSDB}"
723                 LD="ld"
724                 ;;
725
726         sun4x_55)
727                 CC="/opt/SUNWspro/bin/cc"
728                 CCOBJ="/opt/SUNWspro/bin/cc"
729                 LEX="lex"
730                 MT_CC="/opt/SUNWspro/bin/cc"
731                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
732                 MT_LIBS="-lpthread -lsocket"
733                 SHLIB_CFLAGS="-KPIC"
734                 TXLIBS="-lcurses"
735                 XCFLAGS="-dy -Bdynamic"
736                 XLIBELFA="-lelf"
737                 XLIBKVM="-lkvm"
738                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
739                 LD="/usr/ccs/bin/ld"
740                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
741                 LWP_OPTMZ="-g"
742                 ;;
743
744         sun4x_56)
745                 CC="/opt/SUNWspro/bin/cc"
746                 CCOBJ="/opt/SUNWspro/bin/cc"
747                 LEX="lex"
748                 MT_CC="/opt/SUNWspro/bin/cc"
749                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
750                 MT_LIBS="-lpthread -lsocket"
751                 PAM_CFLAGS="-KPIC"
752                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
753                 SHLIB_CFLAGS="-KPIC"
754                 SHLIB_LDFLAGS="-G -Bsymbolic"
755                 TXLIBS="-L/usr/ccs/lib -lcurses"
756                 XCFLAGS="-dy -Bdynamic"
757                 XLIBELFA="-lelf"
758                 LD="/usr/ccs/bin/ld"
759                 XLIBKVM="-lkvm"
760                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
761                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
762                 LWP_OPTMZ="-g"
763                 ;;
764
765         sun4x_57)
766                 CC="/opt/SUNWspro/bin/cc"
767                 CCOBJ="/opt/SUNWspro/bin/cc"
768                 LEX="lex"
769                 LD="/usr/ccs/bin/ld"
770                 MT_CC="/opt/SUNWspro/bin/cc"
771                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
772                 MT_LIBS="-lpthread -lsocket"
773                 PAM_CFLAGS="-KPIC"
774                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
775                 SHLIB_CFLAGS="-KPIC"
776                 SHLIB_LDFLAGS="-G -Bsymbolic"
777                 TXLIBS="-lcurses"
778                 XCFLAGS64='${XCFLAGS} -xarch=v9'
779                 XCFLAGS="-dy -Bdynamic"
780                 XLIBELFA="-lelf"
781                 XLIBKVM="-lkvm"
782                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
783                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
784                 LWP_OPTMZ="-g"
785                 ;;
786
787         sun4x_58)
788                 CC="/opt/SUNWspro/bin/cc"
789                 CCOBJ="/opt/SUNWspro/bin/cc"
790                 LEX="lex"
791                 LD="/usr/ccs/bin/ld"
792                 MT_CC="/opt/SUNWspro/bin/cc"
793                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
794                 MT_LIBS="-lpthread -lsocket"
795                 PAM_CFLAGS="-KPIC"
796                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
797                 SHLIB_CFLAGS="-KPIC"
798                 SHLIB_LDFLAGS="-G -Bsymbolic"
799                 TXLIBS="-lcurses"
800                 XCFLAGS64='${XCFLAGS} -xarch=v9'
801                 XCFLAGS="-dy -Bdynamic"
802                 XLIBELFA="-lelf"
803                 XLIBKVM="-lkvm"
804                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
805                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
806                 LWP_OPTMZ="-g"
807                 ;;
808
809         sun4x_59)
810                 CC="/opt/SUNWspro/bin/cc"
811                 CCOBJ="/opt/SUNWspro/bin/cc"
812                 LEX="lex"
813                 LD="/usr/ccs/bin/ld"
814                 MT_CC="/opt/SUNWspro/bin/cc"
815                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
816                 MT_LIBS="-lpthread -lsocket"
817                 PAM_CFLAGS="-KPIC"
818                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
819                 SHLIB_CFLAGS="-KPIC"
820                 SHLIB_LDFLAGS="-G -Bsymbolic"
821                 TXLIBS="-lcurses"
822                 XCFLAGS64='${XCFLAGS} -xarch=v9'
823                 XCFLAGS="-dy -Bdynamic"
824                 XLIBELFA="-lelf"
825                 XLIBKVM="-lkvm"
826                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
827                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
828                 LWP_OPTMZ="-g"
829                 ;;
830
831         sun4x_510)
832                 CC="/opt/SUNWspro/bin/cc"
833                 CCOBJ="/opt/SUNWspro/bin/cc"
834                 LEX="lex"
835                 LD="/usr/ccs/bin/ld"
836                 MT_CC="/opt/SUNWspro/bin/cc"
837                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
838                 MT_LIBS="-lpthread -lsocket"
839                 PAM_CFLAGS="-KPIC"
840                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
841                 SHLIB_CFLAGS="-KPIC"
842                 SHLIB_LDFLAGS="-G -Bsymbolic"
843                 TXLIBS="-lcurses"
844                 XCFLAGS64='${XCFLAGS} -xarch=v9'
845                 XCFLAGS="-dy -Bdynamic"
846                 XLIBELFA="-lelf"
847                 XLIBKVM="-lkvm"
848                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
849                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
850                 LWP_OPTMZ="-g"
851                 ;;
852
853         sunx86_57)
854                 CC="/opt/SUNWspro/bin/cc"
855                 CCOBJ="/opt/SUNWspro/bin/cc"
856                 LEX="lex"
857                 LD="/usr/ccs/bin/ld"
858                 MT_CC="/opt/SUNWspro/bin/cc"
859                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
860                 MT_LIBS="-lpthread -lsocket"
861                 PAM_CFLAGS="-KPIC"
862                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
863                 SHLIB_CFLAGS="-KPIC"
864                 SHLIB_LDFLAGS="-G -Bsymbolic"
865                 TXLIBS="-lcurses"
866                 XCFLAGS64='${XCFLAGS} -xarch=amd64'
867                 XCFLAGS="-dy -Bdynamic"
868                 XLIBELFA="-lelf"
869                 XLIBKVM="-lkvm"
870                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
871                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
872                 ;;
873
874         sunx86_58)
875                 CC="/opt/SUNWspro/bin/cc"
876                 CCOBJ="/opt/SUNWspro/bin/cc"
877                 LEX="lex"
878                 LD="/usr/ccs/bin/ld"
879                 MT_CC="/opt/SUNWspro/bin/cc"
880                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
881                 MT_LIBS="-lpthread -lsocket"
882                 PAM_CFLAGS="-KPIC"
883                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
884                 SHLIB_CFLAGS="-KPIC"
885                 SHLIB_LDFLAGS="-G -Bsymbolic"
886                 TXLIBS="-lcurses"
887                 XCFLAGS64='${XCFLAGS} -xarch=amd64'
888                 XCFLAGS="-dy -Bdynamic"
889                 XLIBELFA="-lelf"
890                 XLIBKVM="-lkvm"
891                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
892                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
893                 ;;
894
895         sunx86_59)
896                 CC="/opt/SUNWspro/bin/cc"
897                 CCOBJ="/opt/SUNWspro/bin/cc"
898                 LEX="lex"
899                 LD="/usr/ccs/bin/ld"
900                 MT_CC="/opt/SUNWspro/bin/cc"
901                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
902                 MT_LIBS="-lpthread -lsocket"
903                 PAM_CFLAGS="-KPIC"
904                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
905                 SHLIB_CFLAGS="-KPIC"
906                 SHLIB_LDFLAGS="-G -Bsymbolic"
907                 TXLIBS="-lcurses"
908                 XCFLAGS64='${XCFLAGS} -xarch=amd64'
909                 XCFLAGS="-dy -Bdynamic"
910                 XLIBELFA="-lelf"
911                 XLIBKVM="-lkvm"
912                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
913                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
914                 ;;
915
916         sunx86_510)
917                 CC="/opt/SUNWspro/bin/cc"
918                 CCOBJ="/opt/SUNWspro/bin/cc"
919                 LEX="lex"
920                 LD="/usr/ccs/bin/ld"
921                 MT_CC="/opt/SUNWspro/bin/cc"
922                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
923                 MT_LIBS="-lpthread -lsocket"
924                 PAM_CFLAGS="-KPIC"
925                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
926                 SHLIB_CFLAGS="-KPIC"
927                 SHLIB_LDFLAGS="-G -Bsymbolic"
928                 TXLIBS="-lcurses"
929                 XCFLAGS64='${XCFLAGS} -xarch=amd64'
930                 XCFLAGS="-dy -Bdynamic"
931                 XLIBELFA="-lelf"
932                 XLIBKVM="-lkvm"
933                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
934                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
935                 ;;
936 esac
937
938 #
939 # Special build targets
940 #
941 case $AFS_SYSNAME in
942         sgi_6*)
943                 IRIX_SYS_SYSTM_H_HAS_MEM_FUNCS
944                 XFS_SIZE_CHECK="xfs_size_check"
945                 install_XFS_SIZE_CHECK='$(DESTDIR)${afssrvsbindir}/xfs_size_check'
946                 dest_XFS_SIZE_CHECK='$(DEST)/root.server/usr/afs/bin/xfs_size_check'
947         
948                 AC_SUBST(XFS_SIZE_CHECK)
949                 AC_SUBST(install_XFS_SIZE_CHECK)
950                 AC_SUBST(dest_XFS_SIZE_CHECK)
951         ;;
952         
953         sun4x_*|sunx86_*)
954                 FS_CONV_SOL26="fs_conv_sol26"
955                 install_FS_CONV_SOL26='$(DESTDIR)${afssrvsbindir}/fs_conv_sol26'
956                 dest_FS_CONV_SOL26='$(DEST)/root.server/usr/afs/bin/fs_conv_sol26'
957
958                 AC_SUBST(FS_CONV_SOL26)
959                 AC_SUBST(install_FS_CONV_SOL26)
960                 AC_SUBST(dest_FS_CONV_SOL26)
961         ;;
962
963         alpha_dux*)
964                 FS_CONV_OSF40D="fs_conv_dux40D"
965                 install_FS_CONV_OSF40D='$(DESTDIR)${afssrvsbindir}/fs_conv_dux40D'
966                 dest_FS_CONV_OSF40D='$(DEST)/root.server/usr/afs/bin/fs_conv_dux40D'
967
968                 AC_SUBST(FS_CONV_OSF40D)
969                 AC_SUBST(install_FS_CONV_OSF40D)
970                 AC_SUBST(dest_FS_CONV_OSF40D)
971         ;;
972 esac
973
974 dnl Disable the default for debugging/optimization if not enabled
975 if test "x$enable_debug_kernel" = "xno"; then
976   KERN_DBG=
977 fi
978
979 if test "x$enable_optimize_kernel" = "xno"; then
980   KERN_OPTMZ=
981 fi
982
983 if test "x$enable_debug" = "xno"; then
984   DBG=
985 fi
986
987 if test "x$enable_optimize" = "xno"; then
988   OPTMZ=
989 fi
990
991 if test "x$enable_debug_lwp" = "xno"; then
992   LWP_DBG=
993 fi
994
995 if test "x$enable_optimize_lwp" = "xno"; then
996   LWP_OPTMZ=
997 fi
998
999 AC_SUBST(CCXPG2)
1000 AC_SUBST(CCOBJ)
1001 AC_SUBST(AFSD_LIBS)
1002 AC_SUBST(AFSD_LDFLAGS)
1003 AC_SUBST(AIX64)
1004 AC_SUBST(AR)
1005 AC_SUBST(AS)
1006 AC_SUBST(CP)
1007 AC_SUBST(DBG)
1008 AC_SUBST(FSINCLUDES)
1009 AC_SUBST(KERN_DBG)
1010 AC_SUBST(KERN_OPTMZ)
1011 AC_SUBST(LD)
1012 AC_SUBST(LEX)
1013 AC_SUBST(LWP_DBG)
1014 AC_SUBST(LWP_OPTMZ)
1015 AC_SUBST(MT_CC)
1016 AC_SUBST(MT_CFLAGS)
1017 AC_SUBST(MT_LIBS)
1018 AC_SUBST(MV)
1019 AC_SUBST(OPTMZ)
1020 AC_SUBST(PAM_CFLAGS)
1021 AC_SUBST(PAM_LIBS)
1022 AC_SUBST(PINSTALL_LIBS)
1023 AC_SUBST(RANLIB)
1024 AC_SUBST(REGEX_OBJ)
1025 AC_SUBST(RM)
1026 AC_SUBST(SHLIB_CFLAGS)
1027 AC_SUBST(SHLIB_LDFLAGS)
1028 AC_SUBST(SHLIB_LINKER)
1029 AC_SUBST(SHLIB_SUFFIX)
1030 AC_SUBST(TXLIBS)
1031 AC_SUBST(VFSCK_CFLAGS)
1032 AC_SUBST(XCFLAGS)
1033 AC_SUBST(XCFLAGS64)
1034 AC_SUBST(XLDFLAGS)
1035 AC_SUBST(XLDFLAGS64)
1036 AC_SUBST(XLIBELFA)
1037 AC_SUBST(XLIBKVM)
1038 AC_SUBST(XLIBS)
1039 AC_SUBST(YACC)
1040
1041
1042 ])