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