head	1.23;
access;
symbols
	perseant-exfatfs-base-20250801:1.23
	perseant-exfatfs-base-20240630:1.23
	perseant-exfatfs:1.23.0.46
	perseant-exfatfs-base:1.23
	cjep_sun2x:1.23.0.44
	cjep_sun2x-base:1.23
	cjep_staticlib_x-base1:1.23
	cjep_staticlib_x:1.23.0.42
	cjep_staticlib_x-base:1.23
	phil-wifi-20200421:1.23
	phil-wifi-20200411:1.23
	phil-wifi-20200406:1.23
	pgoyette-compat-merge-20190127:1.23
	pgoyette-compat-20190127:1.23
	pgoyette-compat-20190118:1.23
	pgoyette-compat-1226:1.23
	pgoyette-compat-1126:1.23
	pgoyette-compat-1020:1.23
	pgoyette-compat-0930:1.23
	pgoyette-compat-0906:1.23
	pgoyette-compat-0728:1.23
	pgoyette-compat-0625:1.23
	pgoyette-compat-0521:1.23
	pgoyette-compat-0502:1.23
	pgoyette-compat-0422:1.23
	pgoyette-compat-0415:1.23
	pgoyette-compat-0407:1.23
	pgoyette-compat-0330:1.23
	pgoyette-compat-0322:1.23
	pgoyette-compat-0315:1.23
	pgoyette-compat:1.23.0.40
	pgoyette-compat-base:1.23
	perseant-stdc-iso10646:1.23.0.38
	perseant-stdc-iso10646-base:1.23
	prg-localcount2-base3:1.23
	prg-localcount2-base2:1.23
	prg-localcount2-base1:1.23
	prg-localcount2:1.23.0.36
	prg-localcount2-base:1.23
	pgoyette-localcount-20170426:1.23
	bouyer-socketcan-base1:1.23
	pgoyette-localcount-20170320:1.23
	bouyer-socketcan:1.23.0.34
	bouyer-socketcan-base:1.23
	pgoyette-localcount-20170107:1.23
	pgoyette-localcount-20161104:1.23
	localcount-20160914:1.23
	pgoyette-localcount-20160806:1.23
	pgoyette-localcount-20160726:1.23
	pgoyette-localcount:1.23.0.32
	pgoyette-localcount-base:1.23
	netbsd-5-2-3-RELEASE:1.23
	netbsd-5-1-5-RELEASE:1.23
	yamt-pagecache-base9:1.23
	yamt-pagecache-tag8:1.23
	tls-earlyentropy:1.23.0.28
	tls-earlyentropy-base:1.23
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.23
	riastradh-drm2-base3:1.23
	netbsd-5-2-2-RELEASE:1.23
	netbsd-5-1-4-RELEASE:1.23
	netbsd-5-2-1-RELEASE:1.23
	netbsd-5-1-3-RELEASE:1.23
	agc-symver:1.23.0.30
	agc-symver-base:1.23
	tls-maxphys-base:1.23
	yamt-pagecache-base8:1.23
	netbsd-5-2:1.23.0.26
	yamt-pagecache-base7:1.23
	netbsd-5-2-RELEASE:1.23
	netbsd-5-2-RC1:1.23
	yamt-pagecache-base6:1.23
	yamt-pagecache-base5:1.23
	yamt-pagecache-base4:1.23
	netbsd-5-1-2-RELEASE:1.23
	netbsd-5-1-1-RELEASE:1.23
	yamt-pagecache-base3:1.23
	yamt-pagecache-base2:1.23
	yamt-pagecache:1.23.0.24
	yamt-pagecache-base:1.23
	bouyer-quota2-nbase:1.23
	bouyer-quota2:1.23.0.22
	bouyer-quota2-base:1.23
	matt-nb5-pq3:1.23.0.20
	matt-nb5-pq3-base:1.23
	netbsd-5-1:1.23.0.18
	netbsd-5-1-RELEASE:1.23
	netbsd-5-1-RC4:1.23
	netbsd-5-1-RC3:1.23
	netbsd-5-1-RC2:1.23
	netbsd-5-1-RC1:1.23
	netbsd-5-0-2-RELEASE:1.23
	netbsd-5-0-1-RELEASE:1.23
	jym-xensuspend-nbase:1.23
	netbsd-5-0:1.23.0.16
	netbsd-5-0-RELEASE:1.23
	netbsd-5-0-RC4:1.23
	netbsd-5-0-RC3:1.23
	netbsd-5-0-RC2:1.23
	jym-xensuspend:1.23.0.14
	jym-xensuspend-base:1.23
	netbsd-5-0-RC1:1.23
	netbsd-5:1.23.0.12
	netbsd-5-base:1.23
	mjf-devfs2:1.23.0.10
	mjf-devfs2-base:1.23
	yamt-pf42-base4:1.23
	yamt-pf42-base3:1.23
	hpcarm-cleanup-nbase:1.23
	yamt-pf42-base2:1.23
	yamt-pf42:1.23.0.8
	yamt-pf42-base:1.23
	keiichi-mipv6-nbase:1.23
	keiichi-mipv6:1.23.0.6
	keiichi-mipv6-base:1.23
	cube-autoconf:1.23.0.4
	cube-autoconf-base:1.23
	hpcarm-cleanup:1.23.0.2
	hpcarm-cleanup-base:1.23
	netbsd-1-5-PATCH003:1.22
	netbsd-1-5-PATCH002:1.22
	netbsd-1-5-PATCH001:1.22
	netbsd-1-5-RELEASE:1.22
	netbsd-1-5-BETA2:1.22
	netbsd-1-5-BETA:1.22
	netbsd-1-4-PATCH003:1.19.2.1
	netbsd-1-5-ALPHA2:1.22
	netbsd-1-5:1.22.0.8
	netbsd-1-5-base:1.22
	minoura-xpg4dl-base:1.22
	minoura-xpg4dl:1.22.0.6
	netbsd-1-4-PATCH002:1.19.2.1
	wrstuden-devbsize-19991221:1.22
	wrstuden-devbsize:1.22.0.4
	wrstuden-devbsize-base:1.22
	comdex-fall-1999:1.22.0.2
	comdex-fall-1999-base:1.22
	am_utils_6_0_1s11:1.1.1.5
	netbsd-1-4-PATCH001:1.19
	netbsd-1-4-RELEASE:1.19
	netbsd-1-4:1.19.0.2
	netbsd-1-4-base:1.19
	am_utils_6_0_1s3:1.1.1.4
	netbsd-1-3-PATCH003:1.9
	netbsd-1-3-PATCH003-CANDIDATE2:1.9
	netbsd-1-3-PATCH003-CANDIDATE1:1.9
	netbsd-1-3-PATCH003-CANDIDATE0:1.9
	am_utils_6_0a16:1.1.1.3
	netbsd-1-3-PATCH002:1.9
	netbsd-1-3-PATCH001:1.9
	netbsd-1-3-RELEASE:1.9
	netbsd-1-3-BETA:1.9
	netbsd-1-3:1.9.0.2
	netbsd-1-3-base:1.9
	am_utils_6_0a12:1.1.1.2
	am_utils_6_0a8:1.1.1.1
	EZK:1.1.1;
locks; strict;
comment	@# @;


1.23
date	2000.11.20.00.24.42;	author wiz;	state dead;
branches;
next	1.22;

1.22
date	99.09.04.23.08.44;	author christos;	state Exp;
branches;
next	1.21;

1.21
date	99.09.04.22.38.15;	author christos;	state Exp;
branches;
next	1.20;

1.20
date	99.07.22.01.14.22;	author hubertf;	state Exp;
branches;
next	1.19;

1.19
date	99.02.01.19.05.09;	author christos;	state Exp;
branches
	1.19.2.1;
next	1.18;

1.18
date	99.01.11.15.57.49;	author bouyer;	state Exp;
branches;
next	1.17;

1.17
date	98.09.27.16.30.31;	author christos;	state Exp;
branches;
next	1.16;

1.16
date	98.08.08.22.33.27;	author christos;	state Exp;
branches;
next	1.15;

1.15
date	98.04.12.21.38.58;	author tv;	state Exp;
branches;
next	1.14;

1.14
date	98.04.12.21.09.35;	author tv;	state Exp;
branches;
next	1.13;

1.13
date	98.04.09.00.32.39;	author tv;	state Exp;
branches;
next	1.12;

1.12
date	98.04.07.19.33.09;	author tv;	state Exp;
branches;
next	1.11;

1.11
date	97.10.26.00.24.44;	author christos;	state Exp;
branches;
next	1.10;

1.10
date	97.10.25.06.57.53;	author lukem;	state Exp;
branches;
next	1.9;

1.9
date	97.10.18.06.42.30;	author lukem;	state Exp;
branches;
next	1.8;

1.8
date	97.10.16.05.18.42;	author lukem;	state Exp;
branches;
next	1.7;

1.7
date	97.09.26.16.59.44;	author christos;	state Exp;
branches;
next	1.6;

1.6
date	97.09.23.08.40.57;	author veego;	state Exp;
branches;
next	1.5;

1.5
date	97.09.22.22.09.55;	author christos;	state Exp;
branches;
next	1.4;

1.4
date	97.09.07.21.56.12;	author veego;	state Exp;
branches;
next	1.3;

1.3
date	97.08.05.12.02.49;	author christos;	state Exp;
branches;
next	1.2;

1.2
date	97.07.28.00.46.55;	author christos;	state Exp;
branches;
next	1.1;

1.1
date	97.07.24.21.20.06;	author christos;	state Exp;
branches
	1.1.1.1;
next	;

1.19.2.1
date	99.09.21.04.54.22;	author cgd;	state Exp;
branches;
next	;

1.1.1.1
date	97.07.24.21.20.06;	author christos;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	97.09.26.16.05.54;	author christos;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	98.08.08.22.05.23;	author christos;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	99.02.01.18.45.41;	author christos;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	99.09.04.22.24.55;	author christos;	state Exp;
branches;
next	;


desc
@@


1.23
log
@Replace old build structure with new reach-over one.
@
text
@#!/usr/pkg/bin/perl
#
#	$NetBSD: amd2netbsd,v 1.22 1999/09/04 23:08:44 christos Exp $
#
#  Perl script to convert a standard distribution directory for am-utils into
#	a NetBSD source tree.
#
#  This is done as a script so that as each distribution is released,
#	only changes from the previous one need to be dealt with as
#	modifications to this script and related files.  This should
#	reduce the cost of updating from a new release of xntp by an
#	order of magnitude (or more?)
#
#  This script requires two environment variables set:
#	SRCDIR - am-utils source directory
#	TARGETDIR - name of the high level directory to make
#
#  Written by Christos Zoulas July 17, 1997 for am-utils-6.0a13
#

$version = "6.0.1s11";

# definitions ...

@@subdirs = ("usr.sbin/amd/libamu", "usr.sbin/amd/include",
	    "usr.sbin/amd/amd", "usr.sbin/amd/hlfsd",
	    "usr.sbin/amd/amq", "usr.sbin/amd/fsinfo",
	    "usr.sbin/amd/fixmount", "usr.sbin/amd/mk-amd-map",
	    "usr.sbin/amd/pawd", "usr.sbin/amd/wire-test",
	    "usr.sbin/amd/doc");


@@includef = ("am_compat.h", "am_defs.h", "am_utils.h", "amq_defs.h",
	     "am_xdr_func.h");


@@libamuf = ("hasmntopt.c", "misc_rpc.c", "mount_fs.c", "mtab.c",
	   "nfs_prot_xdr.c", "util.c", "wire.c", "xdr_func.c", 
	   "xutil.c");

@@libamudf = ("amu.h");

@@libamuef = ();

@@libamuef = ("umount_fs.c", "tranputil.c", "mtabutil.c");


@@amdf = ("am_ops.c", "amd.c",
	 "amfs_auto.c", "amfs_direct.c", "amfs_error.c", "amfs_host.c",
	 "amfs_inherit.c", "amfs_link.c", "amfs_linkx.c", "amfs_nfsl.c",
	 "amfs_nfsx.c", "amfs_program.c", "amfs_root.c", "amfs_toplvl.c",
	 "amfs_union.c",
	 "amq_subr.c", "amq_svc.c",
	 "autil.c", "clock.c", "conf.c", "get_args.c",
	 "info_hesiod.c", "info_file.c", "info_ndbm.c",
	 "info_nis.c", "info_passwd.c", "info_union.c",
	 "map.c", "mapc.c", "mntfs.c",
	 "nfs_prot_svc.c", "nfs_start.c", "nfs_subr.c",
	 "ops_autofs.c", "ops_cdfs.c",
	 "ops_mfs.c", "ops_nfs.c", "ops_nfs3.c",
	 "ops_nullfs.c", "ops_pcfs.c", "ops_tfs.c", "ops_tmpfs.c",
	 "ops_ufs.c", "ops_umapfs.c", "ops_unionfs.c",
	 "opts.c", "restart.c", "rpc_fwd.c", "sched.c",
	 "srvr_amfs_auto.c", "srvr_nfs.c");

@@amddf = ("conf_tok.l", "conf_parse.y", "amd.8");

@@amdef = ("conf_tok.c", "conf_parse.c");


@@amqf = ("amq.c", "amq_clnt.c", "amq_xdr.c");

@@amqdf = ("amq.h", "amq.8");

@@amqef = ();


@@pawdf = ("pawd.c");

@@pawddf = ("pawd.1");

@@pawdef = ();


@@fixmountf = ("fixmount.c");

@@fixmountdf = ("fixmount.8");

@@fixmountef = ("check_mount.c");


@@fsinfof = ("fsi_analyze.c", "fsi_dict.c",
	    "fsi_util.c", "fsinfo.c", "wr_atab.c", "wr_bparam.c",
	    "wr_dumpset.c", "wr_exportfs.c", "wr_fstab.c");


@@fsinfodf = ("fsi_data.h", "fsi_gram.y", "fsi_lex.l", "fsinfo.h", "fsinfo.8");

@@fsinfoef = ("fsi_lex.c", "fsi_gram.c");


@@hlfsdf = ("hlfsd.c", "homedir.c", "nfs_prot_svc.c", "stubs.c");

@@hlfsddf = ("hlfsd.h", "hlfsd.8");

@@hlfsdef = ();

@@mkamdmapf = ("mk-amd-map.c");

@@mkamdmapdf = ("mk-amd-map.8");

@@mkamdmapef = ();

@@wiretestf = ("wire-test.c");

@@wiretestdf = ("wire-test.8");

@@wiretestef = ();


@@docf = ("am-utils.texi", "hlfsd.ps", "version.texi", "am-utils.ps", 
	 "am-utils.info", "am-utils.info-1", "am-utils.info-2",
	 "am-utils.info-3", "am-utils.info-4", "am-utils.info-5",
	 "am-utils.info-6", "am-utils.info-7");

@@docdf = ();

@@docef = ();

#
# Utility Subroutines
#

sub makedir {
    system("mkdir -p @@_");
}

