linux-pic-everywhere-20050811
[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                 TXLIBS="-lncurses"
212                 XCFLAGS="-O2 -pipe"
213                 YACC="byacc"
214                 ;;
215
216         *nbsd2*|*nbsd3*)
217                 LEX="flex -l"
218                 MT_CFLAGS='${XCFLAGS} -DAFS_PTHREAD_ENV -D_REENTRANT '
219                 MT_LIBS="-lpthread" # XXX -pthread soon
220                 PAM_CFLAGS="-O2 -pipe -fPIC"
221                 SHLIB_LDFLAGS="-shared -Xlinker -x"
222                 TXLIBS="/usr/lib/libcurses.so"
223                 XCFLAGS="-O2 -pipe"
224                 YACC="yacc"
225                 ;;
226
227         *nbsd15|*nbsd16)
228                 LEX="flex -l"
229                 MT_CFLAGS='${XCFLAGS}'
230                 MT_LIBS=""
231                 PAM_CFLAGS="-O2 -pipe -fPIC"
232                 SHLIB_LDFLAGS="-shared -Xlinker -x"
233                 TXLIBS="/usr/lib/libcurses.so"
234                 XCFLAGS="-O2 -pipe"
235                 YACC="bison -y"
236                 ;;
237
238         ia64_linux24|ia64_linux26)
239                 KERN_OPTMZ=-O2
240                 LEX="flex -l"
241                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
242                 MT_LIBS="-lpthread"
243                 PAM_CFLAGS="-g -O2 -Dlinux -DLINUX_PAM -fPIC"
244                 SHLIB_CFLAGS="-fPIC"
245                 SHLIB_LDFLAGS="-shared -Xlinker -x"
246                 TXLIBS="-lncurses"
247                 XCFLAGS="-g -O2 -D_LARGEFILE64_SOURCE -G0"
248                 SHLIB_LINKER="${MT_CC} -shared"
249                 ;;
250
251         amd64_linux*)
252                 CCOBJ="${CC} -fPIC"
253                 KERN_OPTMZ=-O2
254                 LEX="flex -l"
255                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
256                 MT_LIBS="-lpthread"
257                 PAM_CFLAGS="-g -O2 -Dlinux -DLINUX_PAM -fPIC"
258                 SHLIB_CFLAGS="-fPIC"
259                 SHLIB_LDFLAGS="-shared -Xlinker -x"
260                 TXLIBS="-lncurses"
261                 XCFLAGS="-g -O2 -D_LARGEFILE64_SOURCE"
262                 SHLIB_LINKER="${MT_CC} -shared"
263                 ;;
264
265         ppc64_linux24)
266                 KERN_OPTMZ=-O2
267                 LEX="flex -l"
268                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
269                 MT_LIBS="-lpthread"
270                 PAM_CFLAGS="-g -O2 -Dlinux -DLINUX_PAM -fPIC"
271                 SHLIB_LDFLAGS="-shared -Xlinker -x"
272                 SHLIB_CFLAGS="-fPIC"
273                 TXLIBS="/usr/lib64/libncurses.so"
274                 XCFLAGS="-g -O2 -D_LARGEFILE64_SOURCE"
275                 SHLIB_LINKER="${MT_CC} -shared"
276                 ;;
277
278         ppc64_linux26)
279                 KERN_OPTMZ=-O2
280                 LEX="flex -l"
281                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
282                 MT_LIBS="-lpthread"
283                 PAM_CFLAGS="-g -O2 -Dlinux -DLINUX_PAM -fPIC"
284                 SHLIB_LDFLAGS="-shared -Xlinker -x"
285                 SHLIB_CFLAGS="-fPIC"
286                 TXLIBS="-lncurses"
287                 XCFLAGS="-g -O2 -D_LARGEFILE64_SOURCE -fPIC"
288                 YACC="bison -y"
289                 SHLIB_LINKER="${MT_CC} -shared"
290                 ;;
291
292         i386_umlinux22)
293                 CC="gcc -pipe"
294                 CCOBJ="gcc -pipe"
295                 MT_CC="gcc -pipe"
296                 KERN_OPTMZ=-O2
297                 LEX="flex -l"
298                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
299                 MT_LIBS="-lpthread"
300                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
301                 SHLIB_CFLAGS="-fPIC"
302                 SHLIB_LDFLAGS="-shared -Xlinker -x"
303                 TXLIBS="-lncurses"
304                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
305                 YACC="bison -y"
306                 SHLIB_LINKER="${MT_CC} -shared"
307                 ;;
308
309         i386_linux*)
310                 CC="gcc -pipe"
311                 CCOBJ="gcc -pipe"
312                 MT_CC="gcc -pipe"
313                 KERN_OPTMZ=-O2
314                 LEX="flex -l"
315                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
316                 MT_LIBS="-lpthread"
317                 DBG=-g
318                 KERN_DBG=-g
319                 LWP_DBG=-g
320                 LWP_OPTMZ=-O2
321                 OPTMZ=-O2
322                 PAM_CFLAGS="-g -O2 -Dlinux -DLINUX_PAM -fPIC"
323                 SHLIB_CFLAGS="-fPIC"
324                 SHLIB_LDFLAGS="-shared -Xlinker -x"
325                 TXLIBS="-lncurses"
326                 XCFLAGS="-g -O2 -D_LARGEFILE64_SOURCE"
327                 SHLIB_LINKER="${MT_CC} -shared"
328                 ;;
329
330         i386_umlinux24)
331                 CC="gcc -pipe"
332                 CCOBJ="gcc -pipe"
333                 MT_CC="gcc -pipe"
334                 KERN_OPTMZ=-O2
335                 LEX="flex -l"
336                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
337                 MT_LIBS="-lpthread"
338                 DBG=-g
339                 KERN_DBG=-g
340                 LWP_DBG=-g
341                 LWP_OPTMZ=-O2
342                 OPTMZ=-O2
343                 PAM_CFLAGS="-g -O2 -Dlinux -DLINUX_PAM -fPIC"
344                 SHLIB_CFLAGS="-fPIC"
345                 SHLIB_LDFLAGS="-shared -Xlinker -x"
346                 TXLIBS="-lncurses"
347                 XCFLAGS="-g -O2 -D_LARGEFILE64_SOURCE"
348                 SHLIB_LINKER="${MT_CC} -shared"
349                 ;;
350
351         i386_umlinux26)
352                 CC="gcc -pipe"
353                 CCOBJ="gcc -pipe"
354                 MT_CC="gcc -pipe"
355                 KERN_OPTMZ=-O2
356                 LEX="flex -l"
357                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
358                 MT_LIBS="-lpthread"
359                 DBG=-g
360                 KERN_DBG=-g
361                 LWP_DBG=-g
362                 LWP_OPTMZ=-O2
363                 OPTMZ=-O2
364                 PAM_CFLAGS="-g -O2 -Dlinux -DLINUX_PAM -fPIC"
365                 SHLIB_CFLAGS="-fPIC"
366                 SHLIB_LDFLAGS="-shared -Xlinker -x"
367                 TXLIBS="-lncurses"
368                 XCFLAGS="-g -O2 -D_LARGEFILE64_SOURCE"
369                 SHLIB_LINKER="${MT_CC} -shared"
370                 ;;
371
372         *_obsd*)
373                 LEX="flex -l"
374                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
375                 MT_LIBS="-pthread"
376                 PAM_CFLAGS="-O2 -pipe -fpic"
377                 SHLIB_CFLAGS="-fpic"
378                 SHLIB_LDFLAGS="-shared -Xlinker -x"
379                 TXLIBS="/usr/lib/libcurses.a"
380                 XCFLAGS="-O2"
381                 YACC="yacc"
382                 ;;
383
384         parisc_linux24)
385                 KERN_OPTMZ=-O2
386                 LEX="flex -l"
387                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
388                 MT_LIBS="-lpthread"
389                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
390                 SHLIB_CFLAGS="-fPIC"
391                 SHLIB_LDFLAGS="-shared -Xlinker -x"
392                 TXLIBS="-lncurses"
393                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
394                 YACC="bison -y"
395                 SHLIB_LINKER="${MT_CC} -shared"
396                 ;;
397
398         ppc_darwin_12)
399                 AFSD_LDFLAGS="-F/System/Library/PrivateFrameworks -framework DiskArbitration"
400                 LEX="lex -l"
401                 REGEX_OBJ="regex.o"
402                 XCFLAGS="-traditional-cpp"
403                 ;;
404
405         ppc_darwin_13)
406                 AFSD_LDFLAGS="-F/System/Library/PrivateFrameworks -framework DiskArbitration"
407                 LEX="lex -l"
408                 LWP_OPTMZ="-O2"
409                 REGEX_OBJ="regex.o"
410                 XCFLAGS="-no-cpp-precomp"
411                 ;;
412
413         ppc_darwin_14)
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                 ;;
420
421         ppc_darwin_60)
422                 AFSD_LDFLAGS="-F/System/Library/PrivateFrameworks -framework DiskArbitration"
423                 LEX="lex -l"
424                 LWP_OPTMZ="-O2"
425                 REGEX_OBJ="regex.o"
426                 XCFLAGS="-no-cpp-precomp"
427                 TXLIBS="-lncurses"
428                 ;;
429
430         ppc_darwin_70)
431                 AFSD_LDFLAGS="-F/System/Library/PrivateFrameworks -framework DiskArbitration"
432                 LEX="lex -l"
433                 MT_CFLAGS='-DAFS_PTHREAD_ENV -D_REENTRANT ${XCFLAGS}'
434                 KROOT=
435                 KINCLUDES='-I$(KROOT)/System/Library/Frameworks/Kernel.framework/Headers'
436                 LWP_OPTMZ="-O2"
437                 REGEX_OBJ="regex.o"
438                 XCFLAGS="-no-cpp-precomp"
439                 TXLIBS="-lncurses"
440                 EXTRA_VLIBOBJS="fstab.o"
441                 ;;
442
443         ppc_darwin_80)
444                 AFSD_LDFLAGS="-F/System/Library/PrivateFrameworks -framework DiskArbitration"
445                 LEX="lex -l"
446                 MT_CFLAGS='-DAFS_PTHREAD_ENV -D_REENTRANT ${XCFLAGS}'
447                 KROOT=
448                 KINCLUDES='-I$(KROOT)/System/Library/Frameworks/Kernel.framework/Headers'
449                 LWP_OPTMZ="-O2"
450                 REGEX_OBJ="regex.o"
451                 XCFLAGS="-no-cpp-precomp"
452                 TXLIBS="-lncurses"
453                 EXTRA_VLIBOBJS="fstab.o"
454                 ;;
455
456         ppc_linux*)
457                 KERN_OPTMZ=-O2
458                 LEX="flex -l"
459                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
460                 MT_LIBS="-lpthread"
461                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
462                 SHLIB_CFLAGS="-fPIC"
463                 SHLIB_LDFLAGS="-shared -Xlinker -x"
464                 TXLIBS="-lncurses"
465                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
466                 YACC="bison -y"
467                 SHLIB_LINKER="${MT_CC} -shared"
468                 ;;
469
470         rs_aix42)
471                 DBG=""
472                 LEX="lex"
473                 LIBSYS_AIX_EXP="afsl.exp"
474                 MT_CC="xlc_r"
475                 MT_CFLAGS='-DAFS_PTHREAD_ENV ${XCFLAGS}'
476                 MT_LIBS="-lpthreads"
477                 SHLIB_SUFFIX="o"
478                 TXLIBS="-lcurses"
479                 XCFLAGS="-K -D_NO_PROTO -D_NONSTD_TYPES -D_MBI=void"
480                 XLIBS="${LIB_AFSDB} -ldl"
481                 SHLIB_LINKER="${MT_CC} -bM:SRE -berok"
482                 AIX64="#"
483                 ;;
484
485
486         rs_aix51)
487                 DBG=""
488                 LEX="lex"
489                 LIBSYS_AIX_EXP="afsl.exp"
490                 MT_CC="xlc_r"
491                 MT_CFLAGS='-DAFS_PTHREAD_ENV ${XCFLAGS}'
492                 MT_LIBS="-lpthreads"
493                 SHLIB_SUFFIX="o"
494                 TXLIBS="-lcurses"
495                 XCFLAGS="-K -D_NO_PROTO -D_NONSTD_TYPES -D_MBI=void"
496                 XLIBS="${LIB_AFSDB} -ldl"
497                 SHLIB_LINKER="${MT_CC} -bM:SRE -berok"
498                 AIX64=""
499                 ;;
500
501         rs_aix52)       
502                 DBG=""
503                 LEX="lex"
504                 LIBSYS_AIX_EXP="afsl.exp"
505                 MT_CC="xlc_r"
506                 MT_CFLAGS='-DAFS_PTHREAD_ENV ${XCFLAGS}'
507                 MT_LIBS="-lpthreads"
508                 SHLIB_SUFFIX="o"
509                 TXLIBS="-lcurses"
510                 XCFLAGS="-K -D_NO_PROTO -D_NONSTD_TYPES -D_MBI=void"
511                 XLIBS="${LIB_AFSDB} -ldl"
512                 SHLIB_LINKER="${MT_CC} -bM:SRE -berok"
513                 AIX64=""
514                 ;;
515
516         rs_aix53)       
517                 DBG="-g"
518                 LEX="lex"
519                 LIBSYS_AIX_EXP="afsl.exp"
520                 MT_CC="xlc_r"
521                 MT_CFLAGS='-DAFS_PTHREAD_ENV ${XCFLAGS}'
522                 MT_LIBS="-lpthreads"
523                 SHLIB_SUFFIX="o"
524                 TXLIBS="-lcurses"
525                 XCFLAGS="-K -D_NO_PROTO -D_NONSTD_TYPES -D_MBI=void"
526                 XLIBS="${LIB_AFSDB} -ldl"
527                 SHLIB_LINKER="${MT_CC} -bM:SRE -berok"
528                 AIX64=""
529                 ;;
530
531         s390_linux22)
532                 CC="gcc"
533                 CCOBJ="gcc"
534                 LD="ld"
535                 KERN_OPTMZ=-O2
536                 LEX="flex -l"
537                 MT_CC="$CC"
538                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
539                 MT_LIBS="-lpthread"
540                 PAM_CFLAGS="-O -Dlinux -DLINUX_PAM -fPIC"
541                 SHLIB_CFLAGS="-fPIC"
542                 SHLIB_LDFLAGS="-shared -Xlinker -x"
543                 TXLIBS="-lncurses"
544                 XCFLAGS="-O -g -D_LARGEFILE64_SOURCE"
545                 YACC="bison -y"
546                 SHLIB_LINKER="${MT_CC} -shared"
547                 ;;
548
549         s390_linux24|s390_linux26)
550                 CC="gcc"
551                 CCOBJ="gcc"
552                 LD="ld"
553                 KERN_OPTMZ=-O2
554                 LEX="flex -l"
555                 MT_CC="$CC"
556                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
557                 MT_LIBS="-lpthread"
558                 PAM_CFLAGS="-O -Dlinux -DLINUX_PAM -fPIC"
559                 SHLIB_CFLAGS="-fPIC"
560                 SHLIB_LDFLAGS="-shared -Xlinker -x"
561                 TXLIBS="-lncurses"
562                 XCFLAGS="-O -g -D_LARGEFILE64_SOURCE"
563                 YACC="bison -y"
564                 SHLIB_LINKER="${MT_CC} -shared"
565                 ;;
566
567         s390x_linux24|s390x_linux26)
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 -Xlinker -Bsymbolic"
579                 TXLIBS="-lncurses"
580                 XCFLAGS="-O -g -D_LARGEFILE64_SOURCE -D__s390x__"
581                 YACC="bison -y"
582                 SHLIB_LINKER="${MT_CC} -shared"
583                 ;;
584
585         sgi_62)
586                 PINSTALL_LIBS=-lmld
587                 AFSD_LIBS="/usr/lib/libdwarf.a /usr/lib/libelf.a"
588                 FSINCLUDES="-I/usr/include/sys/fs"
589                 LEX="lex"
590                 MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}'
591                 MT_LIBS="-lpthread"
592                 TXLIBS="-lcurses"
593                 XCFLAGS64="-64 -mips3"
594                 XCFLAGS="-o32"
595                 XLDFLAGS64="-64"
596                 XLDFLAGS="-o32"
597                 SHLIB_LINKER="${CC} -shared"
598                 ;;
599
600         sgi_63)
601                 PINSTALL_LIBS=-lmld
602                 AFSD_LIBS="/usr/lib/libdwarf.a /usr/lib/libelf.a"
603                 FSINCLUDES="-I/usr/include/sys/fs"
604                 LEX="lex"
605                 MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}'
606                 MT_LIBS="-lpthread"
607                 TXLIBS="-lcurses"
608                 XCFLAGS64="-D_BSD_COMPAT -64 -mips3"
609                 XCFLAGS="-D_OLD_TERMIOS -D_BSD_COMPAT -o32"
610                 XLDFLAGS64="-64"
611                 XLDFLAGS="-o32"
612                 SHLIB_LINKER="${CC} -shared"
613                 ;;
614
615         sgi_64)
616                 AFSD_LIBS="/usr/lib32/libdwarf.a /usr/lib32/libelf.a"
617                 FSINCLUDES="-I/usr/include/sys/fs"
618                 LEX="lex"
619                 MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}'
620                 MT_LIBS="-lpthread"
621                 TXLIBS="-lcurses"
622                 XCFLAGS64="-D_BSD_COMPAT -64 -mips3"
623                 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"
624                 XLDFLAGS64="-64"
625                 XLDFLAGS="-n32"
626                 SHLIB_LINKER="${CC} -shared"
627                 ;;
628
629         sgi_65)
630                 AFSD_LIBS="/usr/lib32/libdwarf.a /usr/lib32/libelf.a"
631                 CC="/usr/bin/cc"
632                 CCOBJ="/usr/bin/cc"
633                 FSINCLUDES="-I/usr/include/sys/fs"
634                 LD="/usr/bin/ld"
635                 LEX="lex"
636                 MT_CC="/usr/bin/cc"
637                 MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}'
638                 MT_LIBS="-lpthread"
639                 TXLIBS="-lcurses"
640                 XCFLAGS64="-64 -mips3"
641                 XCFLAGS="-n32 -mips3 -woff 1009,1110,1116,1164,1171,1177,1183,1185,1204,1233,1515,1516,1548,1169,1174,1177,1196,1498,1506,1552"
642                 XLDFLAGS64="-64 -mips3"
643                 XLDFLAGS="-n32 -mips3"
644                 SHLIB_LINKER="${CC} -shared"
645                 ;;
646
647         sparc64_linux22)
648                 KERN_OPTMZ=-O2
649                 LEX="flex -l"
650                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
651                 MT_LIBS="-lpthread"
652                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
653                 SHLIB_CFLAGS="-fPIC"
654                 SHLIB_LDFLAGS="-shared -Xlinker -x"
655                 TXLIBS="-lncurses"
656                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
657                 YACC="bison -y"
658                 SHLIB_LINKER="${MT_CC} -shared"
659                 ;;
660
661         sparc64_linux24)
662                 KERN_OPTMZ=-O2
663                 LEX="flex -l"
664                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
665                 MT_LIBS="-lpthread"
666                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
667                 SHLIB_LDFLAGS="-shared -Xlinker -x"
668                 TXLIBS="-lncurses"
669                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
670                 YACC="bison -y"
671                 SHLIB_LINKER="${MT_CC} -shared"
672                 ;;
673
674         sparc_linux22)
675                 KERN_OPTMZ=-O2
676                 LEX="flex -l"
677                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
678                 MT_LIBS="-lpthread"
679                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
680                 SHLIB_LDFLAGS="-shared -Xlinker -x"
681                 TXLIBS="-lncurses"
682                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
683                 YACC="bison -y"
684                 SHLIB_LINKER="${MT_CC} -shared"
685                 ;;
686
687         sun4_413)
688                 CCXPG2="/usr/xpg2bin/cc"
689                 CC="gcc"
690                 CCOBJ="gcc"
691                 LEX="lex"
692                 SHLIB_CFLAGS="-PIC"
693                 TXLIBS="-lcurses -ltermcap"
694                 XCFLAGS=""
695                 XLIBELFA="-lelf"
696                 XLIBKVM="-lkvm"
697                 XLIBS="${LIB_AFSDB}"
698                 LD="ld"
699                 ;;
700
701         sun4x_55)
702                 CC="/opt/SUNWspro/bin/cc"
703                 CCOBJ="/opt/SUNWspro/bin/cc"
704                 LEX="lex"
705                 MT_CC="/opt/SUNWspro/bin/cc"
706                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
707                 MT_LIBS="-lpthread -lsocket"
708                 SHLIB_CFLAGS="-KPIC"
709                 TXLIBS="-lcurses"
710                 XCFLAGS="-dy -Bdynamic"
711                 XLIBELFA="-lelf"
712                 XLIBKVM="-lkvm"
713                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
714                 LD="/usr/ccs/bin/ld"
715                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
716                 ;;
717
718         sun4x_56)
719                 CC="/opt/SUNWspro/bin/cc"
720                 CCOBJ="/opt/SUNWspro/bin/cc"
721                 LEX="lex"
722                 MT_CC="/opt/SUNWspro/bin/cc"
723                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
724                 MT_LIBS="-lpthread -lsocket"
725                 PAM_CFLAGS="-KPIC"
726                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
727                 SHLIB_CFLAGS="-KPIC"
728                 SHLIB_LDFLAGS="-G -Bsymbolic"
729                 TXLIBS="-L/usr/ccs/lib -lcurses"
730                 XCFLAGS="-dy -Bdynamic"
731                 XLIBELFA="-lelf"
732                 LD="/usr/ccs/bin/ld"
733                 XLIBKVM="-lkvm"
734                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
735                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
736                 ;;
737
738         sun4x_57)
739                 CC="/opt/SUNWspro/bin/cc"
740                 CCOBJ="/opt/SUNWspro/bin/cc"
741                 LEX="lex"
742                 LD="/usr/ccs/bin/ld"
743                 MT_CC="/opt/SUNWspro/bin/cc"
744                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
745                 MT_LIBS="-lpthread -lsocket"
746                 PAM_CFLAGS="-KPIC"
747                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
748                 SHLIB_CFLAGS="-KPIC"
749                 SHLIB_LDFLAGS="-G -Bsymbolic"
750                 TXLIBS="-lcurses"
751                 XCFLAGS64='${XCFLAGS} -xarch=v9'
752                 XCFLAGS="-dy -Bdynamic"
753                 XLIBELFA="-lelf"
754                 XLIBKVM="-lkvm"
755                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
756                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
757                 ;;
758
759         sun4x_58)
760                 CC="/opt/SUNWspro/bin/cc"
761                 CCOBJ="/opt/SUNWspro/bin/cc"
762                 LEX="lex"
763                 LD="/usr/ccs/bin/ld"
764                 MT_CC="/opt/SUNWspro/bin/cc"
765                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
766                 MT_LIBS="-lpthread -lsocket"
767                 PAM_CFLAGS="-KPIC"
768                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
769                 SHLIB_CFLAGS="-KPIC"
770                 SHLIB_LDFLAGS="-G -Bsymbolic"
771                 TXLIBS="-lcurses"
772                 XCFLAGS64='${XCFLAGS} -xarch=v9'
773                 XCFLAGS="-dy -Bdynamic"
774                 XLIBELFA="-lelf"
775                 XLIBKVM="-lkvm"
776                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
777                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
778                 ;;
779
780         sun4x_59)
781                 CC="/opt/SUNWspro/bin/cc"
782                 CCOBJ="/opt/SUNWspro/bin/cc"
783                 LEX="lex"
784                 LD="/usr/ccs/bin/ld"
785                 MT_CC="/opt/SUNWspro/bin/cc"
786                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
787                 MT_LIBS="-lpthread -lsocket"
788                 PAM_CFLAGS="-KPIC"
789                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
790                 SHLIB_CFLAGS="-KPIC"
791                 SHLIB_LDFLAGS="-G -Bsymbolic"
792                 TXLIBS="-lcurses"
793                 XCFLAGS64='${XCFLAGS} -xarch=v9'
794                 XCFLAGS="-dy -Bdynamic"
795                 XLIBELFA="-lelf"
796                 XLIBKVM="-lkvm"
797                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
798                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
799                 ;;
800
801         sun4x_510)
802                 CC="/opt/SUNWspro/bin/cc"
803                 CCOBJ="/opt/SUNWspro/bin/cc"
804                 LEX="lex"
805                 LD="/usr/ccs/bin/ld"
806                 MT_CC="/opt/SUNWspro/bin/cc"
807                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
808                 MT_LIBS="-lpthread -lsocket"
809                 PAM_CFLAGS="-KPIC"
810                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
811                 SHLIB_CFLAGS="-KPIC"
812                 SHLIB_LDFLAGS="-G -Bsymbolic"
813                 TXLIBS="-lcurses"
814                 XCFLAGS64='${XCFLAGS} -xarch=v9'
815                 XCFLAGS="-dy -Bdynamic"
816                 XLIBELFA="-lelf"
817                 XLIBKVM="-lkvm"
818                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
819                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
820                 ;;
821
822         sunx86_57)
823                 CC="/opt/SUNWspro/bin/cc"
824                 CCOBJ="/opt/SUNWspro/bin/cc"
825                 LEX="lex"
826                 LD="/usr/ccs/bin/ld"
827                 MT_CC="/opt/SUNWspro/bin/cc"
828                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
829                 MT_LIBS="-lpthread -lsocket"
830                 PAM_CFLAGS="-KPIC"
831                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
832                 SHLIB_CFLAGS="-KPIC"
833                 SHLIB_LDFLAGS="-G -Bsymbolic"
834                 TXLIBS="-lcurses"
835                 XCFLAGS64='${XCFLAGS} -xarch=amd64'
836                 XCFLAGS="-dy -Bdynamic"
837                 XLIBELFA="-lelf"
838                 XLIBKVM="-lkvm"
839                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
840                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
841                 ;;
842
843         sunx86_58)
844                 CC="/opt/SUNWspro/bin/cc"
845                 CCOBJ="/opt/SUNWspro/bin/cc"
846                 LEX="lex"
847                 LD="/usr/ccs/bin/ld"
848                 MT_CC="/opt/SUNWspro/bin/cc"
849                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
850                 MT_LIBS="-lpthread -lsocket"
851                 PAM_CFLAGS="-KPIC"
852                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
853                 SHLIB_CFLAGS="-KPIC"
854                 SHLIB_LDFLAGS="-G -Bsymbolic"
855                 TXLIBS="-lcurses"
856                 XCFLAGS64='${XCFLAGS} -xarch=amd64'
857                 XCFLAGS="-dy -Bdynamic"
858                 XLIBELFA="-lelf"
859                 XLIBKVM="-lkvm"
860                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
861                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
862                 ;;
863
864         sunx86_59)
865                 CC="/opt/SUNWspro/bin/cc"
866                 CCOBJ="/opt/SUNWspro/bin/cc"
867                 LEX="lex"
868                 LD="/usr/ccs/bin/ld"
869                 MT_CC="/opt/SUNWspro/bin/cc"
870                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
871                 MT_LIBS="-lpthread -lsocket"
872                 PAM_CFLAGS="-KPIC"
873                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
874                 SHLIB_CFLAGS="-KPIC"
875                 SHLIB_LDFLAGS="-G -Bsymbolic"
876                 TXLIBS="-lcurses"
877                 XCFLAGS64='${XCFLAGS} -xarch=amd64'
878                 XCFLAGS="-dy -Bdynamic"
879                 XLIBELFA="-lelf"
880                 XLIBKVM="-lkvm"
881                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
882                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
883                 ;;
884
885         sunx86_510)
886                 CC="/opt/SUNWspro/bin/cc"
887                 CCOBJ="/opt/SUNWspro/bin/cc"
888                 LEX="lex"
889                 LD="/usr/ccs/bin/ld"
890                 MT_CC="/opt/SUNWspro/bin/cc"
891                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
892                 MT_LIBS="-lpthread -lsocket"
893                 PAM_CFLAGS="-KPIC"
894                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
895                 SHLIB_CFLAGS="-KPIC"
896                 SHLIB_LDFLAGS="-G -Bsymbolic"
897                 TXLIBS="-lcurses"
898                 XCFLAGS64='${XCFLAGS} -xarch=amd64'
899                 XCFLAGS="-dy -Bdynamic"
900                 XLIBELFA="-lelf"
901                 XLIBKVM="-lkvm"
902                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
903                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
904                 ;;
905 esac
906
907 #
908 # Special build targets
909 #
910 case $AFS_SYSNAME in
911         sgi_6*)
912                 IRIX_SYS_SYSTM_H_HAS_MEM_FUNCS
913                 XFS_SIZE_CHECK="xfs_size_check"
914                 install_XFS_SIZE_CHECK='$(DESTDIR)${afssrvsbindir}/xfs_size_check'
915                 dest_XFS_SIZE_CHECK='$(DEST)/root.server/usr/afs/bin/xfs_size_check'
916         
917                 AC_SUBST(XFS_SIZE_CHECK)
918                 AC_SUBST(install_XFS_SIZE_CHECK)
919                 AC_SUBST(dest_XFS_SIZE_CHECK)
920         ;;
921         
922         sun4x_*|sunx86_*)
923                 FS_CONV_SOL26="fs_conv_sol26"
924                 install_FS_CONV_SOL26='$(DESTDIR)${afssrvsbindir}/fs_conv_sol26'
925                 dest_FS_CONV_SOL26='$(DEST)/root.server/usr/afs/bin/fs_conv_sol26'
926
927                 AC_SUBST(FS_CONV_SOL26)
928                 AC_SUBST(install_FS_CONV_SOL26)
929                 AC_SUBST(dest_FS_CONV_SOL26)
930         ;;
931
932         alpha_dux*)
933                 FS_CONV_OSF40D="fs_conv_dux40D"
934                 install_FS_CONV_OSF40D='$(DESTDIR)${afssrvsbindir}/fs_conv_dux40D'
935                 dest_FS_CONV_OSF40D='$(DEST)/root.server/usr/afs/bin/fs_conv_dux40D'
936
937                 AC_SUBST(FS_CONV_OSF40D)
938                 AC_SUBST(install_FS_CONV_OSF40D)
939                 AC_SUBST(dest_FS_CONV_OSF40D)
940         ;;
941 esac
942
943 dnl Disable the default for debugging/optimization if not enabled
944 if test "x$enable_debug_kernel" = "xno"; then
945   KERN_DBG=
946 fi
947
948 if test "x$enable_optimize_kernel" = "xno"; then
949   KERN_OPTMZ=
950 fi
951
952 if test "x$enable_debug" = "xno"; then
953   DBG=
954 fi
955
956 if test "x$enable_optimize" = "xno"; then
957   OPTMZ=
958 fi
959
960 if test "x$enable_debug_lwp" = "xno"; then
961   LWP_DBG=
962 fi
963
964 if test "x$enable_optimize_lwp" = "xno"; then
965   LWP_OPTMZ=
966 fi
967
968 AC_SUBST(CCXPG2)
969 AC_SUBST(CCOBJ)
970 AC_SUBST(AFSD_LIBS)
971 AC_SUBST(AFSD_LDFLAGS)
972 AC_SUBST(AIX64)
973 AC_SUBST(AR)
974 AC_SUBST(AS)
975 AC_SUBST(CP)
976 AC_SUBST(DBG)
977 AC_SUBST(FSINCLUDES)
978 AC_SUBST(KERN_DBG)
979 AC_SUBST(KERN_OPTMZ)
980 AC_SUBST(LD)
981 AC_SUBST(LEX)
982 AC_SUBST(LWP_DBG)
983 AC_SUBST(LWP_OPTMZ)
984 AC_SUBST(MT_CC)
985 AC_SUBST(MT_CFLAGS)
986 AC_SUBST(MT_LIBS)
987 AC_SUBST(MV)
988 AC_SUBST(OPTMZ)
989 AC_SUBST(PAM_CFLAGS)
990 AC_SUBST(PAM_LIBS)
991 AC_SUBST(PINSTALL_LIBS)
992 AC_SUBST(RANLIB)
993 AC_SUBST(REGEX_OBJ)
994 AC_SUBST(RM)
995 AC_SUBST(SHLIB_CFLAGS)
996 AC_SUBST(SHLIB_LDFLAGS)
997 AC_SUBST(SHLIB_LINKER)
998 AC_SUBST(SHLIB_SUFFIX)
999 AC_SUBST(TXLIBS)
1000 AC_SUBST(VFSCK_CFLAGS)
1001 AC_SUBST(XCFLAGS)
1002 AC_SUBST(XCFLAGS64)
1003 AC_SUBST(XLDFLAGS)
1004 AC_SUBST(XLDFLAGS64)
1005 AC_SUBST(XLIBELFA)
1006 AC_SUBST(XLIBKVM)
1007 AC_SUBST(XLIBS)
1008 AC_SUBST(YACC)
1009
1010
1011 ])