-cat $syslegal $sysinc $sysent > $syscalltablefile
-cat $syslegal $sysarg $sysprotoend > $sysprotofile
-cat $syslegal $syscallnamestempfile > $syscallnamesfile
-cat $syslegal $syshdrtempfile > $syshdrfile
+# define value in syscall table file to permit redifintion because of the way
+# __private_extern__ (doesn't) work.
+if [ $output_syscalltablefile -eq 1 ]; then
+ cat $syslegal > $syscalltablefile
+ printf "#define __INIT_SYSENT_C__ 1\n" >> $syscalltablefile
+ cat $sysinc $sysent >> $syscalltablefile
+fi
+
+if [ $output_syscallnamesfile -eq 1 ]; then
+ cat $syslegal $syscallnamestempfile > $syscallnamesfile
+fi
+
+if [ $output_sysprotofile -eq 1 ]; then
+ cat $syslegal $sysarg $sysprotoend > $sysprotofile
+fi
+
+if [ $output_syshdrfile -eq 1 ]; then
+ cat $syslegal $syshdrtempfile > $syshdrfile
+fi
+
+if [ $output_auditevfile -eq 1 ]; then
+ cat $syslegal $audittempfile > $auditevfile
+fi