# &fixrcs (fromfile, tofile);
sub fixrcs
{
    my ($f, $t) = @@_;
    my @@keywords = ("Author", "Date", "Header", "Id", "Locker", "Log",
		    "Name", "RCSfile", "Revision", "Source", "State");
    my $state = 0;
    my $hdr = 0;

    open(IFILE, "<$f") || die "Cannot open $f";
    open(OFILE, ">$t") || die "Cannot create $t";

    if ($t =~ /.*\.[0-9]/) {
	print OFILE '.\\" $', 'NetBSD',  '$', "\n", '.\\"', "\n";
    }
    elsif ($t =~ /.*\.[ch]/) {
	print OFILE "/*\t", '$', 'NetBSD', '$', "\t*/\n\n";
    }
    elsif ($t =~ /.*\.[yl]/) {
	$hdr = 1;
    }
    elsif ($t =~ /am-utils\.texi/) {
	$hdr = 2;
    }
    elsif ($t =~ /.*\.texi/) {
	print OFILE '@@c', "\t", '$', 'NetBSD', '$', "\n";
    }
    elsif ($t =~ /.*\.tex$/) {
	print OFILE "%\t", '$', 'NetBSD', '$', "\n";
    }
    elsif ($t =~ /.*\.ps/) {
	$hdr = 3;
    }
    else {
	print OFILE '$', 'NetBSD', '$', "\n";
    }
    while (<IFILE>) {
	if ($hdr == 1) {
	    if (/%{/) {
		print OFILE "%{\n/*\t", '$', 'NetBSD', '$', "\t*/\n\n";
		$hdr = 0;
		next;
	    }
	}
	elsif ($hdr == 2) {
	    if (/\\input[ \t]+texinfo/) {
		print OFILE $_;
		print OFILE '@@c', "\t", '$', 'NetBSD', '$', "\n";
		$hdr = 0;
		next;
	    }
	}
	elsif ($hdr == 3) {
	    # First line is magic.  Insert Id between lines 1 and 2.
	    print OFILE $_;
	    print OFILE "%\t", '$', 'NetBSD', '$', "\n";
	    $hdr = 0;
	    next;
	}
	if ($state == 2) {
	    if (/#endif/) {
		print OFILE "#else\n__RCSID(", '"$', 'NetBSD', '$"',
		    ");\n#endif\n";
		$state = 0;
	    }
	}
	if ($state == 1) {
	    print OFILE "#if 0\n";
	    $state = 2;
	}
	if (/#ifndef lint/) {
	    print OFILE "#include <sys/cdefs.h>\n";
	    $state = 1;
	}
	foreach $key (@@keywords) {
	    s/\$$key\$/$key/g;
	    s/\$$key:(.*)\$/$key:$1/g;
	}
	print OFILE $_;
    }
    close(IFILE) || die "closing input file";
    close(OFILE) || die "closing output file";
}

# &copyfiles (fromdir, todir, list of files);
sub copyfiles {
    local ($fdir, $tdir, @@list) = @@_;
    local ($f);

    foreach $f (@@list) {
	print "  $fdir/$f --> $tdir/$f\n";
	&fixrcs("$fdir/$f", "$tdir/$f");
    }
}

# &copyfile (fromfile, tofile);
sub copyfile {
    local ($f, $t) = @@_;

    print "  $f --> $t\n";
    &fixrcs("$f", "$t");
}

sub uniq {
    local (@@inlist) = @@_;
    local (@@outlist);

    @@outlist = ($inlist[0]);
    for ( $i=1; $i < @@inlist; $i++ ) {
	if ($inlist[$i] ne $inlist[$i-1]) {
	    push (@@outlist, $inlist[$i]);
	}
    }

    @@outlist;
}

sub dumpsrcs {
    local (@@names) = @@_;
    local ($count);

    print ODATA "SRCS=\t";
    $count = 0;
    while ($f = pop(@@names)) {
        print ODATA "$f ";
	if ($count == 5 && @@names > 0) {
	    print ODATA "\\\n";
	    $count = 0;
	} else {
	    $count += 1;
	}
    }
    if ($count != 0) {
	print ODATA "\n";
    }
}

#
# Main progarm.
# 

$srcdir = $ENV{'SRCDIR'};
$targetdir = $ENV{'TARGETDIR'};
$incdirs = "-I. -I$srcdir/config -I$srcdir";

if (!$srcdir | !targetdir) {
    die "You must define the environment variables SRCDIR and TARGETDIR.\n"
} 
print "Making the NetBSD directory tree.\n";
foreach $f (@@subdirs) { 
    print "   -->$f\n";
    makedir ("$targetdir/$f");
}

print "Populating the usr.sbin/amd directory.\n";
&copyfiles ("$srcdir", "$targetdir/usr.sbin/amd", "COPYING");
&copyfiles ("$srcdir", "$targetdir/usr.sbin/amd", "AUTHORS");

print "Populating the usr.sbin/amd/libamu directory.\n";
&copyfiles ("$srcdir/libamu", "$targetdir/usr.sbin/amd/libamu", @@libamuf,
	    @@libamudf);
&copyfile("$srcdir/conf/umount/umount_bsd44.c",
	  "$targetdir/usr.sbin/amd/libamu/umount_fs.c");
&copyfile("$srcdir/conf/transp/transp_sockets.c",
	  "$targetdir/usr.sbin/amd/libamu/tranputil.c");
&copyfile("$srcdir/conf/mtab/mtab_bsd.c",
	  "$targetdir/usr.sbin/amd/libamu/mtabutil.c");

print "Populating the usr.sbin/amd/include directory.\n";
&copyfiles ("$srcdir/include", "$targetdir/usr.sbin/amd/include", @@includef);
&copyfile("$srcdir/conf/nfs_prot/nfs_prot_netbsd1_3.h",
	  "$targetdir/usr.sbin/amd/include/amu_nfs_prot.h");
&copyfile("$srcdir/amd/amd.h",
	  "$targetdir/usr.sbin/amd/include/amd.h");

print "Populating the usr.sbin/amd/amd directory.\n";
&copyfiles ("$srcdir/amd", "$targetdir/usr.sbin/amd/amd", @@amdf, @@amddf);

print "Populating the usr.sbin/amd/amq directory.\n";
&copyfiles ("$srcdir/amq", "$targetdir/usr.sbin/amd/amq", @@amqf, @@amqdf);

print "Populating the usr.sbin/amd/pawd directory.\n";
&copyfiles ("$srcdir/amq", "$targetdir/usr.sbin/amd/pawd", @@pawdf, @@pawddf);

print "Populating the usr.sbin/amd/fixmount directory.\n";
&copyfiles ("$srcdir/fixmount", "$targetdir/usr.sbin/amd/fixmount", @@fixmountf, 
	    @@fixmountdf);
&copyfile("$srcdir/conf/checkmount/checkmount_bsd44.c",
	  "$targetdir/usr.sbin/amd/fixmount/check_mount.c");

print "Populating the usr.sbin/amd/doc directory.\n";
&copyfiles ("$srcdir/doc", "$targetdir/usr.sbin/amd/doc",
	    @@docf, @@docdf);

print "Populating the usr.sbin/amd/fsinfo directory.\n";
&copyfiles ("$srcdir/fsinfo", "$targetdir/usr.sbin/amd/fsinfo", @@fsinfof,
	    @@fsinfodf);

print "Populating the usr.sbin/amd/hlfsd directory.\n";
&copyfiles ("$srcdir/hlfsd", "$targetdir/usr.sbin/amd/hlfsd", @@hlfsdf,
	    @@hlfsddf);

print "Populating the usr.sbin/amd/mk-amd-map directory.\n";
&copyfiles ("$srcdir/mk-amd-map", "$targetdir/usr.sbin/amd/mk-amd-map",
	    @@mkamdmapf, @@mkamdmapdf);

print "Populating the usr.sbin/amd/wire-test directory.\n";
&copyfiles ("$srcdir/wire-test", "$targetdir/usr.sbin/amd/wire-test",
	    @@wiretestf, @@wiretestdf);

#
# Build makefiles
#

$first = "True";
while ($line = <DATA>) {
    chop ($line);
    if (substr($line,0,2) eq "%%") {
	@@cmd = split (/ /,$line);
	if ($cmd[1] eq "file") {
	    print "Building $targetdir/$cmd[2]\n";
	    if ($first eq "") {
		close (ODATA);
	    } else {
		$first = "";
	    }
	    open (ODATA, ">$targetdir/$cmd[2]") ||
		die "Could not create $targetdir/$cmd[2]";
	} elsif ($cmd[1] eq "srcs") {
	    print "  Defining SRCS for $cmd[2]\n";
	    if ($first) {
		die "Data file must start with a %% file!";
	    }
	    if ($cmd[2] eq "amd") {
		&dumpsrcs (@@amdf, @@amdef);
	    } elsif ($cmd[2] eq "amq") {
		&dumpsrcs (@@amqf, @@amqef);
	    } elsif ($cmd[2] eq "pawd") {
		&dumpsrcs (@@pawdf, @@pawdef);
	    } elsif ($cmd[2] eq "hlfsd") {
		&dumpsrcs (@@hlfsdf, @@hlfsdef);
	    } elsif ($cmd[2] eq "fixmount") {
		&dumpsrcs (@@fixmountf, @@fixmountef);
	    } elsif ($cmd[2] eq "fsinfo") {
		&dumpsrcs (@@fsinfof, @@fsinfoef);
	    } elsif ($cmd[2] eq "libamu") {
		&dumpsrcs (@@libamuf, @@libamuef);
	    } elsif ($cmd[2] eq "mk-amd-map") {
		&dumpsrcs (@@mkamdmapf, @@mkamdmapef);
	    } elsif ($cmd[2] eq "wire-test") {
		&dumpsrcs (@@wiretestf, @@wiretestef);
	    } elsif ($cmd[2] eq "doc") {
		&dumpsrcs (@@docf, @@docef);
	    } else {
		die "Unknown SRCS command";
	    }
	} elsif ($cmd[1] eq "NetBSD") {
	    if ($first) {
		die "Data section must start with a %% file!";
	    }
	    print ODATA "$cmd[2]	\$"."NetBSD".": \$\n";
	}
    } else {
	if ($first) {
	    die "Data file must start with a %% file!";
	}
	print ODATA "$line\n";
    }
}    
close (ODATA);

#
# Sed transformations of files
#

foreach $n (keys(%sedlist)) {
    print "Modifying $n\n";
    system ("cd $targetdir; sed $sedlist{$n} $n > tmp;  mv -f tmp $n");
}

#
# end of the script
#

# what follows is the data for makefiles and other special files
# that need to be created.

__END__
%% file usr.sbin/amd/Makefile
%% NetBSD #
SUBDIR= libamu amd amq hlfsd fixmount fsinfo mk-amd-map pawd wire-test doc

all-amd all-amq all-hlfsd all-fixmount all-fsinfo all-mk-amd-map all-pawd \
    all-wire-test: all-libamu

.include <bsd.subdir.mk>
%% file usr.sbin/amd/Makefile.inc
%% NetBSD #

.include <bsd.own.mk>

WARNS ?= 1
LIBAMU != cd ${.CURDIR}/../libamu;\
    printf "xxx: .MAKE\n\t@@echo \$${.OBJDIR}\n" | ${MAKE} -s -f-
CPPFLAGS += -I${.CURDIR}/../include -I${.CURDIR} -I${LIBAMU} -I. -DHAVE_CONFIG_H
CPPFLAGS += -DDEBUG
.if !defined(LIB) || empty(LIB)
LDADD += -L${LIBAMU} -lamu -lrpcsvc -ll
.if defined(NOPIC)
DPADD += ${LIBAMU}/libamu.a
.else
DPADD += ${LIBAMU}/libamu_pic.a
.endif
DPADD += ${LIBRPCSVC} ${LIBL}
.endif

.if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc"
.endif
%% file usr.sbin/amd/amd/Makefile
%% NetBSD #

PROG= amd
%% srcs amd
MAN+= amd.8
YHEADER=1
CLEANFILES+=conf_tok.c conf_parse.c conf_parse.h

conf_tok.o: conf_parse.h

.include <bsd.prog.mk>
%% file usr.sbin/amd/amq/Makefile
%% NetBSD #

PROG= amq
%% srcs amq
MAN+= amq.8

.include <bsd.prog.mk>
%% file usr.sbin/amd/pawd/Makefile
%% NetBSD #

PROG= pawd
%% srcs pawd
SRCS+= amq_clnt.c amq_xdr.c
MAN+= pawd.1
CFLAGS+=-I${.CURDIR}/../amq
.PATH.c: ${.CURDIR}/../amq

.include <bsd.prog.mk>
%% file usr.sbin/amd/hlfsd/Makefile
%% NetBSD #

PROG= hlfsd
%% srcs hlfsd
MAN+= hlfsd.8

.include <bsd.prog.mk>
%% file usr.sbin/amd/fixmount/Makefile
%% NetBSD #

PROG= fixmount
%% srcs fixmount
MAN+= fixmount.8

.include <bsd.prog.mk>
%% file usr.sbin/amd/mk-amd-map/Makefile
%% NetBSD #

PROG= mk-amd-map
%% srcs mk-amd-map
MAN+= mk-amd-map.8

.include <bsd.prog.mk>
%% file usr.sbin/amd/wire-test/Makefile
%% NetBSD #

PROG= wire-test
%% srcs wire-test
MAN+= wire-test.8

.include <bsd.prog.mk>
%% file usr.sbin/amd/fsinfo/Makefile
%% NetBSD #

PROG= fsinfo
%% srcs fsinfo
MAN+= fsinfo.8
YHEADER=1
CLEANFILES+=fsi_lex.c fsi_gram.c fsi_gram.h

fsi_lex.o: fsi_gram.h

.include <bsd.prog.mk>
%% file usr.sbin/amd/libamu/Makefile
%% NetBSD #

LIB= amu
%% srcs libamu

NOPROFILE=
 
config_local.h: mkconf
	@@rm -f ${.TARGET}
	sh ${.ALLSRC} > ${.TARGET}

CLEANFILES+=config_local.h

install: __libinstall
 
.include <bsd.lib.mk>
 
.if !defined(NOPIC)
__libinstall: ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
.else
__libinstall:
.endif

LDADD=
DPADD=
${OBJS}: config_local.h
%% file usr.sbin/amd/libamu/shlib_version
major=1
minor=0
%% file usr.sbin/amd/libamu/mkconf
%% NetBSD #
# mkconf
# Generate local configuration parameters for amd
#
cat << __EOF

/* Automatically generated file, do not edit! */
 
/* Define name and version of host machine (eg. solaris2.5.1) */
#define HOST_OS "`uname -s | tr '[A-Z]' '[a-z]'``uname -r`"

/* Define only name of host machine OS (eg. solaris2) */
#define HOST_OS_NAME "`uname -s | tr '[A-Z]' '[a-z]'``uname -r | cut -d. -f 1`"

/* Define only version of host machine (eg. 2.5.1) */
#define HOST_OS_VERSION "`uname -r`"

/* Define the header version of (linux) hosts (eg. 2.2.10) */
#define HOST_HEADER_VERSION "`uname -r`"

/* Define name of host */
#define HOST_NAME "`hostname`"

/* Define user name */
#define USER_NAME "`whoami`"

/* Define configuration date */
#define CONFIG_DATE "`date`"
__EOF
%% file usr.sbin/amd/doc/Makefile
%% NetBSD #

TEXINFO = am-utils.info
INFOFLAGS = -I${.CURDIR}

.include <bsd.info.mk>
%% file usr.sbin/amd/include/config.h
/* config.h.  Generated automatically by configure.  */
/* aux/config.h.in.  Generated automatically from ./aux/configure.in by autoheader.  */
/*
 * Start of am-utils-6.x config.h file.
 * Erez Zadok <ezk@@cs.columbia.edu>
 *
 * DO NOT EDIT BY HAND.
 * Note: acconfig.h generates config.h.in, which generates config.h.
 */

#ifndef _CONFIG_H
#define _CONFIG_H


/*
 * Check for types of amd filesystems available.
 */

/* Define if have automount filesystem */
#define HAVE_AM_FS_AUTO 1

/* Define if have direct automount filesystem */
#define HAVE_AM_FS_DIRECT 1

/* Define if have "top-level" filesystem */
#define HAVE_AM_FS_TOPLVL 1

/* Define if have error filesystem */
#define HAVE_AM_FS_ERROR 1

/* Define if have inheritance filesystem */
#define HAVE_AM_FS_INHERIT 1

/* Define if have program filesystem */
#define HAVE_AM_FS_PROGRAM 1

/* Define if have symbolic-link filesystem */
#define HAVE_AM_FS_LINK 1

/* Define if have symlink with existence check filesystem */
#define HAVE_AM_FS_LINKX 1

/* Define if have NFS host-tree filesystem */
#define HAVE_AM_FS_HOST 1

/* Define if have nfsl (NFS with local link check) filesystem */
#define HAVE_AM_FS_NFSL 1

/* Define if have multi-NFS filesystem */
#define HAVE_AM_FS_NFSX 1

/* Define if have union filesystem */
#define HAVE_AM_FS_UNION 1



/*
 * Check for types of maps available.
 */

/* Define if have file maps (everyone should have it!) */
#define HAVE_MAP_FILE 1

/* Define if have NIS maps */
#define HAVE_MAP_NIS 1

/* Define if have NIS+ maps */
/* #undef HAVE_MAP_NISPLUS */

/* Define if have DBM maps */
/* #undef HAVE_MAP_DBM */

/* Define if have NDBM maps */
#define HAVE_MAP_NDBM 1

/* Define if have HESIOD maps */
#define HAVE_MAP_HESIOD 1

/* Define if have LDAP maps */
/* #undef HAVE_MAP_LDAP */

/* Define if have PASSWD maps */
#define HAVE_MAP_PASSWD 1

/* Define if have UNION maps */
#define HAVE_MAP_UNION 1

/*
 * Check for filesystem types available.
 */

/* Define if have UFS filesystem */
#define HAVE_FS_UFS 1

/* Define if have XFS filesystem (irix) */
/* #undef HAVE_FS_XFS */

/* Define if have EFS filesystem (irix) */
/* #undef HAVE_FS_EFS */

/* Define if have NFS filesystem */
#define HAVE_FS_NFS 1

/* Define if have NFS3 filesystem */
#define HAVE_FS_NFS3 1

/* Define if have PCFS filesystem */
#define HAVE_FS_PCFS 1

/* Define if have LOFS filesystem */
/* #undef HAVE_FS_LOFS */

/* Define if have HSFS filesystem */
/* #undef HAVE_FS_HSFS */

/* Define if have CDFS filesystem */
#define HAVE_FS_CDFS 1

/* Define if have TFS filesystem */
/* #undef HAVE_FS_TFS */

/* Define if have TMPFS filesystem */
/* #undef HAVE_FS_TMPFS */

/* Define if have MFS filesystem */
#define HAVE_FS_MFS 1

/* Define if have CFS (crypto) filesystem */
/* #undef HAVE_FS_CFS */

/* Define if have AUTOFS filesystem */
/* #undef HAVE_FS_AUTOFS */

/* Define if have CACHEFS filesystem */
/* #undef HAVE_FS_CACHEFS */

/* Define if have NULLFS (loopback on bsd44) filesystem */
#define HAVE_FS_NULLFS 1

/* Define if have UNIONFS filesystem */
#define HAVE_FS_UNIONFS 1

/* Define if have UMAPFS (uid/gid mapping) filesystem */
#define HAVE_FS_UMAPFS 1


/*
 * Check for the type of the mount(2) system name for a filesystem.
 * Normally this is "nfs" (e.g. Solaris) or an integer (older systems)
 */

/* Mount(2) type/name for UFS filesystem */
#define MOUNT_TYPE_UFS MOUNT_UFS

/* Mount(2) type/name for XFS filesystem (irix) */
/* #undef MOUNT_TYPE_XFS */

/* Mount(2) type/name for EFS filesystem (irix) */
/* #undef MOUNT_TYPE_EFS */

/* Mount(2) type/name for NFS filesystem */
#define MOUNT_TYPE_NFS MOUNT_NFS

/* Mount(2) type/name for NFS3 filesystem */
#define MOUNT_TYPE_NFS3 MOUNT_NFS3

/* Mount(2) type/name for PCFS filesystem */
/* XXX: conf/trap/trap_hpux.h may override this definition for HPUX 9.0 */
#define MOUNT_TYPE_PCFS MOUNT_MSDOS

/* Mount(2) type/name for LOFS filesystem */
/* #undef MOUNT_TYPE_LOFS */

/* Mount(2) type/name for CDFS filesystem */
#define MOUNT_TYPE_CDFS MOUNT_CD9660

/* Mount(2) type/name for TFS filesystem */
/* #undef MOUNT_TYPE_TFS */

/* Mount(2) type/name for TMPFS filesystem */
/* #undef MOUNT_TYPE_TMPFS */

/* Mount(2) type/name for MFS filesystem */
#define MOUNT_TYPE_MFS MOUNT_MFS

/* Mount(2) type/name for CFS (crypto) filesystem */
/* #undef MOUNT_TYPE_CFS */

/* Mount(2) type/name for AUTOFS filesystem */
/* #undef MOUNT_TYPE_AUTOFS */

/* Mount(2) type/name for CACHEFS filesystem */
/* #undef MOUNT_TYPE_CACHEFS */

/* Mount(2) type/name for IGNORE filesystem (not real just ignore for df) */
/* #undef MOUNT_TYPE_IGNORE */

/* Mount(2) type/name for NULLFS (loopback on bsd44) filesystem */
#define MOUNT_TYPE_NULLFS MOUNT_NULL

/* Mount(2) type/name for UNIONFS filesystem */
#define MOUNT_TYPE_UNIONFS MOUNT_UNION

/* Mount(2) type/name for UMAPFS (uid/gid mapping) filesystem */
#define MOUNT_TYPE_UMAPFS MOUNT_UMAP


/*
 * Check for the string name for the mount-table of a filesystem.
 */

/* Mount-table entry name for UFS filesystem */
#define MNTTAB_TYPE_UFS "ufs"

/* Mount-table entry name for XFS filesystem (irix) */
/* #undef MNTTAB_TYPE_XFS */

/* Mount-table entry name for EFS filesystem (irix) */
/* #undef MNTTAB_TYPE_EFS */

/* Mount-table entry name for NFS filesystem */
#define MNTTAB_TYPE_NFS "nfs"

/* Mount-table entry name for NFS3 filesystem */
#define MNTTAB_TYPE_NFS3 "nfs3"

/* Mount-table entry name for PCFS filesystem */
#define MNTTAB_TYPE_PCFS "pcfs"

/* Mount-table entry name for LOFS filesystem */
/* #undef MNTTAB_TYPE_LOFS */

/* Mount-table entry name for CDFS filesystem */
#define MNTTAB_TYPE_CDFS "cdfs"

/* Mount-table entry name for TFS filesystem */
/* #undef MNTTAB_TYPE_TFS */

/* Mount-table entry name for TMPFS filesystem */
/* #undef MNTTAB_TYPE_TMPFS */

/* Mount-table entry name for MFS filesystem */
#define MNTTAB_TYPE_MFS "mfs"

/* Mount-table entry name for CFS (crypto) filesystem */
/* #undef MNTTAB_TYPE_CFS */

/* Mount-table entry name for AUTOFS filesystem */
/* #undef MNTTAB_TYPE_AUTOFS */

/* Mount-table entry name for CACHEFS filesystem */
/* #undef MNTTAB_TYPE_CACHEFS */

/* Mount-table entry name for NULLFS (loopback on bsd44) filesystem */
#define MNTTAB_TYPE_NULLFS "nullfs"

/* Mount-table entry name for UNIONFS filesystem */
#define MNTTAB_TYPE_UNIONFS "unionfs"

/* Mount-table entry name for UMAPFS (uid/gid mapping) filesystem */
#define MNTTAB_TYPE_UMAPFS "umapfs"

/*
 * Name of mount table file name.
 */
/* #undef MNTTAB_FILE_NAME */

/* Name of mount type to hide amd mount from df(1) */
#define HIDE_MOUNT_TYPE "nfs"

/*
 * Names of various mount table option strings.
 */

/* Mount Table option string: Read only */
/* #undef MNTTAB_OPT_RO */

/* Mount Table option string: Read/write */
/* #undef MNTTAB_OPT_RW */

/* Mount Table option string: Read/write with quotas */
/* #undef MNTTAB_OPT_RQ */

/* Mount Table option string: Check quotas */
/* #undef MNTTAB_OPT_QUOTA */

/* Mount Table option string: Don't check quotas */
/* #undef MNTTAB_OPT_NOQUOTA */

/* Mount Table option string: action to taken on error */
/* #undef MNTTAB_OPT_ONERROR */

/* Mount Table option string: min. time between inconsistencies */
/* #undef MNTTAB_OPT_TOOSOON */

/* Mount Table option string: Soft mount */
/* #undef MNTTAB_OPT_SOFT */

/* Mount Table option string: spongy mount */
/* #undef MNTTAB_OPT_SPONGY */

/* Mount Table option string: Hard mount */
/* #undef MNTTAB_OPT_HARD */

/* Mount Table option string: Set uid allowed */
/* #undef MNTTAB_OPT_SUID */

/* Mount Table option string: Set uid not allowed */
/* #undef MNTTAB_OPT_NOSUID */

/* Mount Table option string: SysV-compatible gid on create */
/* #undef MNTTAB_OPT_GRPID */

/* Mount Table option string: Change mount options */
/* #undef MNTTAB_OPT_REMOUNT */

/* Mount Table option string: Disallow mounts on subdirs */
/* #undef MNTTAB_OPT_NOSUB */

/* Mount Table option string: Do multi-component lookup */
/* #undef MNTTAB_OPT_MULTI */

/* Mount Table option string: Allow NFS ops to be interrupted */
/* #undef MNTTAB_OPT_INTR */

/* Mount Table option string: Don't allow interrupted ops */
/* #undef MNTTAB_OPT_NOINTR */

/* Mount Table option string: NFS server IP port number */
/* #undef MNTTAB_OPT_PORT */

/* Mount Table option string: Secure (AUTH_DES) mounting */
/* #undef MNTTAB_OPT_SECURE */

/* Mount Table option string: Secure (AUTH_Kerb) mounting */
/* #undef MNTTAB_OPT_KERB */

/* Mount Table option string: Max NFS read size (bytes) */
/* #undef MNTTAB_OPT_RSIZE */

/* Mount Table option string: Max NFS write size (bytes) */
/* #undef MNTTAB_OPT_WSIZE */

/* Mount Table option string: NFS timeout (1/10 sec) */
/* #undef MNTTAB_OPT_TIMEO */

/* Mount Table option string: Max retransmissions (soft mnts) */
/* #undef MNTTAB_OPT_RETRANS */

/* Mount Table option string: Attr cache timeout (sec) */
/* #undef MNTTAB_OPT_ACTIMEO */

/* Mount Table option string: Min attr cache timeout (files) */
/* #undef MNTTAB_OPT_ACREGMIN */

/* Mount Table option string: Max attr cache timeout (files) */
/* #undef MNTTAB_OPT_ACREGMAX */

/* Mount Table option string: Min attr cache timeout (dirs) */
/* #undef MNTTAB_OPT_ACDIRMIN */

/* Mount Table option string: Max attr cache timeout (dirs) */
/* #undef MNTTAB_OPT_ACDIRMAX */

/* Mount Table option string: Don't cache attributes at all */
/* #undef MNTTAB_OPT_NOAC */

/* Mount Table option string: No close-to-open consistency */
/* #undef MNTTAB_OPT_NOCTO */

/* Mount Table option string: Do mount retries in background */
/* #undef MNTTAB_OPT_BG */

/* Mount Table option string: Do mount retries in foreground */
/* #undef MNTTAB_OPT_FG */

/* Mount Table option string: Number of mount retries */
/* #undef MNTTAB_OPT_RETRY */

/* Mount Table option string: Device id of mounted fs */
/* #undef MNTTAB_OPT_DEV */

/* Mount Table option string: Filesystem id of mounted fs */
/* #undef MNTTAB_OPT_FSID */

/* Mount Table option string: Get static pathconf for mount */
/* #undef MNTTAB_OPT_POSIX */

/* Mount Table option string: Automount map */
/* #undef MNTTAB_OPT_MAP */

/* Mount Table option string: Automount   direct map mount */
/* #undef MNTTAB_OPT_DIRECT */

/* Mount Table option string: Automount indirect map mount */
/* #undef MNTTAB_OPT_INDIRECT */

/* Mount Table option string: Local locking (no lock manager) */
/* #undef MNTTAB_OPT_LLOCK */

/* Mount Table option string: Ignore this entry */
/* #undef MNTTAB_OPT_IGNORE */

/* Mount Table option string: No auto (what?) */
/* #undef MNTTAB_OPT_NOAUTO */

/* Mount Table option string: No connection */
/* #undef MNTTAB_OPT_NOCONN */

/* Mount Table option string: protocol version number indicator */
/* #undef MNTTAB_OPT_VERS */

/* Mount Table option string: protocol network_id indicator */
/* #undef MNTTAB_OPT_PROTO */

/* Mount Table option string: Synchronous local directory ops */
/* #undef MNTTAB_OPT_SYNCDIR */

/* Mount Table option string: Do no allow setting sec attrs */
/* #undef MNTTAB_OPT_NOSETSEC */

/* Mount Table option string: set symlink cache time-to-live */
/* #undef MNTTAB_OPT_SYMTTL */

/* Mount Table option string: compress */
/* #undef MNTTAB_OPT_COMPRESS */

/* Mount Table option string: paging threshold */
/* #undef MNTTAB_OPT_PGTHRESH */

/* Mount Table option string: max groups */
/* #undef MNTTAB_OPT_MAXGROUPS */

/*
 * Generic mount(2) options (hex numbers)
 */

/* asynchronous filesystem access */
#define MNT2_GEN_OPT_ASYNC 0x40

/* cache (what?) */
/* #undef MNT2_GEN_OPT_CACHE */

/* 6-argument mount */
/* #undef MNT2_GEN_OPT_DATA */

/* old (4-argument) mount (compatibility) */
/* #undef MNT2_GEN_OPT_FSS */

/* ignore mount entry in df output */
/* #undef MNT2_GEN_OPT_IGNORE */

/* journaling filesystem (AIX's UFS/FFS) */
/* #undef MNT2_GEN_OPT_JFS */

/* old BSD group-id on create */
/* #undef MNT2_GEN_OPT_GRPID */

/* do multi-component lookup on files */
/* #undef MNT2_GEN_OPT_MULTI */

/* use type string instead of int */
/* #undef MNT2_GEN_OPT_NEWTYPE */

/* NFS mount */
/* #undef MNT2_GEN_OPT_NFS */

/* nocache (what?) */
/* #undef MNT2_GEN_OPT_NOCACHE */

/* not a device */
#define MNT2_GEN_OPT_NODEV 0x10

/* no exec calls allowed */
#define MNT2_GEN_OPT_NOEXEC 0x4

/* not a device  */
/* #undef MNT2_GEN_OPT_NONDEV */

/* Disallow mounts beneath this mount */
/* #undef MNT2_GEN_OPT_NOSUB */

/* Setuid programs disallowed */
#define MNT2_GEN_OPT_NOSUID 0x8

/* Return ENAMETOOLONG for long filenames */
/* #undef MNT2_GEN_OPT_NOTRUNC */

/* allow overlay mounts */
/* #undef MNT2_GEN_OPT_OVERLAY */

/* check quotas */
#define MNT2_GEN_OPT_QUOTA 0x2000

/* Read-only */
#define MNT2_GEN_OPT_RDONLY 0x1

/* change options on an existing mount */
/* #undef MNT2_GEN_OPT_REMOUNT */

/* read only */
/* #undef MNT2_GEN_OPT_RONLY */

/* synchronize data immediately to filesystem */
/* #undef MNT2_GEN_OPT_SYNC */

/* synchronous filesystem access (same as SYNC) */
#define MNT2_GEN_OPT_SYNCHRONOUS 0x2

/* Mount with Sys 5-specific semantics */
/* #undef MNT2_GEN_OPT_SYS5 */

/* Union mount */
/* #undef MNT2_GEN_OPT_UNION */

/*
 * NFS-specific mount(2) options (hex numbers)
 */

/* hide mount type from df(1) */
/* #undef MNT2_NFS_OPT_AUTO */

/* set max secs for dir attr cache */
/* #undef MNT2_NFS_OPT_ACDIRMAX */

/* set min secs for dir attr cache */
/* #undef MNT2_NFS_OPT_ACDIRMIN */

/* set max secs for file attr cache */
/* #undef MNT2_NFS_OPT_ACREGMAX */

/* set min secs for file attr cache */
/* #undef MNT2_NFS_OPT_ACREGMIN */

/* Authentication error */
/* #undef MNT2_NFS_OPT_AUTHERR */

/* set dead server retry thresh */
#define MNT2_NFS_OPT_DEADTHRESH 0x4000

/* Dismount in progress */
/* #undef MNT2_NFS_OPT_DISMINPROG */

/* Dismounted */
/* #undef MNT2_NFS_OPT_DISMNT */

/* Don't estimate rtt dynamically */
#define MNT2_NFS_OPT_DUMBTIMR 0x800

/* System V-style gid inheritance */
/* #undef MNT2_NFS_OPT_GRPID */

/* Has authenticator */
/* #undef MNT2_NFS_OPT_HASAUTH */

/* provide name of server's fs to system */
/* #undef MNT2_NFS_OPT_FSNAME */

/* set hostname for error printf */
/* #undef MNT2_NFS_OPT_HOSTNAME */

/* ignore mount point */
/* #undef MNT2_NFS_OPT_IGNORE */

/* allow interrupts on hard mount */
#define MNT2_NFS_OPT_INT 0x40

/* Bits set internally */
/* #undef MNT2_NFS_OPT_INTERNAL */

/* Use Kerberos authentication */
/* #undef MNT2_NFS_OPT_KERB */

/* use kerberos credentials */
/* #undef MNT2_NFS_OPT_KERBEROS */

/* transport's knetconfig structure */
/* #undef MNT2_NFS_OPT_KNCONF */

/* set lease term (nqnfs) */
#define MNT2_NFS_OPT_LEASETERM 0x1000

/* Local locking (no lock manager) */
/* #undef MNT2_NFS_OPT_LLOCK */

/* set maximum grouplist size */
#define MNT2_NFS_OPT_MAXGRPS 0x20

/* Mnt server for mnt point */
/* #undef MNT2_NFS_OPT_MNTD */

/* Assume writes were mine */
/* #undef MNT2_NFS_OPT_MYWRITE */

/* mount NFS Version 3 */
#define MNT2_NFS_OPT_NFSV3 0x200

/* don't cache attributes */
/* #undef MNT2_NFS_OPT_NOAC */

/* Don't Connect the socket */
#define MNT2_NFS_OPT_NOCONN 0x80

/* no close-to-open consistency */
/* #undef MNT2_NFS_OPT_NOCTO */

/* disallow interrupts on hard mounts */
/* #undef MNT2_NFS_OPT_NOINT */

/* Get lease for lookup */
/* #undef MNT2_NFS_OPT_NQLOOKLEASE */

/* Use Nqnfs protocol */
#define MNT2_NFS_OPT_NQNFS 0x100

/* static pathconf kludge info */
/* #undef MNT2_NFS_OPT_POSIX */

/* Rcv socket lock */
/* #undef MNT2_NFS_OPT_RCVLOCK */

/* Do lookup with readdir (nqnfs) */
/* #undef MNT2_NFS_OPT_RDIRALOOK */

/* set read ahead */
#define MNT2_NFS_OPT_READAHEAD 0x2000

/* Allocate a reserved port */
#define MNT2_NFS_OPT_RESVPORT 0x8000

/* set number of request retries */
#define MNT2_NFS_OPT_RETRANS 0x10

/* read only */
/* #undef MNT2_NFS_OPT_RONLY */

/* use RPC to do secure NFS time sync */
/* #undef MNT2_NFS_OPT_RPCTIMESYNC */

/* set read size */
#define MNT2_NFS_OPT_RSIZE 0x4

/* secure mount */
/* #undef MNT2_NFS_OPT_SECURE */

/* Send socket lock */
/* #undef MNT2_NFS_OPT_SNDLOCK */

/* soft mount (hard is default) */
#define MNT2_NFS_OPT_SOFT 0x1

/* spongy mount */
/* #undef MNT2_NFS_OPT_SPONGY */

/* set initial timeout */
#define MNT2_NFS_OPT_TIMEO 0x8

/* use TCP for mounts */
/* #undef MNT2_NFS_OPT_TCP */

/* Wait for authentication */
/* #undef MNT2_NFS_OPT_WAITAUTH */

/* Wants an authenticator */
/* #undef MNT2_NFS_OPT_WANTAUTH */

/* Want receive socket lock */
/* #undef MNT2_NFS_OPT_WANTRCV */

/* Want send socket lock */
/* #undef MNT2_NFS_OPT_WANTSND */

/* set write size */
#define MNT2_NFS_OPT_WSIZE 0x2

/* set symlink cache time-to-live */
/* #undef MNT2_NFS_OPT_SYMTTL */

/* paging threshold */
/* #undef MNT2_NFS_OPT_PGTHRESH */

/*
 * CDFS-specific mount(2) options (hex numbers)
 */

/* Ignore permission bits */
/* #undef MNT2_CDFS_OPT_DEFPERM */

/* Use on-disk permission bits */
/* #undef MNT2_CDFS_OPT_NODEFPERM */

/* Strip off extension from version string */
/* #undef MNT2_CDFS_OPT_NOVERSION */

/* Use Rock Ridge Interchange Protocol (RRIP) extensions */
/* #undef MNT2_CDFS_OPT_RRIP */

/*
 * Existence of fields in structures.
 */

/* does mntent_t have mnt_cnode field? */
/* #undef HAVE_FIELD_MNTENT_T_MNT_CNODE */

/* does mntent_t have mnt_time field? */
/* #undef HAVE_FIELD_MNTENT_T_MNT_TIME */

/* does mntent_t have mnt_time field and is of type "char *" ? */
/* #undef HAVE_FIELD_MNTENT_T_MNT_TIME_STRING */

/* does mntent_t have mnt_ro field? */
/* #undef HAVE_FIELD_MNTENT_T_MNT_RO */

/* does cdfs_args_t have flags field? */
#define HAVE_FIELD_CDFS_ARGS_T_FLAGS 1

/* does cdfs_args_t have fspec field? */
#define HAVE_FIELD_CDFS_ARGS_T_FSPEC 1

/* does cdfs_args_t have iso_flags field? */
/* #undef HAVE_FIELD_CDFS_ARGS_T_ISO_FLAGS */

/* does cdfs_args_t have iso_pgthresh field? */
/* #undef HAVE_FIELD_CDFS_ARGS_T_ISO_PGTHRESH */

/* does cdfs_args_t have norrip field? */
/* #undef HAVE_FIELD_CDFS_ARGS_T_NORRIP */

/* does cdfs_args_t have ssector field? */
/* #undef HAVE_FIELD_CDFS_ARGS_T_SSECTOR */

/* does pcfs_args_t have dsttime field? */
/* #undef HAVE_FIELD_PCFS_ARGS_T_DSTTIME */

/* does pcfs_args_t have fspec field? */
#define HAVE_FIELD_PCFS_ARGS_T_FSPEC 1

/* does pcfs_args_t have gid field? */
#define HAVE_FIELD_PCFS_ARGS_T_GID 1

/* does pcfs_args_t have mask field? */
#define HAVE_FIELD_PCFS_ARGS_T_MASK 1

/* does pcfs_args_t have secondswest field? */
/* #undef HAVE_FIELD_PCFS_ARGS_T_SECONDSWEST */

/* does pcfs_args_t have uid field? */
#define HAVE_FIELD_PCFS_ARGS_T_UID 1

/* does ufs_args_t have flags field? */
/* #undef HAVE_FIELD_UFS_ARGS_T_FLAGS */

/* does ufs_args_t have fspec field? */
#define HAVE_FIELD_UFS_ARGS_T_FSPEC 1

/* does efs_args_t have flags field? */
/* #undef HAVE_FIELD_EFS_ARGS_T_FLAGS */

/* does efs_args_t have fspec field? */
/* #undef HAVE_FIELD_EFS_ARGS_T_FSPEC */

/* does xfs_args_t have flags field? */
/* #undef HAVE_FIELD_XFS_ARGS_T_FLAGS */

/* does xfs_args_t have fspec field? */
/* #undef HAVE_FIELD_XFS_ARGS_T_FSPEC */

/* does ufs_ars_t have ufs_flags field? */
/* #undef HAVE_FIELD_UFS_ARGS_T_UFS_FLAGS */

/* does ufs_ars_t have ufs_pgthresh field? */
/* #undef HAVE_FIELD_UFS_ARGS_T_UFS_PGTHRESH */

/* does struct fhstatus have a fhs_fh field? */
/* #undef HAVE_FIELD_STRUCT_FHSTATUS_FHS_FH */

/* does struct statfs have an f_fstypename field? */
#define HAVE_FIELD_STRUCT_STATFS_F_FSTYPENAME 1

/* does struct nfs_args have an acdirmin field? */
/* #undef HAVE_FIELD_NFS_ARGS_T_ACDIRMIN */

/* does struct nfs_args have an acregmin field? */
/* #undef HAVE_FIELD_NFS_ARGS_T_ACREGMIN */

/* does struct nfs_args have a bsize field? */
/* #undef HAVE_FIELD_NFS_ARGS_T_BSIZE */

/* does struct nfs_args have an fh_len field? */
/* #undef HAVE_FIELD_NFS_ARGS_T_FH_LEN */

/* does struct nfs_args have an fhsize field? */
#define HAVE_FIELD_NFS_ARGS_T_FHSIZE 1

/* does struct nfs_args have a gfs_flags field? */
/* #undef HAVE_FIELD_NFS_ARGS_T_GFS_FLAGS */

/* does struct nfs_args have a namlen field? */
/* #undef HAVE_FIELD_NFS_ARGS_T_NAMLEN */

/* does struct nfs_args have an optstr field? */
/* #undef HAVE_FIELD_NFS_ARGS_T_OPTSTR */

/* does struct nfs_args have a proto field? */
#define HAVE_FIELD_NFS_ARGS_T_PROTO 1

/* does struct nfs_args have a socket type field? */
#define HAVE_FIELD_NFS_ARGS_T_SOTYPE 1

/* does struct nfs_args have a version field? */
#define HAVE_FIELD_NFS_ARGS_T_VERSION 1

/* does struct ifreq have field ifr_addr? */
#define HAVE_FIELD_STRUCT_IFREQ_IFR_ADDR 1

/* does struct sockaddr have field sa_len? */
#define HAVE_FIELD_STRUCT_SOCKADDR_SA_LEN 1

/* does struct autofs_args have an addr field? */
/* #undef HAVE_FIELD_AUTOFS_ARGS_T_ADDR */

/* does umntrequest have an rdevid field? */
/* #undef HAVE_FIELD_UMNTREQUEST_RDEVID */


/* should signal handlers be reinstalled? */
/* #undef REINSTALL_SIGNAL_HANDLER */


/**************************************************************************/
/*** Everything above this line is part of the "TOP" of acconfig.h.	***/
/**************************************************************************/


/* Define if on AIX 3.
   System headers sometimes define this.
   We just want to avoid a redefinition error message.  */
#ifndef _ALL_SOURCE
/* #undef _ALL_SOURCE */
#endif

/* Define if using alloca.c.  */
/* #undef C_ALLOCA */

/* Define to empty if the keyword does not work.  */
/* #undef const */

/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
   This function is required for alloca.c support on those systems.  */
/* #undef CRAY_STACKSEG_END */

/* Define to the type of elements in the array set by `getgroups'.
   Usually this is either `int' or `gid_t'.  */
#define GETGROUPS_T gid_t

/* Define to `int' if <sys/types.h> doesn't define.  */
/* #undef gid_t */

/* Define if you have alloca, as a function or macro.  */
#define HAVE_ALLOCA 1

/* Define if you have <alloca.h> and it should be used (not on Ultrix).  */
/* #undef HAVE_ALLOCA_H */

/* Define if you support file names longer than 14 characters.  */
#define HAVE_LONG_FILE_NAMES 1

/* Define if system calls automatically restart after interruption
   by a signal.  */
#define HAVE_RESTARTABLE_SYSCALLS 1

/* Define if your struct stat has st_rdev.  */
#define HAVE_ST_RDEV 1

/* Define if you have <sys/wait.h> that is POSIX.1 compatible.  */
#define HAVE_SYS_WAIT_H 1

/* Define if you have <vfork.h>.  */
/* #undef HAVE_VFORK_H */

/* Define if you have the wait3 system call.  */
#define HAVE_WAIT3 1

/* Define as __inline if that's what the C compiler calls it.  */
/* #undef inline */

/* Define to `int' if <sys/types.h> doesn't define.  */
/* #undef mode_t */

/* Define if your C compiler doesn't accept -c and -o together.  */
/* #undef NO_MINUS_C_MINUS_O */

/* Define to `int' if <sys/types.h> doesn't define.  */
/* #undef pid_t */

/* Define if you need to in order for stat and other things to work.  */
/* #undef _POSIX_SOURCE */

/* Define as the return type of signal handlers (int or void).  */
#define RETSIGTYPE void

/* Define to `unsigned' if <sys/types.h> doesn't define.  */
/* #undef size_t */

/* If using the C implementation of alloca, define if you know the
   direction of stack growth for your system; otherwise it will be
   automatically deduced at run-time.
 STACK_DIRECTION > 0 => grows toward higher addresses
 STACK_DIRECTION < 0 => grows toward lower addresses
 STACK_DIRECTION = 0 => direction of growth unknown
 */
/* #undef STACK_DIRECTION */

/* Define if the `S_IS*' macros in <sys/stat.h> do not work properly.  */
/* #undef STAT_MACROS_BROKEN */

/* Define if you have the ANSI C header files.  */
#define STDC_HEADERS 1

/* Define if you can safely include both <sys/time.h> and <time.h>.  */
#define TIME_WITH_SYS_TIME 1

/* Define if your <sys/time.h> declares struct tm.  */
/* #undef TM_IN_SYS_TIME */

/* Define to `int' if <sys/types.h> doesn't define.  */
/* #undef uid_t */

/* Define vfork as fork if vfork does not work.  */
/* #undef vfork */

/* Define if your processor stores words with the most significant
   byte first (like Motorola and SPARC, unlike Intel and VAX).  */
/* #undef WORDS_BIGENDIAN */

/* Define if lex declares yytext as a char * by default, not a char[].  */
#define YYTEXT_POINTER 1

/* Turn off general debugging by default */
/* #undef DEBUG */

/* Turn off memory debugging by default */
/* #undef DEBUG_MEM */

/* Enable "amq -M" remote mount code (insecure due to IP spoofing) */
/* #undef ENABLE_AMQ_MOUNT */

/* Define package name (must be defined by configure.in) */
#define PACKAGE "am-utils"

/* Define version of package (must be defined by configure.in) */
#define VERSION "6.0.1s11"

/* Define name of host machine's cpu (eg. sparc) */
#define HOST_CPU MACHINE

/* Define name of host machine's architecture (eg. sun4) */
#define HOST_ARCH MACHINE_ARCH

/* Define name of host machine's vendor (eg. sun) */
#define HOST_VENDOR "unknown"

/* We pick some parameters from our local config file */
#include <config_local.h>

/* what type of network transport type is in use?  TLI or sockets? */
/* #undef HAVE_TRANSPORT_TYPE_TLI */

/* Define to `long' if <sys/types.h> doesn't define time_t */
/* #undef time_t */

/* Define to "void *" if compiler can handle, otherwise "char *" */
#define voidp void *

/* Define a type/structure for an NFS V2 filehandle */
#define am_nfs_fh nfs_fh

/* Define a type/structure for an NFS V3 filehandle */
#define am_nfs_fh3 nfs_fh3

/* define name of am-utils' NFS protocol header */
#define AMU_NFS_PROTOCOL_HEADER "./conf/nfs_prot/nfs_prot_netbsd1_4.h"

/* Define a type for the nfs_args structure */
#define nfs_args_t struct nfs_args

/* Define the field name for the filehandle within nfs_args_t */
#define NFS_FH_FIELD fh

/* Define if plain fhandle type exists */
#define HAVE_FHANDLE 1

/* Define the type of the 3rd argument ('in') to svc_getargs() */
#define SVC_IN_ARG_TYPE caddr_t

/* Define to the type of xdr procedure type */
#define XDRPROC_T_TYPE xdrproc_t

/* Define if mount table is on file, undefine if in kernel */
/* #undef MOUNT_TABLE_ON_FILE */

/* Define if have struct mntent in one of the standard headers */
/* #undef HAVE_STRUCT_MNTENT */

/* Define if have struct mnttab in one of the standard headers */
/* #undef HAVE_STRUCT_MNTTAB */

/* Define if have struct nfs_args in one of the standard nfs headers */
#define HAVE_STRUCT_NFS_ARGS 1

/* Define if have struct nfs_mount_data in one of the standard nfs headers */
/* #undef HAVE_STRUCT_NFS_MOUNT_DATA */

/* Define if have struct nfs_gfs_mount in one of the standard nfs headers */
/* #undef HAVE_STRUCT_NFS_GFS_MOUNT */

/* Type of the 3rd argument to yp_order() */
#define YP_ORDER_OUTORDER_TYPE int

/* Type of the 6th argument to recvfrom() */
#define RECVFROM_FROMLEN_TYPE int

/* Type of the 5rd argument to authunix_create() */
#define AUTH_CREATE_GIDLIST_TYPE gid_t

/* The string used in printf to print the mount-type field of mount(2) */
#define MTYPE_PRINTF_TYPE "%s"

/* Type of the mount-type field in the mount() system call */
#define MTYPE_TYPE char *

/* Define a type for the pcfs_args structure */
#define pcfs_args_t struct msdosfs_args

/* Define a type for the autofs_args structure */
/* #undef autofs_args_t */

/* Define a type for the cachefs_args structure */
/* #undef cachefs_args_t */

/* Define a type for the tmpfs_args structure */
/* #undef tmpfs_args_t */

/* Define a type for the ufs_args structure */
#define ufs_args_t struct ufs_args

/* Define a type for the efs_args structure */
/* #undef efs_args_t */

/* Define a type for the xfs_args structure */
/* #undef xfs_args_t */

/* Define a type for the lofs_args structure */
/* #undef lofs_args_t */

/* Define a type for the cdfs_args structure */
#define cdfs_args_t struct iso_args

/* Define a type for the mfs_args structure */
#define mfs_args_t struct mfs_args

/* Define a type for the rfs_args structure */
/* #undef rfs_args_t */

/* define if have a bad version of memcmp() */
/* #undef HAVE_BAD_MEMCMP */

/* define if have a bad version of yp_all() */
/* #undef HAVE_BAD_YP_ALL */

/* define if must use NFS "noconn" option */
/* #undef USE_UNCONNECTED_NFS_SOCKETS */
/* define if must NOT use NFS "noconn" option */
/* #undef USE_CONNECTED_NFS_SOCKETS */

/* Define if you have the __seterr_reply function.  */
/* #undef HAVE___SETERR_REPLY */

/* Define if you have the _seterr_reply function.  */
#define HAVE__SETERR_REPLY 1

/* Define if you have the bcmp function.  */
#define HAVE_BCMP 1

/* Define if you have the bcopy function.  */
#define HAVE_BCOPY 1

/* Define if you have the bzero function.  */
#define HAVE_BZERO 1

/* Define if you have the clnt_create function.  */
#define HAVE_CLNT_CREATE 1

/* Define if you have the clnt_create_timed function.  */
/* #undef HAVE_CLNT_CREATE_TIMED */

/* Define if you have the clnt_spcreateerror function.  */
#define HAVE_CLNT_SPCREATEERROR 1

/* Define if you have the clnt_sperrno function.  */
#define HAVE_CLNT_SPERRNO 1

/* Define if you have the cnodeid function.  */
/* #undef HAVE_CNODEID */

/* Define if you have the dbm_open function.  */
#define HAVE_DBM_OPEN 1

/* Define if you have the dg_mount function.  */
/* #undef HAVE_DG_MOUNT */

/* Define if you have the fgets function.  */
#define HAVE_FGETS 1

/* Define if you have the flock function.  */
#define HAVE_FLOCK 1

/* Define if you have the fsmount function.  */
/* #undef HAVE_FSMOUNT */

/* Define if you have the get_myaddress function.  */
#define HAVE_GET_MYADDRESS 1

/* Define if you have the getccent function.  */
/* #undef HAVE_GETCCENT */

/* Define if you have the getcwd function.  */
#define HAVE_GETCWD 1

/* Define if you have the getdomainname function.  */
#define HAVE_GETDOMAINNAME 1

/* Define if you have the getdtablesize function.  */
#define HAVE_GETDTABLESIZE 1

/* Define if you have the gethostname function.  */
#define HAVE_GETHOSTNAME 1

/* Define if you have the getifaddrs function.  */
/* #undef HAVE_GETIFADDRS */

/* Define if you have the getmntinfo function.  */
#define HAVE_GETMNTINFO 1

/* Define if you have the getmountent function.  */
/* #undef HAVE_GETMOUNTENT */

/* Define if you have the getpagesize function.  */
#define HAVE_GETPAGESIZE 1

/* Define if you have the getpwnam function.  */
#define HAVE_GETPWNAM 1

/* Define if you have the gettimeofday function.  */
#define HAVE_GETTIMEOFDAY 1

/* Define if you have the hasmntopt function.  */
/* #undef HAVE_HASMNTOPT */

/* Define if you have the hes_init function.  */
#define HAVE_HES_INIT 1

/* Define if you have the hesiod_init function.  */
#define HAVE_HESIOD_INIT 1

/* Define if you have the hesiod_reload function.  */
/* #undef HAVE_HESIOD_RELOAD */

/* Define if you have the hesiod_to_bind function.  */
#define HAVE_HESIOD_TO_BIND 1

/* Define if you have the ldap_open function.  */
/* #undef HAVE_LDAP_OPEN */

/* Define if you have the memcmp function.  */
#define HAVE_MEMCMP 1

/* Define if you have the memcpy function.  */
#define HAVE_MEMCPY 1

/* Define if you have the memmove function.  */
#define HAVE_MEMMOVE 1

/* Define if you have the memset function.  */
#define HAVE_MEMSET 1

/* Define if you have the mkdir function.  */
#define HAVE_MKDIR 1

/* Define if you have the mkstemp function.  */
#define HAVE_MKSTEMP 1

/* Define if you have the mntctl function.  */
/* #undef HAVE_MNTCTL */

/* Define if you have the mount function.  */
#define HAVE_MOUNT 1

/* Define if you have the mountsyscall function.  */
/* #undef HAVE_MOUNTSYSCALL */

/* Define if you have the nis_domain_of function.  */
/* #undef HAVE_NIS_DOMAIN_OF */

/* Define if you have the opendir function.  */
#define HAVE_OPENDIR 1

/* Define if you have the plock function.  */
/* #undef HAVE_PLOCK */

/* Define if you have the regcomp function.  */
#define HAVE_REGCOMP 1

/* Define if you have the regexec function.  */
#define HAVE_REGEXEC 1

/* Define if you have the rmdir function.  */
#define HAVE_RMDIR 1

/* Define if you have the select function.  */
#define HAVE_SELECT 1

/* Define if you have the seteuid function.  */
#define HAVE_SETEUID 1

/* Define if you have the setresuid function.  */
/* #undef HAVE_SETRESUID */

/* Define if you have the setsid function.  */
#define HAVE_SETSID 1

/* Define if you have the sigaction function.  */
#define HAVE_SIGACTION 1

/* Define if you have the signal function.  */
#define HAVE_SIGNAL 1

/* Define if you have the socket function.  */
#define HAVE_SOCKET 1

/* Define if you have the strcasecmp function.  */
#define HAVE_STRCASECMP 1

/* Define if you have the strchr function.  */
#define HAVE_STRCHR 1

/* Define if you have the strcspn function.  */
#define HAVE_STRCSPN 1

/* Define if you have the strdup function.  */
#define HAVE_STRDUP 1

/* Define if you have the strerror function.  */
#define HAVE_STRERROR 1

/* Define if you have the strspn function.  */
#define HAVE_STRSPN 1

/* Define if you have the strstr function.  */
#define HAVE_STRSTR 1

/* Define if you have the svc_getreq function.  */
#define HAVE_SVC_GETREQ 1

/* Define if you have the svc_getreqset function.  */
#define HAVE_SVC_GETREQSET 1

/* Define if you have the sysfs function.  */
/* #undef HAVE_SYSFS */

/* Define if you have the syslog function.  */
#define HAVE_SYSLOG 1

/* Define if you have the ualarm function.  */
#define HAVE_UALARM 1

/* Define if you have the umount function.  */
/* #undef HAVE_UMOUNT */

/* Define if you have the uname function.  */
#define HAVE_UNAME 1

/* Define if you have the unmount function.  */
#define HAVE_UNMOUNT 1

/* Define if you have the uvmount function.  */
/* #undef HAVE_UVMOUNT */

/* Define if you have the vfork function.  */
#define HAVE_VFORK 1

/* Define if you have the vfsmount function.  */
/* #undef HAVE_VFSMOUNT */

/* Define if you have the vmount function.  */
/* #undef HAVE_VMOUNT */

/* Define if you have the wait3 function.  */
#define HAVE_WAIT3 1

/* Define if you have the waitpid function.  */
#define HAVE_WAITPID 1

/* Define if you have the xdr_attrstat function.  */
#define HAVE_XDR_ATTRSTAT 1

/* Define if you have the xdr_createargs function.  */
#define HAVE_XDR_CREATEARGS 1

/* Define if you have the xdr_dirlist function.  */
#define HAVE_XDR_DIRLIST 1

/* Define if you have the xdr_diropargs function.  */
#define HAVE_XDR_DIROPARGS 1

/* Define if you have the xdr_diropokres function.  */
#define HAVE_XDR_DIROPOKRES 1

/* Define if you have the xdr_diropres function.  */
#define HAVE_XDR_DIROPRES 1

/* Define if you have the xdr_dirpath function.  */
#define HAVE_XDR_DIRPATH 1

/* Define if you have the xdr_entry function.  */
#define HAVE_XDR_ENTRY 1

/* Define if you have the xdr_exportnode function.  */
#define HAVE_XDR_EXPORTNODE 1

/* Define if you have the xdr_exports function.  */
#define HAVE_XDR_EXPORTS 1

/* Define if you have the xdr_fattr function.  */
#define HAVE_XDR_FATTR 1

/* Define if you have the xdr_fhandle function.  */
#define HAVE_XDR_FHANDLE 1

/* Define if you have the xdr_fhstatus function.  */
#define HAVE_XDR_FHSTATUS 1

/* Define if you have the xdr_filename function.  */
#define HAVE_XDR_FILENAME 1

/* Define if you have the xdr_ftype function.  */
#define HAVE_XDR_FTYPE 1

/* Define if you have the xdr_groupnode function.  */
#define HAVE_XDR_GROUPNODE 1

/* Define if you have the xdr_groups function.  */
#define HAVE_XDR_GROUPS 1

/* Define if you have the xdr_linkargs function.  */
#define HAVE_XDR_LINKARGS 1

/* Define if you have the xdr_mntrequest function.  */
/* #undef HAVE_XDR_MNTREQUEST */

/* Define if you have the xdr_mntres function.  */
/* #undef HAVE_XDR_MNTRES */

/* Define if you have the xdr_mountbody function.  */
#define HAVE_XDR_MOUNTBODY 1

/* Define if you have the xdr_mountlist function.  */
#define HAVE_XDR_MOUNTLIST 1

/* Define if you have the xdr_mountres3 function.  */
/* #undef HAVE_XDR_MOUNTRES3 */

/* Define if you have the xdr_name function.  */
#define HAVE_XDR_NAME 1

/* Define if you have the xdr_nfs_fh function.  */
#define HAVE_XDR_NFS_FH 1

/* Define if you have the xdr_nfscookie function.  */
#define HAVE_XDR_NFSCOOKIE 1

/* Define if you have the xdr_nfspath function.  */
#define HAVE_XDR_NFSPATH 1

/* Define if you have the xdr_nfsstat function.  */
#define HAVE_XDR_NFSSTAT 1

/* Define if you have the xdr_nfstime function.  */
#define HAVE_XDR_NFSTIME 1

/* Define if you have the xdr_pointer function.  */
#define HAVE_XDR_POINTER 1

/* Define if you have the xdr_readargs function.  */
#define HAVE_XDR_READARGS 1

/* Define if you have the xdr_readdirargs function.  */
#define HAVE_XDR_READDIRARGS 1

/* Define if you have the xdr_readdirres function.  */
#define HAVE_XDR_READDIRRES 1

/* Define if you have the xdr_readlinkres function.  */
#define HAVE_XDR_READLINKRES 1

/* Define if you have the xdr_readokres function.  */
#define HAVE_XDR_READOKRES 1

/* Define if you have the xdr_readres function.  */
#define HAVE_XDR_READRES 1

/* Define if you have the xdr_renameargs function.  */
#define HAVE_XDR_RENAMEARGS 1

/* Define if you have the xdr_sattr function.  */
#define HAVE_XDR_SATTR 1

/* Define if you have the xdr_sattrargs function.  */
#define HAVE_XDR_SATTRARGS 1

/* Define if you have the xdr_statfsokres function.  */
#define HAVE_XDR_STATFSOKRES 1

/* Define if you have the xdr_statfsres function.  */
#define HAVE_XDR_STATFSRES 1

/* Define if you have the xdr_symlinkargs function.  */
#define HAVE_XDR_SYMLINKARGS 1

/* Define if you have the xdr_umntrequest function.  */
/* #undef HAVE_XDR_UMNTREQUEST */

/* Define if you have the xdr_umntres function.  */
/* #undef HAVE_XDR_UMNTRES */

/* Define if you have the xdr_writeargs function.  */
#define HAVE_XDR_WRITEARGS 1

/* Define if you have the yp_all function.  */
/* #undef HAVE_YP_ALL */

/* Define if you have the yp_get_default_domain function.  */
#define HAVE_YP_GET_DEFAULT_DOMAIN 1

/* Define if you have the <arpa/inet.h> header file.  */
#define HAVE_ARPA_INET_H 1

/* Define if you have the <arpa/nameser.h> header file.  */
#define HAVE_ARPA_NAMESER_H 1

/* Define if you have the <assert.h> header file.  */
#define HAVE_ASSERT_H 1

/* Define if you have the <bsd/rpc/rpc.h> header file.  */
/* #undef HAVE_BSD_RPC_RPC_H */

/* Define if you have the <cdfs/cdfs_mount.h> header file.  */
/* #undef HAVE_CDFS_CDFS_MOUNT_H */

/* Define if you have the <cdfs/cdfsmount.h> header file.  */
/* #undef HAVE_CDFS_CDFSMOUNT_H */

/* Define if you have the <cluster.h> header file.  */
/* #undef HAVE_CLUSTER_H */

/* Define if you have the <ctype.h> header file.  */
#define HAVE_CTYPE_H 1

/* Define if you have the <db1/ndbm.h> header file.  */
/* #undef HAVE_DB1_NDBM_H */

/* Define if you have the <dirent.h> header file.  */
#define HAVE_DIRENT_H 1

/* Define if you have the <errno.h> header file.  */
#define HAVE_ERRNO_H 1

/* Define if you have the <fcntl.h> header file.  */
#define HAVE_FCNTL_H 1

/* Define if you have the <grp.h> header file.  */
#define HAVE_GRP_H 1

/* Define if you have the <hesiod.h> header file.  */
#define HAVE_HESIOD_H 1

/* Define if you have the <hsfs/hsfs.h> header file.  */
/* #undef HAVE_HSFS_HSFS_H */

/* Define if you have the <ifaddrs.h> header file.  */
/* #undef HAVE_IFADDRS_H */

/* Define if you have the <irs.h> header file.  */
/* #undef HAVE_IRS_H */

/* Define if you have the <isofs/cd9660/cd9660_mount.h> header file.  */
#define HAVE_ISOFS_CD9660_CD9660_MOUNT_H 1

/* Define if you have the <lber.h> header file.  */
/* #undef HAVE_LBER_H */

/* Define if you have the <ldap.h> header file.  */
/* #undef HAVE_LDAP_H */

/* Define if you have the <libgen.h> header file.  */
#define HAVE_LIBGEN_H 1

/* Define if you have the <linux/auto_fs.h> header file.  */
/* #undef HAVE_LINUX_AUTO_FS_H */

/* Define if you have the <linux/fs.h> header file.  */
/* #undef HAVE_LINUX_FS_H */

/* Define if you have the <linux/nfs.h> header file.  */
/* #undef HAVE_LINUX_NFS_H */

/* Define if you have the <linux/nfs_mount.h> header file.  */
/* #undef HAVE_LINUX_NFS_MOUNT_H */

/* Define if you have the <linux/posix_types.h> header file.  */
/* #undef HAVE_LINUX_POSIX_TYPES_H */

/* Define if you have the <machine/endian.h> header file.  */
#define HAVE_MACHINE_ENDIAN_H 1

/* Define if you have the <malloc.h> header file.  */
#define HAVE_MALLOC_H 1

/* Define if you have the <memory.h> header file.  */
#define HAVE_MEMORY_H 1

/* Define if you have the <mntent.h> header file.  */
/* #undef HAVE_MNTENT_H */

/* Define if you have the <mnttab.h> header file.  */
/* #undef HAVE_MNTTAB_H */

/* Define if you have the <mount.h> header file.  */
/* #undef HAVE_MOUNT_H */

/* Define if you have the <msdosfs/msdosfsmount.h> header file.  */
#define HAVE_MSDOSFS_MSDOSFSMOUNT_H 1

/* Define if you have the <ndbm.h> header file.  */
#define HAVE_NDBM_H 1

/* Define if you have the <ndir.h> header file.  */
/* #undef HAVE_NDIR_H */

/* Define if you have the <net/errno.h> header file.  */
/* #undef HAVE_NET_ERRNO_H */

/* Define if you have the <net/if.h> header file.  */
#define HAVE_NET_IF_H 1

/* Define if you have the <net/if_var.h> header file.  */
/* #undef HAVE_NET_IF_VAR_H */

/* Define if you have the <net/route.h> header file.  */
#define HAVE_NET_ROUTE_H 1

/* Define if you have the <netconfig.h> header file.  */
/* #undef HAVE_NETCONFIG_H */

/* Define if you have the <netdb.h> header file.  */
#define HAVE_NETDB_H 1

/* Define if you have the <netdir.h> header file.  */
/* #undef HAVE_NETDIR_H */

/* Define if you have the <netinet/if_ether.h> header file.  */
#define HAVE_NETINET_IF_ETHER_H 1

/* Define if you have the <netinet/in.h> header file.  */
#define HAVE_NETINET_IN_H 1

/* Define if you have the <nfs/export.h> header file.  */
/* #undef HAVE_NFS_EXPORT_H */

/* Define if you have the <nfs/mount.h> header file.  */
/* #undef HAVE_NFS_MOUNT_H */

/* Define if you have the <nfs/nfs.h> header file.  */
#define HAVE_NFS_NFS_H 1

/* Define if you have the <nfs/nfs_clnt.h> header file.  */
/* #undef HAVE_NFS_NFS_CLNT_H */

/* Define if you have the <nfs/nfs_gfs.h> header file.  */
/* #undef HAVE_NFS_NFS_GFS_H */

/* Define if you have the <nfs/nfs_mount.h> header file.  */
/* #undef HAVE_NFS_NFS_MOUNT_H */

/* Define if you have the <nfs/nfsmount.h> header file.  */
#define HAVE_NFS_NFSMOUNT_H 1

/* Define if you have the <nfs/nfsproto.h> header file.  */
#define HAVE_NFS_NFSPROTO_H 1

/* Define if you have the <nfs/nfsv2.h> header file.  */
/* #undef HAVE_NFS_NFSV2_H */

/* Define if you have the <nfs/pathconf.h> header file.  */
/* #undef HAVE_NFS_PATHCONF_H */

/* Define if you have the <nfs/rpcv2.h> header file.  */
#define HAVE_NFS_RPCV2_H 1

/* Define if you have the <nsswitch.h> header file.  */
#define HAVE_NSSWITCH_H 1

/* Define if you have the <pwd.h> header file.  */
#define HAVE_PWD_H 1

/* Define if you have the <regex.h> header file.  */
#define HAVE_REGEX_H 1

/* Define if you have the <resolv.h> header file.  */
#define HAVE_RESOLV_H 1

/* Define if you have the <rpc/auth_des.h> header file.  */
/* #undef HAVE_RPC_AUTH_DES_H */

/* Define if you have the <rpc/pmap_clnt.h> header file.  */
#define HAVE_RPC_PMAP_CLNT_H 1

/* Define if you have the <rpc/pmap_prot.h> header file.  */
#define HAVE_RPC_PMAP_PROT_H 1

/* Define if you have the <rpc/rpc.h> header file.  */
#define HAVE_RPC_RPC_H 1

/* Define if you have the <rpc/types.h> header file.  */
#define HAVE_RPC_TYPES_H 1

/* Define if you have the <rpc/xdr.h> header file.  */
#define HAVE_RPC_XDR_H 1

/* Define if you have the <rpcsvc/mount.h> header file.  */
#define HAVE_RPCSVC_MOUNT_H 1

/* Define if you have the <rpcsvc/mountv3.h> header file.  */
/* #undef HAVE_RPCSVC_MOUNTV3_H */

/* Define if you have the <rpcsvc/nfs_prot.h> header file.  */
#define HAVE_RPCSVC_NFS_PROT_H 1

/* Define if you have the <rpcsvc/nis.h> header file.  */
/* #undef HAVE_RPCSVC_NIS_H */

/* Define if you have the <rpcsvc/yp_prot.h> header file.  */
#define HAVE_RPCSVC_YP_PROT_H 1

/* Define if you have the <rpcsvc/ypclnt.h> header file.  */
#define HAVE_RPCSVC_YPCLNT_H 1

/* Define if you have the <setjmp.h> header file.  */
#define HAVE_SETJMP_H 1

/* Define if you have the <signal.h> header file.  */
#define HAVE_SIGNAL_H 1

/* Define if you have the <socketbits.h> header file.  */
/* #undef HAVE_SOCKETBITS_H */

/* Define if you have the <statbuf.h> header file.  */
/* #undef HAVE_STATBUF_H */

/* Define if you have the <stdarg.h> header file.  */
#define HAVE_STDARG_H 1

/* Define if you have the <stdio.h> header file.  */
#define HAVE_STDIO_H 1

/* Define if you have the <stdlib.h> header file.  */
#define HAVE_STDLIB_H 1

/* Define if you have the <string.h> header file.  */
#define HAVE_STRING_H 1

/* Define if you have the <strings.h> header file.  */
#define HAVE_STRINGS_H 1

/* Define if you have the <sys/config.h> header file.  */
/* #undef HAVE_SYS_CONFIG_H */

/* Define if you have the <sys/dg_mount.h> header file.  */
/* #undef HAVE_SYS_DG_MOUNT_H */

/* Define if you have the <sys/dir.h> header file.  */
#define HAVE_SYS_DIR_H 1

/* Define if you have the <sys/errno.h> header file.  */
#define HAVE_SYS_ERRNO_H 1

/* Define if you have the <sys/file.h> header file.  */
#define HAVE_SYS_FILE_H 1

/* Define if you have the <sys/fs/autofs.h> header file.  */
/* #undef HAVE_SYS_FS_AUTOFS_H */

/* Define if you have the <sys/fs/autofs_prot.h> header file.  */
/* #undef HAVE_SYS_FS_AUTOFS_PROT_H */

/* Define if you have the <sys/fs/cachefs_fs.h> header file.  */
/* #undef HAVE_SYS_FS_CACHEFS_FS_H */

/* Define if you have the <sys/fs/efs_clnt.h> header file.  */
/* #undef HAVE_SYS_FS_EFS_CLNT_H */

/* Define if you have the <sys/fs/nfs.h> header file.  */
/* #undef HAVE_SYS_FS_NFS_H */

/* Define if you have the <sys/fs/nfs/mount.h> header file.  */
/* #undef HAVE_SYS_FS_NFS_MOUNT_H */

/* Define if you have the <sys/fs/nfs/nfs_clnt.h> header file.  */
/* #undef HAVE_SYS_FS_NFS_NFS_CLNT_H */

/* Define if you have the <sys/fs/nfs_clnt.h> header file.  */
/* #undef HAVE_SYS_FS_NFS_CLNT_H */

/* Define if you have the <sys/fs/pc_fs.h> header file.  */
/* #undef HAVE_SYS_FS_PC_FS_H */

/* Define if you have the <sys/fs/tmp.h> header file.  */
/* #undef HAVE_SYS_FS_TMP_H */

/* Define if you have the <sys/fs/ufs_mount.h> header file.  */
/* #undef HAVE_SYS_FS_UFS_MOUNT_H */

/* Define if you have the <sys/fs/xfs_clnt.h> header file.  */
/* #undef HAVE_SYS_FS_XFS_CLNT_H */

/* Define if you have the <sys/fs_types.h> header file.  */
/* #undef HAVE_SYS_FS_TYPES_H */

/* Define if you have the <sys/fsid.h> header file.  */
/* #undef HAVE_SYS_FSID_H */

/* Define if you have the <sys/fstyp.h> header file.  */
/* #undef HAVE_SYS_FSTYP_H */

/* Define if you have the <sys/ioctl.h> header file.  */
#define HAVE_SYS_IOCTL_H 1

/* Define if you have the <sys/lock.h> header file.  */
#define HAVE_SYS_LOCK_H 1

/* Define if you have the <sys/machine.h> header file.  */
/* #undef HAVE_SYS_MACHINE_H */

/* Define if you have the <sys/mbuf.h> header file.  */
#define HAVE_SYS_MBUF_H 1

/* Define if you have the <sys/mntctl.h> header file.  */
/* #undef HAVE_SYS_MNTCTL_H */

/* Define if you have the <sys/mntent.h> header file.  */
/* #undef HAVE_SYS_MNTENT_H */

/* Define if you have the <sys/mnttab.h> header file.  */
/* #undef HAVE_SYS_MNTTAB_H */

/* Define if you have the <sys/mount.h> header file.  */
#define HAVE_SYS_MOUNT_H 1

/* Define if you have the <sys/ndir.h> header file.  */
/* #undef HAVE_SYS_NDIR_H */

/* Define if you have the <sys/netconfig.h> header file.  */
/* #undef HAVE_SYS_NETCONFIG_H */

/* Define if you have the <sys/param.h> header file.  */
#define HAVE_SYS_PARAM_H 1

/* Define if you have the <sys/pathconf.h> header file.  */
/* #undef HAVE_SYS_PATHCONF_H */

/* Define if you have the <sys/proc.h> header file.  */
#define HAVE_SYS_PROC_H 1

/* Define if you have the <sys/resource.h> header file.  */
#define HAVE_SYS_RESOURCE_H 1

/* Define if you have the <sys/sema.h> header file.  */
/* #undef HAVE_SYS_SEMA_H */

/* Define if you have the <sys/signal.h> header file.  */
#define HAVE_SYS_SIGNAL_H 1

/* Define if you have the <sys/socket.h> header file.  */
#define HAVE_SYS_SOCKET_H 1

/* Define if you have the <sys/sockio.h> header file.  */
#define HAVE_SYS_SOCKIO_H 1

/* Define if you have the <sys/stat.h> header file.  */
#define HAVE_SYS_STAT_H 1

/* Define if you have the <sys/statfs.h> header file.  */
/* #undef HAVE_SYS_STATFS_H */

/* Define if you have the <sys/syscall.h> header file.  */
#define HAVE_SYS_SYSCALL_H 1

/* Define if you have the <sys/syslimits.h> header file.  */
#define HAVE_SYS_SYSLIMITS_H 1

/* Define if you have the <sys/syslog.h> header file.  */
#define HAVE_SYS_SYSLOG_H 1

/* Define if you have the <sys/time.h> header file.  */
#define HAVE_SYS_TIME_H 1

/* Define if you have the <sys/tiuser.h> header file.  */
/* #undef HAVE_SYS_TIUSER_H */

/* Define if you have the <sys/types.h> header file.  */
#define HAVE_SYS_TYPES_H 1

/* Define if you have the <sys/ucred.h> header file.  */
#define HAVE_SYS_UCRED_H 1

/* Define if you have the <sys/uio.h> header file.  */
#define HAVE_SYS_UIO_H 1

/* Define if you have the <sys/utsname.h> header file.  */
#define HAVE_SYS_UTSNAME_H 1

/* Define if you have the <sys/vfs.h> header file.  */
/* #undef HAVE_SYS_VFS_H */

/* Define if you have the <sys/vmount.h> header file.  */
/* #undef HAVE_SYS_VMOUNT_H */

/* Define if you have the <sys/vnode.h> header file.  */
#define HAVE_SYS_VNODE_H 1

/* Define if you have the <syslog.h> header file.  */
#define HAVE_SYSLOG_H 1

/* Define if you have the <time.h> header file.  */
#define HAVE_TIME_H 1

/* Define if you have the <tiuser.h> header file.  */
/* #undef HAVE_TIUSER_H */

/* Define if you have the <tmpfs/tmp.h> header file.  */
/* #undef HAVE_TMPFS_TMP_H */

/* Define if you have the <ufs/ufs/ufsmount.h> header file.  */
#define HAVE_UFS_UFS_UFSMOUNT_H 1

/* Define if you have the <ufs/ufs_mount.h> header file.  */
/* #undef HAVE_UFS_UFS_MOUNT_H */

/* Define if you have the <unistd.h> header file.  */
#define HAVE_UNISTD_H 1

/* Define if you have the <varargs.h> header file.  */
#define HAVE_VARARGS_H 1

/* Define if you have the gdbm library (-lgdbm).  */
/* #undef HAVE_LIBGDBM */

/* Define if you have the malloc library (-lmalloc).  */
/* #undef HAVE_LIBMALLOC */

/* Define if you have the mapmalloc library (-lmapmalloc).  */
/* #undef HAVE_LIBMAPMALLOC */

/* Define if you have the nsl library (-lnsl).  */
/* #undef HAVE_LIBNSL */

/* Define if you have the rpc library (-lrpc).  */
/* #undef HAVE_LIBRPC */

/* Define if you have the rpcsvc library (-lrpcsvc).  */
#define HAVE_LIBRPCSVC 1

/* Name of package */
#define PACKAGE "am-utils"

/* Version number of package */
#define VERSION "6.0.1s11"


/**************************************************************************/
/*** Everything below this line is part of the "BOTTOM" of acconfig.h.	***/
/**************************************************************************/

/*
 * Existence of external definitions.
 */

/* does sys_errlist[] exist? */
#define HAVE_EXTERN_SYS_ERRLIST 1

/* does optarg exist? */
#define HAVE_EXTERN_OPTARG 1

/* does clnt_spcreateerror() exist? */
#define HAVE_EXTERN_CLNT_SPCREATEERROR 1

/* does clnt_sperrno() exist? */
#define HAVE_EXTERN_CLNT_SPERRNO 1

/* does free() exist? */
#define HAVE_EXTERN_FREE 1

/* does get_myaddress() exist? */
#define HAVE_EXTERN_GET_MYADDRESS 1

/* does getccent() (hpux) exist? */
/* #undef HAVE_EXTERN_GETCCENT */

/* does getdomainname() exist? */
#define HAVE_EXTERN_GETDOMAINNAME 1

/* does gethostname() exist? */
#define HAVE_EXTERN_GETHOSTNAME 1

/* does getlogin() exist? */
#define HAVE_EXTERN_GETLOGIN 1

/* does gettablesize() exist? */
/* #undef HAVE_EXTERN_GETTABLESIZE */

/* does getpagesize() exist? */
#define HAVE_EXTERN_GETPAGESIZE 1

/* does innetgr() exist? */
/* #undef HAVE_EXTERN_INNETGR */

/* does mkstemp() exist? */
#define HAVE_EXTERN_MKSTEMP 1

/* does sbrk() exist? */
#define HAVE_EXTERN_SBRK 1

/* does seteuid() exist? */
#define HAVE_EXTERN_SETEUID 1

/* does strcasecmp() exist? */
#define HAVE_EXTERN_STRCASECMP 1

/* does strdup() exist? */
#define HAVE_EXTERN_STRDUP 1

/* does strstr() exist? */
#define HAVE_EXTERN_STRSTR 1

/* does usleep() exist? */
#define HAVE_EXTERN_USLEEP 1

/* does wait3() exist? */
#define HAVE_EXTERN_WAIT3 1

/* does xdr_opaque_auth() exist? */
#define HAVE_EXTERN_XDR_OPAQUE_AUTH 1

/****************************************************************************/
/*** INCLUDE localconfig.h if it exists, to allow users to make some      ***/
/*** compile time configuration changes.                                  ***/
/****************************************************************************/
/* does a local configuration file exist? */
/* #undef HAVE_LOCALCONFIG_H */
#ifdef HAVE_LOCALCONFIG_H
# include <localconfig.h>
#endif /* HAVE_LOCALCONFIG_H */

#endif /* not _CONFIG_H */

/*
 * Local Variables:
 * mode: c
 * End:
 */

/* End of am-utils-6.x config.h file */
%% file usr.sbin/amd/include/aux_conf.h
/*
 * aux_conf.h:
 * This file gets "filled in" for each architecture.
 * Generated automatically from aux_conf.h.in by configure.
 */

#ifndef _AUX_CONF_H
#define _AUX_CONF_H

/*
 * The next line is a literal inclusion of a file which includes a
 * definition for the MOUNT_TRAP macro for a particular architecture.
 * If it defines the wrong entry, check the AC_CHECK_MOUNT_TRAP m4 macro
 * in $srcdir/aux/macros.
 */

/* $srcdir/conf/trap/trap_default.h */
#define MOUNT_TRAP(type, mnt, flags, mnt_data) mount(type, mnt->mnt_dir, flags, mnt_data)
/* End of included MOUNT_TRAP macro definition file */

/*
 * The next line is a literal replacement of a variable which defines the
 * the UNMOUNT_TRAP macro for a particular architecture.
 * If it defines the wrong entry, check the AC_CHECK_UNMOUNT_CALL m4 macro
 * in $srcdir/aclocal.m4.  If the arguments are being defined wrong, check
 * the macro AC_CHECK_UNMOUNT_ARGS in $srcdir/aux/macros.
 */
#define UNMOUNT_TRAP(mnt)	unmount(mnt->mnt_dir)
/* End of replaced UNMOUNT_TRAP macro definition */

/*
 * The next line is a literal inclusion of a file which includes a
 * definition for the NFS_FH_DREF macro for a particular architecture.
 * If it defines the wrong entry, check the AC_CHECK_NFS_FH_DREF m4 macro
 * in $srcdir/aux/macros.
 */

/* $srcdir/conf/fh_dref/fh_dref_freebsd22.h */
#define	NFS_FH_DREF(dst, src) (dst) = (u_char *) (src)
/* End of included NFS_FH_DREF macro definition file */

/*
 * The next line is a literal inclusion of a file which includes a
 * definition for the NFS_SA_DREF macro for a particular architecture.
 * If it defines the wrong entry, check the AC_CHECK_NFS_SA_DREF m4 macro
 * in $srcdir/aux/macros.
 */

/* $srcdir/conf/sa_dref/sa_dref_bsd44.h */
#define	NFS_SA_DREF(dst, src) { \
		(dst)->addr = (struct sockaddr *) (src); \
		(dst)->addrlen = sizeof(*src); \
		(dst)->sotype = SOCK_DGRAM; \
		(dst)->proto = 0; \
	}
/* End of included NFS_SA_DREF macro definition file */

/*
 * The next line is a literal inclusion of a file which includes a
 * definition for the NFS_HN_DREF macro for a particular architecture.
 * If it defines the wrong entry, check the AC_CHECK_NFS_HN_DREF m4 macro
 * in $srcdir/aux/macros.
 */

/* $srcdir/conf/hn_dref/hn_dref_default.h */
#define NFS_HN_DREF(dst, src) (dst) = (src)
/* End of included NFS_HN_DREF macro definition file */

#endif /* not _AUX_CONF_H */
%% file usr.sbin/amd/amd/build_version.h
/* do not edit this file by hand */
/* auto-generated by update_build_version script */
#define AMU_BUILD_VERSION 1
@


1.22
log
@minor nits.
@
text
@d3 1
a3 1
#	$NetBSD: amd2netbsd,v 1.21 1999/09/04 22:38:15 christos Exp $
@


1.21
log
@Resolve corn-flakes
@
text
@d3 1
a3 1
#	$NetBSD: amd2netbsd,v 1.1.1.5 1999/09/04 22:24:55 christos Exp $
a120 3
<<<<<<< amd2netbsd
@@docf = ("am-utils.texi", "hlfsd.ps", "texinfo.tex", "version.texi");
=======
d122 3
a124 4
	 "am-utils.info-1", "am-utils.info-2", "am-utils.info-3",
	 "am-utils.info-4", "am-utils.info-5", "am-utils.info-6",
	 "am-utils.info-7");
>>>>>>> 1.1.1.5
a568 7
<<<<<<< amd2netbsd
/* Define user name */
#define USER_NAME "`whoami`"

/* Define configuration date */
#define CONFIG_DATE "`date`"
=======
a572 1
>>>>>>> 1.1.1.5
@


1.20
log
@Add code to DTRT with the info file, now that we can use it.
Patch submitted in PR by Minoura Makoto <minoura@@hauN.org>

I'll not re-import amd but rather perform the steps to get
things going manually.
@
text
@d1 1
a1 1
#!/usr/local/bin/perl
d3 1
a3 1
#	$NetBSD: amd2netbsd,v 1.19 1999/02/01 19:05:09 christos Exp $
d21 1
a21 1
$version = "6.0.1s3";
d121 1
d123 6
d573 1
d579 6
d586 2
a587 2
/* Define name of host */
#define HOST_NAME "`hostname`"
d592 5
a596 2
/* Define only name of host machine OS (eg. solaris2) */
#define HOST_OS_NAME "`uname -s | tr '[A-Z]' '[a-z]'``uname -r | cut -d. -f 1`"
d598 2
a599 1
#define HOST_OS "`uname -s | tr '[A-Z]' '[a-z]'``uname -r`"
d601 2
d1385 1
a1385 1
/* does struct fhstatus have an fhs_fh field? */
d1397 3
d1406 1
a1406 1
/* does struct nfs_args have an gfs_flags field? */
d1409 3
d1453 3
d1459 4
d1470 6
d1516 9
a1544 4
#include <sys/types.h>
#if BYTE_ORDER == BIG_ENDIAN
#define WORDS_BIGENDIAN 
#endif
d1563 1
a1563 1
#define VERSION "6.0.1s3"
d1593 1
a1593 1
#define AMU_NFS_PROTOCOL_HEADER "./conf/nfs_prot/nfs_prot_netbsd1_3.h"
d1750 3
d2080 3
d2101 6
d2498 1
a2498 1
#define VERSION "6.0.1s3"
@


1.19
log
@Resolve corn-flakes.
@
text
@d3 1
a3 1
#	$NetBSD: amd2netbsd,v 1.1.1.4 1999/02/01 18:45:41 christos Exp $
d121 1
a121 4
@@docf = ("am-utils.info", "am-utils.info-1", "am-utils.info-2",
	 "am-utils.info-3", "am-utils.info-4", "am-utils.info-5",
	 "am-utils.info-6", "am-utils.texi", "hlfsd.ps", "texinfo.tex",
	 "version.texi");
d156 12
d179 15
d425 1
a425 1
SUBDIR= libamu amd amq hlfsd fixmount fsinfo mk-amd-map pawd wire-test
d587 2
a588 7
PROG = am-utils
SRCS = am-utils.texinfo

${PROG}: am-utils.dvi

am-utils.dvi: ${SRCS}
	-tex am-utils.texinfo; tex am-utils.texinfo
d590 1
a590 5
clean:
	-rm -f am-utils.aux am-utils.cp am-utils.cps am-utils.dvi am-utils.fn \
	 am-utils.fns am-utils.ky am-utils.kys am-utils.log am-utils.pg \
	 am-utils.pgs am-utils.toc am-utils.tp am-utils.tps am-utils.vr \
	 am-utils.vrs
@


1.19.2.1
log
@pull up revs 1.20-1.22 from trunk (requested by christos):
  Upgrade amd(8) and related software to fix expoitable stack overflows
  in amq(8), as reported in BUGTRAQ and elsewhere.
@
text
@d1 1
a1 1
#!/usr/pkg/bin/perl
d3 1
a3 1
#	$NetBSD$
d21 1
a21 1
$version = "6.0.1s11";
d121 1
a121 2
@@docf = ("am-utils.texi", "hlfsd.ps", "version.texi", "am-utils.ps", 
	 "am-utils.info", "am-utils.info-1", "am-utils.info-2",
d123 2
a124 1
	 "am-utils.info-6", "am-utils.info-7");
a158 12
    elsif ($t =~ /am-utils\.texi/) {
	$hdr = 2;
    }
    elsif ($t =~ /.*\.texi/) {
	print OFILE '@@c', "\t", '$', 'NetBSD', '$', "\n";
    }
    elsif ($t =~ /.*\.tex$/) {
	print OFILE "%\t", '$', 'NetBSD', '$', "\n";
    }
    elsif ($t =~ /.*\.ps/) {
	$hdr = 3;
    }
a169 15
	elsif ($hdr == 2) {
	    if (/\\input[ \t]+texinfo/) {
		print OFILE $_;
		print OFILE '@@c', "\t", '$', 'NetBSD', '$', "\n";
		$hdr = 0;
		next;
	    }
	}
	elsif ($hdr == 3) {
	    # First line is magic.  Insert Id between lines 1 and 2.
	    print OFILE $_;
	    print OFILE "%\t", '$', 'NetBSD', '$', "\n";
	    $hdr = 0;
	    next;
	}
d401 1
a401 1
SUBDIR= libamu amd amq hlfsd fixmount fsinfo mk-amd-map pawd wire-test doc
d542 5
a546 4
/* Automatically generated file, do not edit! */
 
/* Define name and version of host machine (eg. solaris2.5.1) */
#define HOST_OS "`uname -s | tr '[A-Z]' '[a-z]'``uname -r`"
d548 2
a549 2
/* Define only name of host machine OS (eg. solaris2) */
#define HOST_OS_NAME "`uname -s | tr '[A-Z]' '[a-z]'``uname -r | cut -d. -f 1`"
d554 2
a555 2
/* Define the header version of (linux) hosts (eg. 2.2.10) */
#define HOST_HEADER_VERSION "`uname -r`"
d557 1
a557 5
/* Define name of host */
#define HOST_NAME "`hostname`"

/* Define user name */
#define USER_NAME "`whoami`"
a558 2
/* Define configuration date */
#define CONFIG_DATE "`date`"
d563 7
a569 2
TEXINFO = am-utils.info
INFOFLAGS = -I${.CURDIR}
d571 5
a575 1
.include <bsd.info.mk>
d1350 1
a1350 1
/* does struct fhstatus have a fhs_fh field? */
a1361 3
/* does struct nfs_args have a bsize field? */
/* #undef HAVE_FIELD_NFS_ARGS_T_BSIZE */

d1368 1
a1368 1
/* does struct nfs_args have a gfs_flags field? */
a1370 3
/* does struct nfs_args have a namlen field? */
/* #undef HAVE_FIELD_NFS_ARGS_T_NAMLEN */

a1411 3
/* Define if using alloca.c.  */
/* #undef C_ALLOCA */

a1414 4
/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
   This function is required for alloca.c support on those systems.  */
/* #undef CRAY_STACKSEG_END */

a1421 6
/* Define if you have alloca, as a function or macro.  */
#define HAVE_ALLOCA 1

/* Define if you have <alloca.h> and it should be used (not on Ultrix).  */
/* #undef HAVE_ALLOCA_H */

a1461 9
/* If using the C implementation of alloca, define if you know the
   direction of stack growth for your system; otherwise it will be
   automatically deduced at run-time.
 STACK_DIRECTION > 0 => grows toward higher addresses
 STACK_DIRECTION < 0 => grows toward lower addresses
 STACK_DIRECTION = 0 => direction of growth unknown
 */
/* #undef STACK_DIRECTION */

d1482 4
d1504 1
a1504 1
#define VERSION "6.0.1s11"
d1534 1
a1534 1
#define AMU_NFS_PROTOCOL_HEADER "./conf/nfs_prot/nfs_prot_netbsd1_4.h"
a1690 3
/* Define if you have the getifaddrs function.  */
/* #undef HAVE_GETIFADDRS */

a2017 3
/* Define if you have the <db1/ndbm.h> header file.  */
/* #undef HAVE_DB1_NDBM_H */

a2035 6
/* Define if you have the <ifaddrs.h> header file.  */
/* #undef HAVE_IFADDRS_H */

/* Define if you have the <irs.h> header file.  */
/* #undef HAVE_IRS_H */

d2427 1
a2427 1
#define VERSION "6.0.1s11"
@


1.18
log
@Properly define ufs_args_t and HAVE_FIELD_UFS_ARGS_T_FSPEC, so that automount
of FFS filesystems works.
@
text
@d3 1
a3 1
#	$NetBSD: amd2netbsd,v 1.17 1998/09/27 16:30:31 christos Exp $
d21 1
a21 1
$version = "6.0a16";
d55 1
a55 1
	 "info_file.c", "info_ndbm.c",
d281 1
a281 1
&copyfile("$srcdir/conf/nfs_prot/nfs_prot_netbsd.h",
d416 1
d584 1
a584 1
 * Note: accconfig.h generates config.h.in, which generates config.h.
d616 1
a616 1
/* Define if have symlink with exitence check filesystem */
a630 2
/* Define if have Sun's autofs filesystem (NO LONGER NEEDED?) */
/* #undef HAVE_AM_FS_AUTOFS */
d653 1
a653 1
/* #undef HAVE_MAP_HESIOD */
d1026 3
d1163 1
a1163 1
/* #undef MNT2_NFS_OPT_MAXGRPS */
d1207 1
a1207 1
/* set number of request retrys */
d1330 1
a1330 1
#define HAVE_FIELD_UFS_ARGS_T_FSPEC
d1504 1
a1504 1
#define VERSION "6.0a16"
d1710 1
a1710 1
/* #undef HAVE_HES_INIT */
d1713 1
a1713 1
/* #undef HAVE_HESIOD_INIT */
d1719 1
a1719 1
/* #undef HAVE_HESIOD_TO_BIND */
d2031 1
a2031 1
/* #undef HAVE_HESIOD_H */
d2060 3
d2151 1
a2151 1
/* #undef HAVE_NSSWITCH_H */
d2393 3
d2414 3
d2423 7
d2444 3
d2482 3
@


1.17
log
@Propagate the fix to Makefile.inc
@
text
@d3 1
a3 1
#	$NetBSD: amd2netbsd,v 1.16 1998/08/08 22:33:27 christos Exp $
d1328 1
a1328 1
/* #undef HAVE_FIELD_UFS_ARGS_T_FSPEC */
d1595 1
a1595 1
/* #undef ufs_args_t */
@


1.16
log
@Resolve corn-flakes and remove obsolete files
@
text
@d3 1
a3 1
#	$NetBSD: amd2netbsd,v 1.1.1.3 1998/08/08 22:05:23 christos Exp $
d416 1
d424 1
@


1.15
log
@missed 3 lines on sync
@
text
@d3 1
a3 1
#	$NetBSD: amd2netbsd,v 1.14 1998/04/12 21:09:35 tv Exp $
d21 1
a21 1
$version = "6.0a13";
d29 2
a30 1
	    "usr.sbin/amd/wire-test", "usr.sbin/amd/doc");
d48 17
a64 10
@@amdf = ("am_ops.c", "amd.c", "amq_subr.c", "amq_svc.c",
	 "autil.c", "clock.c", "conf.c",
	 "get_args.c", "info_file.c", "info_ndbm.c", "info_nis.c",
	 "info_passwd.c", "info_union.c", "map.c", "mapc.c",
	 "mntfs.c", "nfs_prot_svc.c", "nfs_start.c", "nfs_subr.c",
	 "ops_afs.c", "ops_cdfs.c", "ops_efs.c", "ops_host.c",
	 "ops_ifs.c", "ops_mfs.c", "ops_nfs.c", "ops_nfs3.c",
	 "ops_nfsx.c", "ops_pcfs.c", "ops_pfs.c", "ops_sfs.c",
	 "ops_sfsx.c", "ops_ufs.c", "opts.c", "restart.c", "rpc_fwd.c",
	 "sched.c", "srvr_afs.c", "srvr_nfs.c");
d78 7
d292 3
d348 2
d401 1
a401 1
SUBDIR= libamu amd amq hlfsd fixmount fsinfo mk-amd-map wire-test
d403 1
a403 1
all-amd all-amq all-hlfsd all-fixmount all-fsinfo all-mk-amd-map \
d447 11
d530 1
a530 1
major=0
d593 1
a593 1
#define HAVE_AM_FS_AFS 1
d596 1
a596 1
#define HAVE_AM_FS_DFS 1
d602 1
a602 1
#define HAVE_AM_FS_EFS 1
d605 1
a605 1
#define HAVE_AM_FS_IFS 1
d608 1
a608 1
#define HAVE_AM_FS_PFS 1
d611 1
a611 1
#define HAVE_AM_FS_SFS 1
d614 1
a614 1
#define HAVE_AM_FS_SFSX 1
d619 3
d628 1
a628 1
/* Define if have Sun's autofs filesystem */
d670 6
d730 6
d790 6
d1003 1
a1003 1
/* Mount Table option string: pg thresh(old)? */
d1006 2
d1014 1
a1014 1
/* #undef MNT2_GEN_OPT_ASYNC */
d1022 1
a1022 1
/* Old (4-argument) mount (compatibility) */
d1025 1
a1025 1
/* Journaling filesystem (AIX's UFS/FFS) */
d1028 1
a1028 1
/* Old BSD group-id on create */
d1031 1
a1031 1
/* Do multi-component lookup on files */
d1064 3
d1080 1
a1080 1
/* #undef MNT2_GEN_OPT_SYNCHRONOUS */
d1111 1
a1111 1
/* #undef MNT2_NFS_OPT_DEADTHRESH */
d1153 1
a1153 1
/* #undef MNT2_NFS_OPT_LEASETERM */
d1186 1
a1186 1
/* #undef MNT2_NFS_OPT_NQNFS */
d1198 1
a1198 1
/* #undef MNT2_NFS_OPT_READAHEAD */
d1206 3
d1251 1
a1251 1
/* pg thresh(old) */
d1255 16
d1286 12
d1326 19
a1344 1
#define HAVE_FIELD_UFS_ARGS_T_FSPEC 1
d1364 6
a1417 3
/* Define if you have the getmntent function.  */
/* #undef HAVE_GETMNTENT */

d1482 1
d1500 1
a1500 1
#define VERSION "6.0a13"
d1530 1
a1530 1
#define AMU_NFS_PROTOCOL_HEADER "../conf/nfs_prot/nfs_prot_netbsd.h"
d1568 3
d1593 7
a1599 1
#define ufs_args_t struct ufs_args
d1619 5
d1639 3
d1645 3
d1675 3
d1735 3
d1786 3
d2002 6
d2033 1
a2033 1
/* #undef HAVE_ISOFS_CD9660_CD9660_MOUNT_H */
d2042 1
a2042 1
/* #undef HAVE_LIBGEN_H */
d2075 1
a2075 1
/* #undef HAVE_MSDOSFS_MSDOSFSMOUNT_H */
d2128 3
d2197 6
d2266 3
d2398 6
a2409 3
/* Define if you have the ucb library (-lucb).  */
/* #undef HAVE_LIBUCB */

d2427 3
d2433 3
d2454 3
d2460 3
d2466 3
d2478 9
d2548 4
a2551 4
		(dst).addr = (struct sockaddr *) (src); \
		(dst).addrlen = sizeof(*src); \
		(dst).sotype = SOCK_DGRAM; \
		(dst).proto = 0; \
@


1.14
log
@sync with Makefile.inc
@
text
@d3 1
a3 1
#	$NetBSD: amd2netbsd,v 1.13 1998/04/09 00:32:39 tv Exp $
d389 3
@


1.13
log
@.y.c <sys.mk> rule fixes.  Don't create a y.tab.h file unless asked for,
and use smarter creation of the header file.
@
text
@d3 1
a3 1
#	$NetBSD: amd2netbsd,v 1.12 1998/04/07 19:33:09 tv Exp $
d394 6
a399 1
DPADD += ${LIBAMU}/libamu.a ${LIBRPCSVC} ${LIBL}
@


1.12
log
@sync with install changes from amd/Makefile
@
text
@d3 1
a3 1
#	$NetBSD: amd2netbsd,v 1.11 1997/10/26 00:24:44 christos Exp $
d405 2
a406 1
CLEANFILES+=conf_tok.c conf_parse.c conf_parse.h y.tab.h
a409 5
conf_parse.c conf_parse.h: conf_parse.y
	${YACC} -d ${.ALLSRC}
	mv y.tab.c conf_parse.c
	mv y.tab.h conf_parse.h

d457 2
a458 1
CLEANFILES+=fsi_lex.c fsi_gram.c fsi_gram.h y.tab.h
a460 5

fsi_gram.c fsi_gram.h: fsi_gram.y
	${YACC} -d ${.ALLSRC}
	mv y.tab.c fsi_gram.c
	mv y.tab.h fsi_gram.h
@


1.11
log
@Resolve RCSID conflicts; hopefully this is the last time :-)
@
text
@d3 1
a3 1
#	$NetBSD: amd2netbsd,v 1.10 1997/10/25 06:57:53 lukem Exp $
d477 2
d485 2
d488 7
@


1.10
log
@use CPPFLAGS instead of CFLAGS
@
text
@d3 1
a3 1
#	$NetBSD: amd2netbsd,v 1.9 1997/10/18 06:42:30 lukem Exp $
d18 1
a18 1
#  Written by Christos Zoulas July 17, 1997 for am-utils-6.0a12
d21 1
a21 1
$version = "6.0a12";
d123 57
d187 1
a187 1
	system ("cp $fdir/$f $tdir/$f");
d196 1
a196 1
    system ("cp $f $t");
d1060 3
d1066 3
d1379 1
a1379 1
#define VERSION "6.0a12"
d1486 3
d1504 3
a1509 3
/* Define if you have the clnt_tp_create_timed function.  */
/* #undef HAVE_CLNT_TP_CREATE_TIMED */

a1623 6
/* Define if you have the setpgid function.  */
#define HAVE_SETPGID 1

/* Define if you have the setpgrp function.  */
#define HAVE_SETPGRP 1

d1627 3
a1877 3

/* Define if you have the <jfs/jfsmount.h> header file.  */
/* #undef HAVE_JFS_JFSMOUNT_H */
@


1.9
log
@enable WARNS=1 by default, but disable in unclean 3rd party code
@
text
@d3 1
a3 1
#	$NetBSD: amd2netbsd,v 1.8 1997/10/16 05:18:42 lukem Exp $
d335 1
a335 1
CFLAGS += -I${.CURDIR}/../include -I${.CURDIR} -I${LIBAMU} -I. -DHAVE_CONFIG_H
@


1.8
log
@fix race condition when building libamu with make -j
@
text
@d3 1
a3 1
#	$NetBSD: amd2netbsd,v 1.7 1997/09/26 16:59:44 christos Exp $
d338 4
a341 1
BINDIR = /usr/sbin
@


1.7
log
@Resolve conflicts; Damned RCSid's... I should fix the amd2netbsd script
to strip them.
@
text
@d3 1
a3 1
#	$NetBSD: amd2netbsd,v 1.3 1997/08/05 12:02:49 christos Exp $
d325 3
@


1.6
log
@Restore one change from revision 1.4: 'make depend' needs a config_local.h
in the SRCS= line of libamu/Makefile
@
text
@d3 1
a3 1
#	$NetBSD: amd2netbsd,v 1.5 1997/09/22 22:09:55 christos Exp $
d18 1
a18 1
#  Written by Christos Zoulas July 17, 1997 for am-utils-6.0a8
d21 1
a21 1
$version = "6.0a8";
d29 1
a29 1
	    "usr.sbin/amd/doc");
d32 2
a33 1
@@includef = ("am_compat.h", "am_defs.h", "am_utils.h", "amq_defs.h");
d58 1
a58 1
@@amddf = ("build_version.h", "conf_tok.l", "conf_parse.y", "amd.8");
d99 6
d242 4
d283 2
d324 1
a324 1
SUBDIR= libamu amd amq hlfsd fixmount fsinfo mk-amd-map
d329 1
d384 8
d412 1
a412 1
%% srcs libamu config_local.h
d1125 1
a1125 1
/* #undef HAVE_FIELD_MNTENT_T_TIME_STRING */
d1133 6
d1142 6
d1151 2
a1152 2
/* does pcfs_args_t have dsttime field? */
/* #undef HAVE_FIELD_PCFS_ARGS_T_DSTTIME */
d1310 1
a1310 1
#define VERSION "6.0a10"
d1807 3
d1851 3
@


1.5
log
@Resolve conflicts.
@
text
@d3 1
a3 1
#	$NetBSD: amd2netbsd,v 1.3 1997/08/05 12:02:49 christos Exp $
d390 1
a390 1
%% srcs libamu
@


1.4
log
@Sync it for libamu/Makefile.
@
text
@d28 2
a29 1
	    "usr.sbin/amd/fixmount", "usr.sbin/amd/mk-amd-map");
d36 1
a36 1
	   "nfs_prot_xdr.c", "util.c", "wire.c", "xdr_mountres3.c", 
d99 9
d219 4
d272 2
d319 2
a320 2
LDADD += -L${LIBAMU} -lamu -lrpcsvc
DPADD += ${LIBAMU}/libamu.a
d390 1
a390 1
%% srcs libamu config_local.h
d430 16
d498 3
a640 2
  /*
   * Check for the string name for the mount-table of a filesystem.
d939 3
d1159 6
d1260 3
d1276 1
a1276 1
#define VERSION "6.0a8"
d1344 3
d1380 3
d1401 3
d1455 5
a1459 2
/* Define if you have the hes_resolve function.  */
/* #undef HAVE_HES_RESOLVE */
a1463 3
/* Define if you have the hesiod_resolve function.  */
/* #undef HAVE_HESIOD_RESOLVE */

d1572 3
d1650 6
d1722 6
d1746 3
d1785 3
d1843 1
a1843 1
/* #undef HAVE_NETINET_IF_ETHER_H */
d1965 3
d2088 3
d2121 2
a2122 2
/* Define if you have the c library (-lc).  */
#define HAVE_LIBC 1
d2158 3
@


1.3
log
@PR/3939: enami tsugutomo: amd fails to detect endianness.
@
text
@d3 1
a3 1
#	$NetBSD: amd2netbsd,v 1.2 1997/07/28 00:46:55 christos Exp $
d374 1
a374 1
%% srcs libamu
@


1.2
log
@- Make the yacc .h file generation more sane from Juergen Hannken-Illjes
- PR/3919: Thorsten Frueauf: Add config_local.h to CLEANFILES and remove
  it from the repository.
@
text
@d3 1
a3 1
#	$NetBSD: amd2netbsd,v 1.1.1.1 1997/07/24 21:20:06 christos Exp $
d1213 1
@


1.1
log
@Initial revision
@
text
@d3 1
a3 1
#	$NetBSD: amd2netbsd,v 1.9 1997/07/08 05:07:47 christos Exp $
d316 4
a319 3
conf_parse.h:	y.tab.h
	@@rm -f ${.TARGET}
	@@cp -p ${.ALLSRC} ${.TARGET}
d364 4
a367 3
fsi_gram.h:	y.tab.h
	@@rm -f ${.TARGET}
	@@cp -p ${.ALLSRC} ${.TARGET}
d379 2
@


1.1.1.1
log
@Import of Erez Zadok's am-utils
@
text
@@


1.1.1.2
log
@Import am-utils-6.0a12
@
text
@d3 1
a3 1
#	$NetBSD: amd2netbsd,v 1.3 1997/08/05 12:02:49 christos Exp $
d18 1
a18 1
#  Written by Christos Zoulas July 17, 1997 for am-utils-6.0a12
d21 1
a21 1
$version = "6.0a12";
d28 1
a28 2
	    "usr.sbin/amd/fixmount", "usr.sbin/amd/mk-amd-map",
	    "usr.sbin/amd/wire-test", "usr.sbin/amd/doc");
d31 1
a31 2
@@includef = ("am_compat.h", "am_defs.h", "am_utils.h", "amq_defs.h",
	     "am_xdr_func.h");
d35 1
a35 1
	   "nfs_prot_xdr.c", "util.c", "wire.c", "xdr_func.c", 
d56 1
a56 1
@@amddf = ("conf_tok.l", "conf_parse.y", "amd.8");
a96 15
@@wiretestf = ("wire-test.c");

@@wiretestdf = ("wire-test.8");

@@wiretestef = ();


@@docf = ("am-utils.info", "am-utils.info-1", "am-utils.info-2",
	 "am-utils.info-3", "am-utils.info-4", "am-utils.info-5",
	 "am-utils.info-6", "am-utils.texi", "hlfsd.ps", "texinfo.tex",
	 "version.texi");

@@docdf = ();

@@docef = ();
a208 4
print "Populating the usr.sbin/amd/doc directory.\n";
&copyfiles ("$srcdir/doc", "$targetdir/usr.sbin/amd/doc",
	    @@docf, @@docdf);

a220 4
print "Populating the usr.sbin/amd/wire-test directory.\n";
&copyfiles ("$srcdir/wire-test", "$targetdir/usr.sbin/amd/wire-test",
	    @@wiretestf, @@wiretestdf);

a257 4
	    } elsif ($cmd[2] eq "wire-test") {
		&dumpsrcs (@@wiretestf, @@wiretestef);
	    } elsif ($cmd[2] eq "doc") {
		&dumpsrcs (@@docf, @@docef);
d295 1
a295 1
SUBDIR= libamu amd amq hlfsd fixmount fsinfo mk-amd-map wire-test
a299 1
WARNS ?= 1
d303 2
a304 2
LDADD += -L${LIBAMU} -lamu -lrpcsvc -ll
DPADD += ${LIBAMU}/libamu.a ${LIBRPCSVC} ${LIBL}
d316 3
a318 4
conf_parse.c conf_parse.h: conf_parse.y
	${YACC} -d ${.ALLSRC}
	mv y.tab.c conf_parse.c
	mv y.tab.h conf_parse.h
a352 8
%% file usr.sbin/amd/wire-test/Makefile
%% NetBSD #

PROG= wire-test
%% srcs wire-test
MAN+= wire-test.8

.include <bsd.prog.mk>
d363 3
a365 4
fsi_gram.c fsi_gram.h: fsi_gram.y
	${YACC} -d ${.ALLSRC}
	mv y.tab.c fsi_gram.c
	mv y.tab.h fsi_gram.h
a377 2
CLEANFILES+=config_local.h

a409 16
%% file usr.sbin/amd/doc/Makefile
%% NetBSD #

PROG = am-utils
SRCS = am-utils.texinfo

${PROG}: am-utils.dvi

am-utils.dvi: ${SRCS}
	-tex am-utils.texinfo; tex am-utils.texinfo

clean:
	-rm -f am-utils.aux am-utils.cp am-utils.cps am-utils.dvi am-utils.fn \
	 am-utils.fns am-utils.ky am-utils.kys am-utils.log am-utils.pg \
	 am-utils.pgs am-utils.toc am-utils.tp am-utils.tps am-utils.vr \
	 am-utils.vrs
a461 3
/* Define if have Sun's autofs filesystem */
/* #undef HAVE_AM_FS_AUTOFS */

d602 2
a901 3
/* hide mount type from df(1) */
/* #undef MNT2_NFS_OPT_AUTO */

d1063 1
a1063 1
/* #undef HAVE_FIELD_MNTENT_T_MNT_TIME_STRING */
a1070 6
/* does cdfs_args_t have ssector field? */
/* #undef HAVE_FIELD_CDFS_ARGS_T_SSECTOR */

/* does pcfs_args_t have dsttime field? */
/* #undef HAVE_FIELD_PCFS_ARGS_T_DSTTIME */

a1073 6
/* does pcfs_args_t have gid field? */
#define HAVE_FIELD_PCFS_ARGS_T_GID 1

/* does pcfs_args_t have mask field? */
#define HAVE_FIELD_PCFS_ARGS_T_MASK 1

d1077 2
a1078 2
/* does pcfs_args_t have uid field? */
#define HAVE_FIELD_PCFS_ARGS_T_UID 1
a1118 6
/* does struct autofs_args have an addr field? */
/* #undef HAVE_FIELD_AUTOFS_ARGS_T_ADDR */

/* does umntrequest have an rdevid field? */
/* #undef HAVE_FIELD_UMNTREQUEST_RDEVID */

a1208 1
#include <sys/types.h>
a1212 3
/* Define if lex declares yytext as a char * by default, not a char[].  */
#define YYTEXT_POINTER 1

d1226 1
a1226 1
#define VERSION "6.0a12"
a1293 3
/* Type of the 5rd argument to authunix_create() */
#define AUTH_CREATE_GIDLIST_TYPE gid_t

a1326 3
/* define if have a bad version of memcmp() */
/* #undef HAVE_BAD_MEMCMP */

a1344 3
/* Define if you have the clnt_tp_create_timed function.  */
/* #undef HAVE_CLNT_TP_CREATE_TIMED */

d1396 2
a1397 5
/* Define if you have the hes_init function.  */
/* #undef HAVE_HES_INIT */

/* Define if you have the hesiod_init function.  */
/* #undef HAVE_HESIOD_INIT */
d1402 3
a1512 3
/* Define if you have the uname function.  */
#define HAVE_UNAME 1

a1587 6
/* Define if you have the xdr_mntrequest function.  */
/* #undef HAVE_XDR_MNTREQUEST */

/* Define if you have the xdr_mntres function.  */
/* #undef HAVE_XDR_MNTRES */

a1653 6
/* Define if you have the xdr_umntrequest function.  */
/* #undef HAVE_XDR_UMNTREQUEST */

/* Define if you have the xdr_umntres function.  */
/* #undef HAVE_XDR_UMNTRES */

a1671 3
/* Define if you have the <bsd/rpc/rpc.h> header file.  */
/* #undef HAVE_BSD_RPC_RPC_H */

a1695 3
/* Define if you have the <isofs/cd9660/cd9660_mount.h> header file.  */
/* #undef HAVE_ISOFS_CD9660_CD9660_MOUNT_H */

a1707 3
/* Define if you have the <linux/auto_fs.h> header file.  */
/* #undef HAVE_LINUX_AUTO_FS_H */

a1734 3
/* Define if you have the <msdosfs/msdosfsmount.h> header file.  */
/* #undef HAVE_MSDOSFS_MSDOSFSMOUNT_H */

d1763 1
a1763 1
#define HAVE_NETINET_IF_ETHER_H 1
a1884 3
/* Define if you have the <sys/fs/autofs_prot.h> header file.  */
/* #undef HAVE_SYS_FS_AUTOFS_PROT_H */

a2004 3
/* Define if you have the <sys/utsname.h> header file.  */
#define HAVE_SYS_UTSNAME_H 1

d2035 2
a2036 2
/* Define if you have the gdbm library (-lgdbm).  */
/* #undef HAVE_LIBGDBM */
a2071 3

/* does getlogin() exist? */
#define HAVE_EXTERN_GETLOGIN 1
@


1.1.1.3
log
@Import a16, with some local fixes...
@
text
@d3 1
a3 1
#	$NetBSD: amd2netbsd,v 1.15 1998/04/12 21:38:58 tv Exp $
d18 1
a18 1
#  Written by Christos Zoulas July 17, 1997 for am-utils-6.0a13
d21 1
a21 1
$version = "6.0a16";
d29 1
a29 2
	    "usr.sbin/amd/pawd", "usr.sbin/amd/wire-test",
	    "usr.sbin/amd/doc");
d47 10
a56 17
@@amdf = ("am_ops.c", "amd.c",
	 "amfs_auto.c", "amfs_direct.c", "amfs_error.c", "amfs_host.c",
	 "amfs_inherit.c", "amfs_link.c", "amfs_linkx.c", "amfs_nfsl.c",
	 "amfs_nfsx.c", "amfs_program.c", "amfs_root.c", "amfs_toplvl.c",
	 "amfs_union.c",
	 "amq_subr.c", "amq_svc.c",
	 "autil.c", "clock.c", "conf.c", "get_args.c",
	 "info_file.c", "info_ndbm.c",
	 "info_nis.c", "info_passwd.c", "info_union.c",
	 "map.c", "mapc.c", "mntfs.c",
	 "nfs_prot_svc.c", "nfs_start.c", "nfs_subr.c",
	 "ops_autofs.c", "ops_cdfs.c",
	 "ops_mfs.c", "ops_nfs.c", "ops_nfs3.c",
	 "ops_nullfs.c", "ops_pcfs.c", "ops_tfs.c", "ops_tmpfs.c",
	 "ops_ufs.c", "ops_umapfs.c", "ops_unionfs.c",
	 "opts.c", "restart.c", "rpc_fwd.c", "sched.c",
	 "srvr_amfs_auto.c", "srvr_nfs.c");
a69 7
@@pawdf = ("pawd.c");

@@pawddf = ("pawd.1");

@@pawdef = ();


a122 57
# &fixrcs (fromfile, tofile);
sub fixrcs
{
    my ($f, $t) = @@_;
    my @@keywords = ("Author", "Date", "Header", "Id", "Locker", "Log",
		    "Name", "RCSfile", "Revision", "Source", "State");
    my $state = 0;
    my $hdr = 0;

    open(IFILE, "<$f") || die "Cannot open $f";
    open(OFILE, ">$t") || die "Cannot create $t";

    if ($t =~ /.*\.[0-9]/) {
	print OFILE '.\\" $', 'NetBSD',  '$', "\n", '.\\"', "\n";
    }
    elsif ($t =~ /.*\.[ch]/) {
	print OFILE "/*\t", '$', 'NetBSD', '$', "\t*/\n\n";
    }
    elsif ($t =~ /.*\.[yl]/) {
	$hdr = 1;
    }
    else {
	print OFILE '$', 'NetBSD', '$', "\n";
    }
    while (<IFILE>) {
	if ($hdr == 1) {
	    if (/%{/) {
		print OFILE "%{\n/*\t", '$', 'NetBSD', '$', "\t*/\n\n";
		$hdr = 0;
		next;
	    }
	}
	if ($state == 2) {
	    if (/#endif/) {
		print OFILE "#else\n__RCSID(", '"$', 'NetBSD', '$"',
		    ");\n#endif\n";
		$state = 0;
	    }
	}
	if ($state == 1) {
	    print OFILE "#if 0\n";
	    $state = 2;
	}
	if (/#ifndef lint/) {
	    print OFILE "#include <sys/cdefs.h>\n";
	    $state = 1;
	}
	foreach $key (@@keywords) {
	    s/\$$key\$/$key/g;
	    s/\$$key:(.*)\$/$key:$1/g;
	}
	print OFILE $_;
    }
    close(IFILE) || die "closing input file";
    close(OFILE) || die "closing output file";
}

d130 1
a130 1
	&fixrcs("$fdir/$f", "$tdir/$f");
d139 1
a139 1
    &fixrcs("$f", "$t");
a219 3
print "Populating the usr.sbin/amd/pawd directory.\n";
&copyfiles ("$srcdir/amq", "$targetdir/usr.sbin/amd/pawd", @@pawdf, @@pawddf);

a272 2
	    } elsif ($cmd[2] eq "pawd") {
		&dumpsrcs (@@pawdf, @@pawdef);
d324 1
a324 4
SUBDIR= libamu amd amq hlfsd fixmount fsinfo mk-amd-map pawd wire-test

all-amd all-amq all-hlfsd all-fixmount all-fsinfo all-mk-amd-map all-pawd \
    all-wire-test: all-libamu
a328 3

.include <bsd.own.mk>

d332 1
a332 1
CPPFLAGS += -I${.CURDIR}/../include -I${.CURDIR} -I${LIBAMU} -I. -DHAVE_CONFIG_H
d334 2
a335 10
.if defined(NOPIC)
DPADD += ${LIBAMU}/libamu.a
.else
DPADD += ${LIBAMU}/libamu_pic.a
.endif
DPADD += ${LIBRPCSVC} ${LIBL}

.if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc"
.endif
d342 1
a342 2
YHEADER=1
CLEANFILES+=conf_tok.c conf_parse.c conf_parse.h
d346 5
a359 11
%% file usr.sbin/amd/pawd/Makefile
%% NetBSD #

PROG= pawd
%% srcs pawd
SRCS+= amq_clnt.c amq_xdr.c
MAN+= pawd.1
CFLAGS+=-I${.CURDIR}/../amq
.PATH.c: ${.CURDIR}/../amq

.include <bsd.prog.mk>
d398 1
a398 2
YHEADER=1
CLEANFILES+=fsi_lex.c fsi_gram.c fsi_gram.h
d402 5
a413 2
NOPROFILE=
 
a419 2
install: __libinstall
 
a420 7
 
.if !defined(NOPIC)
__libinstall: ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
.else
__libinstall:
.endif

d425 1
a425 1
major=1
d488 1
a488 1
#define HAVE_AM_FS_AUTO 1
d491 1
a491 1
#define HAVE_AM_FS_DIRECT 1
d497 1
a497 1
#define HAVE_AM_FS_ERROR 1
d500 1
a500 1
#define HAVE_AM_FS_INHERIT 1
d503 1
a503 1
#define HAVE_AM_FS_PROGRAM 1
d506 1
a506 1
#define HAVE_AM_FS_LINK 1
d509 1
a509 1
#define HAVE_AM_FS_LINKX 1
a513 3
/* Define if have nfsl (NFS with local link check) filesystem */
#define HAVE_AM_FS_NFSL 1

d520 1
a520 1
/* Define if have Sun's autofs filesystem (NO LONGER NEEDED?) */
a561 6
/* Define if have XFS filesystem (irix) */
/* #undef HAVE_FS_XFS */

/* Define if have EFS filesystem (irix) */
/* #undef HAVE_FS_EFS */

a615 6
/* Mount(2) type/name for XFS filesystem (irix) */
/* #undef MOUNT_TYPE_XFS */

/* Mount(2) type/name for EFS filesystem (irix) */
/* #undef MOUNT_TYPE_EFS */

a669 6
/* Mount-table entry name for XFS filesystem (irix) */
/* #undef MNTTAB_TYPE_XFS */

/* Mount-table entry name for EFS filesystem (irix) */
/* #undef MNTTAB_TYPE_EFS */

d877 1
a877 1
/* Mount Table option string: paging threshold */
a879 2
/* Mount Table option string: max groups */
/* #undef MNTTAB_OPT_MAXGROUPS */
d886 1
a886 1
#define MNT2_GEN_OPT_ASYNC 0x40
d894 1
a894 1
/* old (4-argument) mount (compatibility) */
d897 1
a897 1
/* journaling filesystem (AIX's UFS/FFS) */
d900 1
a900 1
/* old BSD group-id on create */
d903 1
a903 1
/* do multi-component lookup on files */
a935 3
/* check quotas */
#define MNT2_GEN_OPT_QUOTA 0x2000

d949 1
a949 1
#define MNT2_GEN_OPT_SYNCHRONOUS 0x2
d980 1
a980 1
#define MNT2_NFS_OPT_DEADTHRESH 0x4000
a996 3
/* provide name of server's fs to system */
/* #undef MNT2_NFS_OPT_FSNAME */

a999 3
/* ignore mount point */
/* #undef MNT2_NFS_OPT_IGNORE */

d1016 1
a1016 1
#define MNT2_NFS_OPT_LEASETERM 0x1000
d1049 1
a1049 1
#define MNT2_NFS_OPT_NQNFS 0x100
d1061 1
a1061 1
#define MNT2_NFS_OPT_READAHEAD 0x2000
a1068 3
/* read only */
/* #undef MNT2_NFS_OPT_RONLY */

d1111 1
a1111 1
/* paging threshold */
a1114 16
 * CDFS-specific mount(2) options (hex numbers)
 */

/* Ignore permission bits */
/* #undef MNT2_CDFS_OPT_DEFPERM */

/* Use on-disk permission bits */
/* #undef MNT2_CDFS_OPT_NODEFPERM */

/* Strip off extension from version string */
/* #undef MNT2_CDFS_OPT_NOVERSION */

/* Use Rock Ridge Interchange Protocol (RRIP) extensions */
/* #undef MNT2_CDFS_OPT_RRIP */

/*
a1129 12
/* does cdfs_args_t have flags field? */
#define HAVE_FIELD_CDFS_ARGS_T_FLAGS 1

/* does cdfs_args_t have fspec field? */
#define HAVE_FIELD_CDFS_ARGS_T_FSPEC 1

/* does cdfs_args_t have iso_flags field? */
/* #undef HAVE_FIELD_CDFS_ARGS_T_ISO_FLAGS */

/* does cdfs_args_t have iso_pgthresh field? */
/* #undef HAVE_FIELD_CDFS_ARGS_T_ISO_PGTHRESH */

d1158 1
a1158 19
/* #undef HAVE_FIELD_UFS_ARGS_T_FSPEC */

/* does efs_args_t have flags field? */
/* #undef HAVE_FIELD_EFS_ARGS_T_FLAGS */

/* does efs_args_t have fspec field? */
/* #undef HAVE_FIELD_EFS_ARGS_T_FSPEC */

/* does xfs_args_t have flags field? */
/* #undef HAVE_FIELD_XFS_ARGS_T_FLAGS */

/* does xfs_args_t have fspec field? */
/* #undef HAVE_FIELD_XFS_ARGS_T_FSPEC */

/* does ufs_ars_t have ufs_flags field? */
/* #undef HAVE_FIELD_UFS_ARGS_T_UFS_FLAGS */

/* does ufs_ars_t have ufs_pgthresh field? */
/* #undef HAVE_FIELD_UFS_ARGS_T_UFS_PGTHRESH */
a1177 6
/* does struct nfs_args have an gfs_flags field? */
/* #undef HAVE_FIELD_NFS_ARGS_T_GFS_FLAGS */

/* does struct nfs_args have an optstr field? */
/* #undef HAVE_FIELD_NFS_ARGS_T_OPTSTR */

d1226 3
a1292 1
/* #undef WORDS_BIGENDIAN */
d1310 1
a1310 1
#define VERSION "6.0a16"
d1340 1
a1340 1
#define AMU_NFS_PROTOCOL_HEADER "./conf/nfs_prot/nfs_prot_netbsd1_3.h"
a1377 3
/* Type of the 6th argument to recvfrom() */
#define RECVFROM_FROMLEN_TYPE int

d1400 1
a1400 7
/* #undef ufs_args_t */

/* Define a type for the efs_args structure */
/* #undef efs_args_t */

/* Define a type for the xfs_args structure */
/* #undef xfs_args_t */
a1416 8
/* define if have a bad version of yp_all() */
/* #undef HAVE_BAD_YP_ALL */

/* define if must use NFS "noconn" option */
/* #undef USE_UNCONNECTED_NFS_SOCKETS */
/* define if must NOT use NFS "noconn" option */
/* #undef USE_CONNECTED_NFS_SOCKETS */

a1431 9
/* Define if you have the clnt_create function.  */
#define HAVE_CLNT_CREATE 1

/* Define if you have the clnt_create_timed function.  */
/* #undef HAVE_CLNT_CREATE_TIMED */

/* Define if you have the clnt_spcreateerror function.  */
#define HAVE_CLNT_SPCREATEERROR 1

d1435 3
a1461 3
/* Define if you have the getcwd function.  */
#define HAVE_GETCWD 1

a1518 3
/* Define if you have the mkstemp function.  */
#define HAVE_MKSTEMP 1

d1552 6
a1560 3
/* Define if you have the setsid function.  */
#define HAVE_SETSID 1

a1569 3
/* Define if you have the strcasecmp function.  */
#define HAVE_STRCASECMP 1

a1782 6
/* Define if you have the <cdfs/cdfs_mount.h> header file.  */
/* #undef HAVE_CDFS_CDFS_MOUNT_H */

/* Define if you have the <cdfs/cdfsmount.h> header file.  */
/* #undef HAVE_CDFS_CDFSMOUNT_H */

d1808 4
a1811 1
#define HAVE_ISOFS_CD9660_CD9660_MOUNT_H 1
d1820 1
a1820 1
#define HAVE_LIBGEN_H 1
d1853 1
a1853 1
#define HAVE_MSDOSFS_MSDOSFSMOUNT_H 1
a1905 3
/* Define if you have the <nfs/nfsmount.h> header file.  */
#define HAVE_NFS_NFSMOUNT_H 1

a1971 6
/* Define if you have the <socketbits.h> header file.  */
/* #undef HAVE_SOCKETBITS_H */

/* Define if you have the <statbuf.h> header file.  */
/* #undef HAVE_STATBUF_H */

a2034 3
/* Define if you have the <sys/fs/xfs_clnt.h> header file.  */
/* #undef HAVE_SYS_FS_XFS_CLNT_H */

a2163 6
/* Define if you have the malloc library (-lmalloc).  */
/* #undef HAVE_LIBMALLOC */

/* Define if you have the mapmalloc library (-lmapmalloc).  */
/* #undef HAVE_LIBMAPMALLOC */

d2170 3
a2189 3
/* does free() exist? */
#define HAVE_EXTERN_FREE 1

a2192 3
/* does getccent() (hpux) exist? */
/* #undef HAVE_EXTERN_GETCCENT */

a2210 3
/* does mkstemp() exist? */
#define HAVE_EXTERN_MKSTEMP 1

a2213 3
/* does strcasecmp() exist? */
#define HAVE_EXTERN_STRCASECMP 1

a2216 3
/* does strstr() exist? */
#define HAVE_EXTERN_STRSTR 1

a2225 9
/****************************************************************************/
/*** INCLUDE localconfig.h if it exists, to allow users to make some      ***/
/*** compile time configuration changes.                                  ***/
/****************************************************************************/
/* does a local configuration file exist? */
/* #undef HAVE_LOCALCONFIG_H */
#ifdef HAVE_LOCALCONFIG_H
# include <localconfig.h>
#endif /* HAVE_LOCALCONFIG_H */
d2287 4
a2290 4
		(dst)->addr = (struct sockaddr *) (src); \
		(dst)->addrlen = sizeof(*src); \
		(dst)->sotype = SOCK_DGRAM; \
		(dst)->proto = 0; \
@


1.1.1.4
log
@Import am-utils-6.0.1s3
@
text
@d3 1
a3 1
#	$NetBSD: amd2netbsd,v 1.18 1999/01/11 15:57:49 bouyer Exp $
d21 1
a21 1
$version = "6.0.1s3";
d55 1
a55 1
	 "info_hesiod.c", "info_file.c", "info_ndbm.c",
d281 1
a281 1
&copyfile("$srcdir/conf/nfs_prot/nfs_prot_netbsd1_3.h",
a415 2
CPPFLAGS += -DDEBUG
.if !defined(LIB) || empty(LIB)
a422 1
.endif
d581 1
a581 1
 * Note: acconfig.h generates config.h.in, which generates config.h.
d613 1
a613 1
/* Define if have symlink with existence check filesystem */
d628 3
d652 1
a652 1
#define HAVE_MAP_HESIOD 1
a1024 3
/* ignore mount entry in df output */
/* #undef MNT2_GEN_OPT_IGNORE */

d1159 1
a1159 1
#define MNT2_NFS_OPT_MAXGRPS 0x20
d1203 1
a1203 1
/* set number of request retries */
d1326 1
a1326 1
#define HAVE_FIELD_UFS_ARGS_T_FSPEC 1
d1500 1
a1500 1
#define VERSION "6.0.1s3"
d1593 1
a1593 1
#define ufs_args_t struct ufs_args
d1706 1
a1706 1
#define HAVE_HES_INIT 1
d1709 1
a1709 1
#define HAVE_HESIOD_INIT 1
d1715 1
a1715 1
#define HAVE_HESIOD_TO_BIND 1
d2027 1
a2027 1
#define HAVE_HESIOD_H 1
a2055 3
/* Define if you have the <linux/posix_types.h> header file.  */
/* #undef HAVE_LINUX_POSIX_TYPES_H */

d2144 1
a2144 1
#define HAVE_NSSWITCH_H 1
a2385 3
/* Define if you have the <ufs/ufs/ufsmount.h> header file.  */
#define HAVE_UFS_UFS_UFSMOUNT_H 1

a2403 3
/* Define if you have the nsl library (-lnsl).  */
/* #undef HAVE_LIBNSL */

a2409 7
/* Name of package */
#define PACKAGE "am-utils"

/* Version number of package */
#define VERSION "6.0.1s3"


a2423 3
/* does clnt_spcreateerror() exist? */
#define HAVE_EXTERN_CLNT_SPCREATEERROR 1

a2458 3

/* does seteuid() exist? */
#define HAVE_EXTERN_SETEUID 1
@


1.1.1.5
log
@Import the latest to deal with security problems related to amq RPC.
@
text
@d1 1
a1 1
#!/usr/pkg/bin/perl
d3 1
a3 1
#	$NetBSD: amd2netbsd,v 1.20 1999/07/22 01:14:22 hubertf Exp $
d21 1
a21 1
$version = "6.0.1s11";
d121 4
a124 4
@@docf = ("am-utils.texi", "hlfsd.ps", "version.texi", "am-utils.ps", 
	 "am-utils.info-1", "am-utils.info-2", "am-utils.info-3",
	 "am-utils.info-4", "am-utils.info-5", "am-utils.info-6",
	 "am-utils.info-7");
a158 12
    elsif ($t =~ /am-utils\.texi/) {
	$hdr = 2;
    }
    elsif ($t =~ /.*\.texi/) {
	print OFILE '@@c', "\t", '$', 'NetBSD', '$', "\n";
    }
    elsif ($t =~ /.*\.tex$/) {
	print OFILE "%\t", '$', 'NetBSD', '$', "\n";
    }
    elsif ($t =~ /.*\.ps/) {
	$hdr = 3;
    }
a169 15
	elsif ($hdr == 2) {
	    if (/\\input[ \t]+texinfo/) {
		print OFILE $_;
		print OFILE '@@c', "\t", '$', 'NetBSD', '$', "\n";
		$hdr = 0;
		next;
	    }
	}
	elsif ($hdr == 3) {
	    # First line is magic.  Insert Id between lines 1 and 2.
	    print OFILE $_;
	    print OFILE "%\t", '$', 'NetBSD', '$', "\n";
	    $hdr = 0;
	    next;
	}
d401 1
a401 1
SUBDIR= libamu amd amq hlfsd fixmount fsinfo mk-amd-map pawd wire-test doc
d542 5
a546 4
/* Automatically generated file, do not edit! */
 
/* Define name and version of host machine (eg. solaris2.5.1) */
#define HOST_OS "`uname -s | tr '[A-Z]' '[a-z]'``uname -r`"
d548 2
a549 2
/* Define only name of host machine OS (eg. solaris2) */
#define HOST_OS_NAME "`uname -s | tr '[A-Z]' '[a-z]'``uname -r | cut -d. -f 1`"
d554 2
a555 2
/* Define the header version of (linux) hosts (eg. 2.2.10) */
#define HOST_HEADER_VERSION "`uname -r`"
d557 1
a557 5
/* Define name of host */
#define HOST_NAME "`hostname`"

/* Define user name */
#define USER_NAME "`whoami`"
a558 2
/* Define configuration date */
#define CONFIG_DATE "`date`"
d563 7
a569 2
TEXINFO = am-utils.info
INFOFLAGS = -I${.CURDIR}
d571 5
a575 1
.include <bsd.info.mk>
d1349 1
a1349 1
/* does struct fhstatus have a fhs_fh field? */
a1360 3
/* does struct nfs_args have a bsize field? */
/* #undef HAVE_FIELD_NFS_ARGS_T_BSIZE */

d1367 1
a1367 1
/* does struct nfs_args have a gfs_flags field? */
a1369 3
/* does struct nfs_args have a namlen field? */
/* #undef HAVE_FIELD_NFS_ARGS_T_NAMLEN */

a1410 3
/* Define if using alloca.c.  */
/* #undef C_ALLOCA */

a1413 4
/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
   This function is required for alloca.c support on those systems.  */
/* #undef CRAY_STACKSEG_END */

a1420 6
/* Define if you have alloca, as a function or macro.  */
#define HAVE_ALLOCA 1

/* Define if you have <alloca.h> and it should be used (not on Ultrix).  */
/* #undef HAVE_ALLOCA_H */

a1460 9
/* If using the C implementation of alloca, define if you know the
   direction of stack growth for your system; otherwise it will be
   automatically deduced at run-time.
 STACK_DIRECTION > 0 => grows toward higher addresses
 STACK_DIRECTION < 0 => grows toward lower addresses
 STACK_DIRECTION = 0 => direction of growth unknown
 */
/* #undef STACK_DIRECTION */

d1481 4
d1503 1
a1503 1
#define VERSION "6.0.1s11"
d1533 1
a1533 1
#define AMU_NFS_PROTOCOL_HEADER "./conf/nfs_prot/nfs_prot_netbsd1_4.h"
a1689 3
/* Define if you have the getifaddrs function.  */
/* #undef HAVE_GETIFADDRS */

a2016 3
/* Define if you have the <db1/ndbm.h> header file.  */
/* #undef HAVE_DB1_NDBM_H */

a2034 6
/* Define if you have the <ifaddrs.h> header file.  */
/* #undef HAVE_IFADDRS_H */

/* Define if you have the <irs.h> header file.  */
/* #undef HAVE_IRS_H */

d2426 1
a2426 1
#define VERSION "6.0.1s11"
@


